| 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, typename U> | ||
| 10 | KLEIDICV_LOCALLY_STREAMING KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t | ||
| 11 | 197 | scale(const T* src, size_t src_stride, U* dst, size_t dst_stride, size_t width, | |
| 12 | size_t height, double scale, double shift) { | ||
| 13 | 394 | return scale_sc<T, U>(src, src_stride, dst, dst_stride, width, height, scale, | |
| 14 | 197 | shift); | |
| 15 | } | ||
| 16 | |||
| 17 | #define KLEIDICV_INSTANTIATE_TEMPLATE(src_type, dst_type) \ | ||
| 18 | template KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t \ | ||
| 19 | scale<src_type, dst_type>(const src_type* src, size_t src_stride, \ | ||
| 20 | dst_type* dst, size_t dst_stride, size_t width, \ | ||
| 21 | size_t height, double scale, double shift) | ||
| 22 | |||
| 23 | KLEIDICV_INSTANTIATE_TEMPLATE(float, float); | ||
| 24 | KLEIDICV_INSTANTIATE_TEMPLATE(uint8_t, float16_t); | ||
| 25 | |||
| 26 | } // namespace kleidicv::sme | ||
| 27 |