Line |
Branch |
Exec |
Source |
1 |
|
|
// SPDX-FileCopyrightText: 2023 Arm Limited and/or its affiliates <open-source-office@arm.com> |
2 |
|
|
// |
3 |
|
|
// SPDX-License-Identifier: Apache-2.0 |
4 |
|
|
|
5 |
|
|
#include "threshold_sc.h" |
6 |
|
|
|
7 |
|
|
namespace kleidicv::sve2 { |
8 |
|
|
|
9 |
|
|
template <typename T> |
10 |
|
|
KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t |
11 |
|
75 |
threshold_binary(const T *src, size_t src_stride, T *dst, size_t dst_stride, |
12 |
|
|
size_t width, size_t height, T threshold, T value) { |
13 |
|
150 |
return threshold_binary_sc(src, src_stride, dst, dst_stride, width, height, |
14 |
|
75 |
threshold, value); |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
#define KLEIDICV_INSTANTIATE_TEMPLATE(type) \ |
18 |
|
|
template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t threshold_binary<type>( \ |
19 |
|
|
const type *src, size_t src_stride, type *dst, size_t dst_stride, \ |
20 |
|
|
size_t width, size_t height, type threshold, type value) |
21 |
|
|
|
22 |
|
|
KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t); |
23 |
|
|
|
24 |
|
|
} // namespace kleidicv::sve2 |
25 |
|
|
|