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 "scale_sc.h" |
6 |
|
|
|
7 |
|
|
namespace kleidicv::sve2 { |
8 |
|
|
|
9 |
|
|
template <typename T> |
10 |
|
113 |
KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t scale(const T* src, size_t src_stride, |
11 |
|
|
T* dst, size_t dst_stride, |
12 |
|
|
size_t width, size_t height, |
13 |
|
|
float scale, float shift) { |
14 |
|
226 |
return scale_sc<T>(src, src_stride, dst, dst_stride, width, height, scale, |
15 |
|
113 |
shift); |
16 |
|
|
} |
17 |
|
|
|
18 |
|
|
#define KLEIDICV_INSTANTIATE_TEMPLATE(type) \ |
19 |
|
|
template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t scale<type>( \ |
20 |
|
|
const type* src, size_t src_stride, type* dst, size_t dst_stride, \ |
21 |
|
|
size_t width, size_t height, float scale, float shift) |
22 |
|
|
|
23 |
|
|
KLEIDICV_INSTANTIATE_TEMPLATE(float); |
24 |
|
|
|
25 |
|
|
} // namespace kleidicv::sve2 |
26 |
|
|
|