From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h (limited to 'contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h') diff --git a/contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h b/contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h new file mode 100644 index 0000000..1347a31 --- /dev/null +++ b/contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h @@ -0,0 +1,36 @@ +#ifdef SDL_LSX_INTRINSICS + +#include "yuv_rgb_common.h" + +//yuv420 to bgra, lsx implementation +void yuv420_rgb24_lsx( + uint32_t width, uint32_t height, + const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, + uint8_t *rgb, uint32_t rgb_stride, + YCbCrType yuv_type); + +void yuv420_rgba_lsx( + uint32_t width, uint32_t height, + const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, + uint8_t *rgb, uint32_t rgb_stride, + YCbCrType yuv_type); + +void yuv420_bgra_lsx( + uint32_t width, uint32_t height, + const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, + uint8_t *rgb, uint32_t rgb_stride, + YCbCrType yuv_type); + +void yuv420_argb_lsx( + uint32_t width, uint32_t height, + const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, + uint8_t *rgb, uint32_t rgb_stride, + YCbCrType yuv_type); + +void yuv420_abgr_lsx( + uint32_t width, uint32_t height, + const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, + uint8_t *rgb, uint32_t rgb_stride, + YCbCrType yuv_type); + +#endif //SDL_LSX_INTRINSICS -- cgit v1.2.3