Go to the source code of this file.
|
int | SDL_ConvertPixels_YUV_to_RGB (int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch) |
|
int | SDL_ConvertPixels_RGB_to_YUV (int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch) |
|
int | SDL_ConvertPixels_YUV_to_YUV (int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch) |
|
◆ SDL_ConvertPixels_RGB_to_YUV()
int SDL_ConvertPixels_RGB_to_YUV |
( |
int |
width, |
|
|
int |
height, |
|
|
Uint32 |
src_format, |
|
|
const void * |
src, |
|
|
int |
src_pitch, |
|
|
Uint32 |
dst_format, |
|
|
void * |
dst, |
|
|
int |
dst_pitch |
|
) |
| |
Definition at line 784 of file SDL_yuv.c.
References GetYUVConversionType(), GetYUVPlanes(), NULL, rgb24_yuv420_std(), SDL_ConvertPixels, SDL_ConvertPixels_ARGB8888_to_YUV(), SDL_free, SDL_malloc, SDL_OutOfMemory, SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_RGB24, and RGB2YUVFactors::u.
Referenced by SDL_ConvertPixels().
◆ SDL_ConvertPixels_YUV_to_RGB()
int SDL_ConvertPixels_YUV_to_RGB |
( |
int |
width, |
|
|
int |
height, |
|
|
Uint32 |
src_format, |
|
|
const void * |
src, |
|
|
int |
src_pitch, |
|
|
Uint32 |
dst_format, |
|
|
void * |
dst, |
|
|
int |
dst_pitch |
|
) |
| |
Definition at line 395 of file SDL_yuv.c.
414 if (
yuv_rgb_sse(src_format, dst_format,
width,
height,
y,
u,
v, y_stride, uv_stride, (
Uint8*)
dst, dst_pitch, yuv_type)) {
418 if (
yuv_rgb_std(src_format, dst_format,
width,
height,
y,
u,
v, y_stride, uv_stride, (
Uint8*)
dst, dst_pitch, yuv_type)) {
References GetYUVConversionType(), GetYUVPlanes(), NULL, SDL_ConvertPixels, SDL_ConvertPixels_YUV_to_RGB(), SDL_free, SDL_malloc, SDL_OutOfMemory, SDL_PIXELFORMAT_ARGB8888, SDL_SetError, YCBCR_601, yuv_rgb_sse(), and yuv_rgb_std().
Referenced by SDL_ConvertPixels(), and SDL_ConvertPixels_YUV_to_RGB().
◆ SDL_ConvertPixels_YUV_to_YUV()
int SDL_ConvertPixels_YUV_to_YUV |
( |
int |
width, |
|
|
int |
height, |
|
|
Uint32 |
src_format, |
|
|
const void * |
src, |
|
|
int |
src_pitch, |
|
|
Uint32 |
dst_format, |
|
|
void * |
dst, |
|
|
int |
dst_pitch |
|
) |
| |
@ SDL_PIXELFORMAT_ARGB8888
static int GetYUVConversionType(int width, int height, YCbCrType *yuv_type)
#define SDL_GetPixelFormatName
static int SDL_ConvertPixels_Packed4_to_Packed4(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)
GLint GLint GLsizei width
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)
static int SDL_ConvertPixels_ARGB8888_to_YUV(int width, int height, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)
static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, int yuv_pitch, const Uint8 **y, const Uint8 **u, const Uint8 **v, Uint32 *y_stride, Uint32 *uv_stride)
static SDL_bool IsPlanar2x2Format(Uint32 format)
GLint GLint GLsizei GLsizei height
static SDL_bool yuv_rgb_sse(Uint32 src_format, Uint32 dst_format, Uint32 width, Uint32 height, const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride, Uint8 *rgb, Uint32 rgb_stride, YCbCrType yuv_type)
static SDL_bool yuv_rgb_std(Uint32 src_format, Uint32 dst_format, Uint32 width, Uint32 height, const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride, Uint8 *rgb, Uint32 rgb_stride, YCbCrType yuv_type)
#define SDL_OutOfMemory()
GLint GLint GLint GLint GLint GLint y
static int SDL_ConvertPixels_Planar2x2_to_Packed4(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)
static int SDL_ConvertPixels_Planar2x2_to_Planar2x2(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)
static int SDL_ConvertPixels_Packed4_to_Planar2x2(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)
#define SDL_ConvertPixels
static int SDL_ConvertPixels_YUV_to_YUV_Copy(int width, int height, Uint32 format, const void *src, int src_pitch, void *dst, int dst_pitch)
static SDL_bool IsPacked4Format(Uint32 format)
int SDL_ConvertPixels_YUV_to_RGB(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)