diff options
Diffstat (limited to 'contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.c')
| -rw-r--r-- | contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.c b/contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.c new file mode 100644 index 0000000..250ff37 --- /dev/null +++ b/contrib/SDL-3.2.8/src/video/yuv2rgb/yuv_rgb_lsx.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | // Copyright 2016 Adrien Descamps | ||
| 2 | // Distributed under BSD 3-Clause License | ||
| 3 | #include "SDL_internal.h" | ||
| 4 | |||
| 5 | #ifdef SDL_HAVE_YUV | ||
| 6 | #include "yuv_rgb_lsx.h" | ||
| 7 | #include "yuv_rgb_internal.h" | ||
| 8 | |||
| 9 | #ifdef SDL_LSX_INTRINSICS | ||
| 10 | |||
| 11 | #define LSX_FUNCTION_NAME yuv420_rgb24_lsx | ||
| 12 | #define STD_FUNCTION_NAME yuv420_rgb24_std | ||
| 13 | #define YUV_FORMAT YUV_FORMAT_420 | ||
| 14 | #define RGB_FORMAT RGB_FORMAT_RGB24 | ||
| 15 | #include "yuv_rgb_lsx_func.h" | ||
| 16 | |||
| 17 | #define LSX_FUNCTION_NAME yuv420_rgba_lsx | ||
| 18 | #define STD_FUNCTION_NAME yuv420_rgba_std | ||
| 19 | #define YUV_FORMAT YUV_FORMAT_420 | ||
| 20 | #define RGB_FORMAT RGB_FORMAT_RGBA | ||
| 21 | #include "yuv_rgb_lsx_func.h" | ||
| 22 | |||
| 23 | #define LSX_FUNCTION_NAME yuv420_bgra_lsx | ||
| 24 | #define STD_FUNCTION_NAME yuv420_bgra_std | ||
| 25 | #define YUV_FORMAT YUV_FORMAT_420 | ||
| 26 | #define RGB_FORMAT RGB_FORMAT_BGRA | ||
| 27 | #include "yuv_rgb_lsx_func.h" | ||
| 28 | |||
| 29 | #define LSX_FUNCTION_NAME yuv420_argb_lsx | ||
| 30 | #define STD_FUNCTION_NAME yuv420_argb_std | ||
| 31 | #define YUV_FORMAT YUV_FORMAT_420 | ||
| 32 | #define RGB_FORMAT RGB_FORMAT_ARGB | ||
| 33 | #include "yuv_rgb_lsx_func.h" | ||
| 34 | |||
| 35 | #define LSX_FUNCTION_NAME yuv420_abgr_lsx | ||
| 36 | #define STD_FUNCTION_NAME yuv420_abgr_std | ||
| 37 | #define YUV_FORMAT YUV_FORMAT_420 | ||
| 38 | #define RGB_FORMAT RGB_FORMAT_ABGR | ||
| 39 | #include "yuv_rgb_lsx_func.h" | ||
| 40 | |||
| 41 | #endif // SDL_LSX_INTRINSICS | ||
| 42 | |||
| 43 | #endif // SDL_HAVE_YUV | ||
