SDL
2.0
|
#include "../../SDL_internal.h"
#include "yuv_rgb.h"
#include "SDL_cpuinfo.h"
#include "yuv_rgb_std_func.h"
Go to the source code of this file.
Data Structures | |
struct | RGB2YUVParam |
struct | YUV2RGBParam |
Functions | |
static uint8_t | clampU8 (int32_t v) |
void | rgb24_yuv420_std (uint32_t width, uint32_t height, const uint8_t *RGB, uint32_t RGB_stride, uint8_t *Y, uint8_t *U, uint8_t *V, uint32_t Y_stride, uint32_t UV_stride, YCbCrType yuv_type) |
Variables | |
static const YUV2RGBParam | YUV2RGB [3] |
static const RGB2YUVParam | RGB2YUV [3] |
#define PRECISION 6 |
Definition at line 10 of file yuv_rgb.c.
Referenced by clampU8(), and rgb24_yuv420_std().
#define PRECISION_FACTOR (1<<PRECISION) |
#define RGB_FORMAT RGB_FORMAT_RGB565 |
#define RGB_FORMAT RGB_FORMAT_RGB24 |
#define RGB_FORMAT RGB_FORMAT_RGBA |
#define RGB_FORMAT RGB_FORMAT_BGRA |
#define RGB_FORMAT RGB_FORMAT_ARGB |
#define RGB_FORMAT RGB_FORMAT_ABGR |
#define RGB_FORMAT RGB_FORMAT_RGB565 |
#define RGB_FORMAT RGB_FORMAT_RGB24 |
#define RGB_FORMAT RGB_FORMAT_RGBA |
#define RGB_FORMAT RGB_FORMAT_BGRA |
#define RGB_FORMAT RGB_FORMAT_ARGB |
#define RGB_FORMAT RGB_FORMAT_ABGR |
#define RGB_FORMAT RGB_FORMAT_RGB565 |
#define RGB_FORMAT RGB_FORMAT_RGB24 |
#define RGB_FORMAT RGB_FORMAT_RGBA |
#define RGB_FORMAT RGB_FORMAT_BGRA |
#define RGB_FORMAT RGB_FORMAT_ARGB |
#define RGB_FORMAT RGB_FORMAT_ABGR |
#define STD_FUNCTION_NAME yuv420_rgb565_std |
#define STD_FUNCTION_NAME yuv420_rgb24_std |
#define STD_FUNCTION_NAME yuv420_rgba_std |
#define STD_FUNCTION_NAME yuv420_bgra_std |
#define STD_FUNCTION_NAME yuv420_argb_std |
#define STD_FUNCTION_NAME yuv420_abgr_std |
#define STD_FUNCTION_NAME yuv422_rgb565_std |
#define STD_FUNCTION_NAME yuv422_rgb24_std |
#define STD_FUNCTION_NAME yuv422_rgba_std |
#define STD_FUNCTION_NAME yuv422_bgra_std |
#define STD_FUNCTION_NAME yuv422_argb_std |
#define STD_FUNCTION_NAME yuv422_abgr_std |
#define STD_FUNCTION_NAME yuvnv12_rgb565_std |
#define STD_FUNCTION_NAME yuvnv12_rgb24_std |
#define STD_FUNCTION_NAME yuvnv12_rgba_std |
#define STD_FUNCTION_NAME yuvnv12_bgra_std |
#define STD_FUNCTION_NAME yuvnv12_argb_std |
#define STD_FUNCTION_NAME yuvnv12_abgr_std |
#define V | ( | value | ) | (int16_t)((value*PRECISION_FACTOR)+0.5) |
Definition at line 35 of file yuv_rgb.c.
Referenced by ConvertRGBtoPacked4(), ConvertRGBtoPlanar2x2(), rgb24_yuv420_std(), RGBtoYUV(), SDL_ConvertPixels_UYVY_to_YUY2(), SDL_ConvertPixels_UYVY_to_YVYU(), SDL_ConvertPixels_YUY2_to_UYVY(), SDL_ConvertPixels_YUY2_to_YVYU(), SDL_ConvertPixels_YVYU_to_UYVY(), and SDL_ConvertPixels_YVYU_to_YUY2().
#define YUV_FORMAT YUV_FORMAT_420 |
#define YUV_FORMAT YUV_FORMAT_420 |
#define YUV_FORMAT YUV_FORMAT_420 |
#define YUV_FORMAT YUV_FORMAT_420 |
#define YUV_FORMAT YUV_FORMAT_420 |
#define YUV_FORMAT YUV_FORMAT_420 |
#define YUV_FORMAT YUV_FORMAT_422 |
#define YUV_FORMAT YUV_FORMAT_422 |
#define YUV_FORMAT YUV_FORMAT_422 |
#define YUV_FORMAT YUV_FORMAT_422 |
#define YUV_FORMAT YUV_FORMAT_422 |
#define YUV_FORMAT YUV_FORMAT_422 |
#define YUV_FORMAT YUV_FORMAT_NV12 |
#define YUV_FORMAT YUV_FORMAT_NV12 |
#define YUV_FORMAT YUV_FORMAT_NV12 |
#define YUV_FORMAT YUV_FORMAT_NV12 |
#define YUV_FORMAT YUV_FORMAT_NV12 |
#define YUV_FORMAT YUV_FORMAT_NV12 |
Definition at line 75 of file yuv_rgb.c.
References PRECISION, and PRECISION_FACTOR.
Referenced by rgb24_yuv420_std().
void rgb24_yuv420_std | ( | uint32_t | width, |
uint32_t | height, | ||
const uint8_t * | RGB, | ||
uint32_t | RGB_stride, | ||
uint8_t * | Y, | ||
uint8_t * | U, | ||
uint8_t * | V, | ||
uint32_t | Y_stride, | ||
uint32_t | UV_stride, | ||
YCbCrType | yuv_type | ||
) |
Definition at line 186 of file yuv_rgb.c.
References clampU8(), RGB2YUVParam::matrix, PRECISION, RGB, rgb24_yuv420_sse(), rgb24_yuv420_sseu(), V, and RGB2YUVParam::y_shift.
Referenced by SDL_ConvertPixels_RGB_to_YUV().
|
static |
|
static |
Definition at line 42 of file yuv_rgb.c.
Referenced by SSE_FUNCTION_NAME(), and STD_FUNCTION_NAME().