diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h | |
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h')
| -rw-r--r-- | contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.h | 36 |
1 files changed, 36 insertions, 0 deletions
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 @@ | |||
| 1 | #ifdef SDL_LSX_INTRINSICS | ||
| 2 | |||
| 3 | #include "yuv_rgb_common.h" | ||
| 4 | |||
| 5 | //yuv420 to bgra, lsx implementation | ||
| 6 | void yuv420_rgb24_lsx( | ||
| 7 | uint32_t width, uint32_t height, | ||
| 8 | const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, | ||
| 9 | uint8_t *rgb, uint32_t rgb_stride, | ||
| 10 | YCbCrType yuv_type); | ||
| 11 | |||
| 12 | void yuv420_rgba_lsx( | ||
| 13 | uint32_t width, uint32_t height, | ||
| 14 | const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, | ||
| 15 | uint8_t *rgb, uint32_t rgb_stride, | ||
| 16 | YCbCrType yuv_type); | ||
| 17 | |||
| 18 | void yuv420_bgra_lsx( | ||
| 19 | uint32_t width, uint32_t height, | ||
| 20 | const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, | ||
| 21 | uint8_t *rgb, uint32_t rgb_stride, | ||
| 22 | YCbCrType yuv_type); | ||
| 23 | |||
| 24 | void yuv420_argb_lsx( | ||
| 25 | uint32_t width, uint32_t height, | ||
| 26 | const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, | ||
| 27 | uint8_t *rgb, uint32_t rgb_stride, | ||
| 28 | YCbCrType yuv_type); | ||
| 29 | |||
| 30 | void yuv420_abgr_lsx( | ||
| 31 | uint32_t width, uint32_t height, | ||
| 32 | const uint8_t *y, const uint8_t *v, const uint8_t *u, uint32_t y_stride, uint32_t uv_stride, | ||
| 33 | uint8_t *rgb, uint32_t rgb_stride, | ||
| 34 | YCbCrType yuv_type); | ||
| 35 | |||
| 36 | #endif //SDL_LSX_INTRINSICS | ||
