KleidiCV Coverage Report


Directory: ./
File: kleidicv/src/filters/median_blur_sorting_network_sve2.cpp
Date: 2025-09-25 14:13:34
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 7 7 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // SPDX-FileCopyrightText: 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
2 //
3 // SPDX-License-Identifier: Apache-2.0
4
5 #include "kleidicv/filters/median_blur.h"
6 #include "median_blur_sorting_network_sc.h"
7
8 namespace kleidicv::sve2 {
9
10 template <typename T>
11 1610 KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t median_blur_sorting_network_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 size_t kernel_width, size_t kernel_height, FixedBorderType border_type) {
15 1610 return median_blur_sorting_network_stripe_sc(
16 1610 src, src_stride, dst, dst_stride, width, height, y_begin, y_end, channels,
17 1610 kernel_width, kernel_height, border_type);
18 }
19
20 #define KLEIDICV_INSTANTIATE_TEMPLATE(type) \
21 template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \
22 median_blur_sorting_network_stripe<type>( \
23 const type* src, size_t src_stride, type* dst, size_t dst_stride, \
24 size_t width, size_t height, size_t y_begin, size_t y_end, \
25 size_t channels, size_t kernel_width, size_t kernel_height, \
26 FixedBorderType border_type)
27
28 KLEIDICV_INSTANTIATE_TEMPLATE(int8_t);
29 KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t);
30 KLEIDICV_INSTANTIATE_TEMPLATE(int16_t);
31 KLEIDICV_INSTANTIATE_TEMPLATE(uint16_t);
32 KLEIDICV_INSTANTIATE_TEMPLATE(int32_t);
33 KLEIDICV_INSTANTIATE_TEMPLATE(uint32_t);
34 KLEIDICV_INSTANTIATE_TEMPLATE(float);
35
36 } // namespace kleidicv::sve2
37