Line |
Branch |
Exec |
Source |
1 |
|
|
// SPDX-FileCopyrightText: 2024 - 2025 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::sme { |
8 |
|
|
|
9 |
|
|
template <typename T> |
10 |
|
|
KLEIDICV_LOCALLY_STREAMING KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t |
11 |
|
113 |
scale(const T* src, size_t src_stride, T* dst, size_t dst_stride, size_t width, |
12 |
|
|
size_t height, float scale, float shift) { |
13 |
|
226 |
return scale_sc<T>(src, src_stride, dst, dst_stride, width, height, scale, |
14 |
|
113 |
shift); |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
#define KLEIDICV_INSTANTIATE_TEMPLATE(type) \ |
18 |
|
|
template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t scale<type>( \ |
19 |
|
|
const type* src, size_t src_stride, type* dst, size_t dst_stride, \ |
20 |
|
|
size_t width, size_t height, float scale, float shift) |
21 |
|
|
|
22 |
|
|
KLEIDICV_INSTANTIATE_TEMPLATE(float); |
23 |
|
|
|
24 |
|
|
} // namespace kleidicv::sme |
25 |
|
|
|