Line |
Branch |
Exec |
Source |
1 |
|
|
// SPDX-FileCopyrightText: 2023 - 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> |
2 |
|
|
// |
3 |
|
|
// SPDX-License-Identifier: Apache-2.0 |
4 |
|
|
|
5 |
|
|
#include "yuv_sp_to_rgb_sc.h" |
6 |
|
|
|
7 |
|
|
namespace kleidicv::sve2 { |
8 |
|
|
|
9 |
|
|
KLEIDICV_TARGET_FN_ATTRS |
10 |
|
252 |
kleidicv_error_t yuv_sp_to_rgb_u8(const uint8_t *src_y, size_t src_y_stride, |
11 |
|
|
const uint8_t *src_uv, size_t src_uv_stride, |
12 |
|
|
uint8_t *dst, size_t dst_stride, size_t width, |
13 |
|
|
size_t height, bool is_nv21) { |
14 |
|
504 |
return yuv_sp_to_rgb_u8_sc(src_y, src_y_stride, src_uv, src_uv_stride, dst, |
15 |
|
252 |
dst_stride, width, height, is_nv21); |
16 |
|
|
} |
17 |
|
|
|
18 |
|
|
KLEIDICV_TARGET_FN_ATTRS |
19 |
|
252 |
kleidicv_error_t yuv_sp_to_rgba_u8(const uint8_t *src_y, size_t src_y_stride, |
20 |
|
|
const uint8_t *src_uv, size_t src_uv_stride, |
21 |
|
|
uint8_t *dst, size_t dst_stride, |
22 |
|
|
size_t width, size_t height, bool is_nv21) { |
23 |
|
504 |
return yuv_sp_to_rgba_u8_sc(src_y, src_y_stride, src_uv, src_uv_stride, dst, |
24 |
|
252 |
dst_stride, width, height, is_nv21); |
25 |
|
|
} |
26 |
|
|
|
27 |
|
|
KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t |
28 |
|
252 |
yuv_sp_to_bgr_u8(const uint8_t *src_y, size_t src_y_stride, |
29 |
|
|
const uint8_t *src_uv, size_t src_uv_stride, uint8_t *dst, |
30 |
|
|
size_t dst_stride, size_t width, size_t height, bool is_nv21) { |
31 |
|
504 |
return yuv_sp_to_bgr_u8_sc(src_y, src_y_stride, src_uv, src_uv_stride, dst, |
32 |
|
252 |
dst_stride, width, height, is_nv21); |
33 |
|
|
} |
34 |
|
|
|
35 |
|
252 |
KLEIDICV_TARGET_FN_ATTRS kleidicv_error_t yuv_sp_to_bgra_u8( |
36 |
|
|
const uint8_t *src_y, size_t src_y_stride, const uint8_t *src_uv, |
37 |
|
|
size_t src_uv_stride, uint8_t *dst, size_t dst_stride, size_t width, |
38 |
|
|
size_t height, bool is_nv21) { |
39 |
|
504 |
return yuv_sp_to_bgra_u8_sc(src_y, src_y_stride, src_uv, src_uv_stride, dst, |
40 |
|
252 |
dst_stride, width, height, is_nv21); |
41 |
|
|
} |
42 |
|
|
|
43 |
|
|
} // namespace kleidicv::sve2 |
44 |
|
|
|