SDL
2.0
|
Go to the source code of this file.
Functions | |
static float | clip3 (float x, float y, float z) |
static void | RGBtoYUV (Uint8 *rgb, int *yuv, SDL_YUV_CONVERSION_MODE mode, int monochrome, int luminance) |
static void | ConvertRGBtoPlanar2x2 (Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, SDL_YUV_CONVERSION_MODE mode, int monochrome, int luminance) |
static void | ConvertRGBtoPacked4 (Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, SDL_YUV_CONVERSION_MODE mode, int monochrome, int luminance) |
SDL_bool | ConvertRGBtoYUV (Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, SDL_YUV_CONVERSION_MODE mode, int monochrome, int luminance) |
int | CalculateYUVPitch (Uint32 format, int width) |
int CalculateYUVPitch | ( | Uint32 | format, |
int | width | ||
) |
Definition at line 282 of file testyuv_cvt.c.
References SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_NV12, SDL_PIXELFORMAT_NV21, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YV12, and SDL_PIXELFORMAT_YVYU.
Referenced by main(), and run_automated_tests().
|
static |
|
static |
Definition at line 192 of file testyuv_cvt.c.
References RGBtoYUV(), SDL_assert, SDL_floorf, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YVYU, and V.
Referenced by ConvertRGBtoYUV().
|
static |
Definition at line 76 of file testyuv_cvt.c.
References RGBtoYUV(), SDL_assert, SDL_floorf, SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_NV12, SDL_PIXELFORMAT_NV21, SDL_PIXELFORMAT_YV12, and V.
Referenced by ConvertRGBtoYUV().
SDL_bool ConvertRGBtoYUV | ( | Uint32 | format, |
Uint8 * | src, | ||
int | pitch, | ||
Uint8 * | out, | ||
int | w, | ||
int | h, | ||
SDL_YUV_CONVERSION_MODE | mode, | ||
int | monochrome, | ||
int | luminance | ||
) |
Definition at line 262 of file testyuv_cvt.c.
References ConvertRGBtoPacked4(), ConvertRGBtoPlanar2x2(), SDL_FALSE, SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_NV12, SDL_PIXELFORMAT_NV21, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YV12, SDL_PIXELFORMAT_YVYU, and SDL_TRUE.
Referenced by main(), and run_automated_tests().
|
static |
Definition at line 23 of file testyuv_cvt.c.
References clip3(), G, SDL_floorf, SDL_YUV_CONVERSION_BT709, SDL_YUV_CONVERSION_JPEG, and V.
Referenced by ConvertRGBtoPacked4(), and ConvertRGBtoPlanar2x2().