| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
| 2 | // | ||
| 3 | // SPDX-License-Identifier: Apache-2.0 | ||
| 4 | |||
| 5 | #include "kleidicv/filters/separable_filter_2d.h" | ||
| 6 | #include "separable_filter_2d_sc.h" | ||
| 7 | |||
| 8 | namespace kleidicv::sve2 { | ||
| 9 | |||
| 10 | template <typename T> | ||
| 11 | 200 | KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t separable_filter_2d_stripe( | |
| 12 | const T *src, size_t src_stride, T *dst, size_t dst_stride, size_t width, | ||
| 13 | size_t height, size_t y_begin, size_t y_end, size_t channels, | ||
| 14 | const T *kernel_x, size_t kernel_width, const T *kernel_y, | ||
| 15 | size_t kernel_height, FixedBorderType border_type, | ||
| 16 | kleidicv_filter_context_t *context) { | ||
| 17 | 200 | return separable_filter_2d_stripe_sc<T>( | |
| 18 | 200 | src, src_stride, dst, dst_stride, width, height, y_begin, y_end, channels, | |
| 19 | 200 | kernel_x, kernel_width, kernel_y, kernel_height, border_type, context); | |
| 20 | } | ||
| 21 | |||
| 22 | #define KLEIDICV_INSTANTIATE_TEMPLATE(type) \ | ||
| 23 | template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \ | ||
| 24 | separable_filter_2d_stripe<type>( \ | ||
| 25 | const type *src, size_t src_stride, type *dst, size_t dst_stride, \ | ||
| 26 | size_t width, size_t height, size_t y_begin, size_t y_end, \ | ||
| 27 | size_t channels, const type *kernel_x, size_t kernel_width, \ | ||
| 28 | const type *kernel_y, size_t kernel_height, FixedBorderType border_type, \ | ||
| 29 | kleidicv_filter_context_t *context) | ||
| 30 | |||
| 31 | KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t); | ||
| 32 | KLEIDICV_INSTANTIATE_TEMPLATE(uint16_t); | ||
| 33 | KLEIDICV_INSTANTIATE_TEMPLATE(int16_t); | ||
| 34 | |||
| 35 | } // namespace kleidicv::sve2 | ||
| 36 |