| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2024 - 2026 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
| 2 | // | ||
| 3 | // SPDX-License-Identifier: Apache-2.0 | ||
| 4 | |||
| 5 | #include "kleidicv/dispatch.h" | ||
| 6 | #include "kleidicv/filters/scharr.h" | ||
| 7 | #include "kleidicv/kleidicv.h" | ||
| 8 | |||
| 9 |
6/6✓ Branch 0 taken 1 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 1 times.
|
10 | KLEIDICV_MULTIVERSION_C_API( |
| 10 | kleidicv_scharr_interleaved_stripe_s16_u8, | ||
| 11 | &kleidicv::neon::kleidicv_scharr_interleaved_stripe_s16_u8, | ||
| 12 | KLEIDICV_SVE2_IMPL_IF( | ||
| 13 | &kleidicv::sve2::kleidicv_scharr_interleaved_stripe_s16_u8), | ||
| 14 | &kleidicv::sme::kleidicv_scharr_interleaved_stripe_s16_u8, | ||
| 15 | &kleidicv::sme2::kleidicv_scharr_interleaved_stripe_s16_u8); | ||
| 16 | |||
| 17 | extern "C" { | ||
| 18 | |||
| 19 | 496 | kleidicv_error_t kleidicv_scharr_interleaved_s16_u8( | |
| 20 | const uint8_t *src, size_t src_stride, size_t src_width, size_t src_height, | ||
| 21 | size_t src_channels, int16_t *dst, size_t dst_stride) { | ||
| 22 |
4/4✓ Branch 0 taken 16 times.
✓ Branch 1 taken 480 times.
✓ Branch 2 taken 16 times.
✓ Branch 3 taken 480 times.
|
992 | if (!kleidicv::scharr_interleaved_is_implemented(src_width, src_height, |
| 23 | 496 | src_channels)) { | |
| 24 | 16 | return KLEIDICV_ERROR_NOT_IMPLEMENTED; | |
| 25 | } | ||
| 26 | |||
| 27 | // height is decremented by 2 as the result has less rows. | ||
| 28 | 960 | return kleidicv_scharr_interleaved_stripe_s16_u8( | |
| 29 | 480 | src, src_stride, src_width, src_height, src_channels, dst, dst_stride, 0, | |
| 30 | 480 | src_height - 2); | |
| 31 | 496 | } | |
| 32 | |||
| 33 | } // extern "C" | ||
| 34 |