zenilib
0.5.3.0
|
#include "SDL_config.h"
#include "SDL_assert.h"
#include "SDL_video.h"
#include "SDL_cpuinfo.h"
#include "SDL_yuv_sw_c.h"
Go to the source code of this file.
Functions | |
static void | Color16DitherYUY2Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color16DitherYUY2Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color16DitherYV12Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color16DitherYV12Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color24DitherYUY2Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color24DitherYUY2Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color24DitherYV12Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color24DitherYV12Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color32DitherYUY2Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color32DitherYUY2Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color32DitherYV12Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static void | Color32DitherYV12Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod) |
static int | free_bits_at_bottom (Uint32 a) |
static int | number_of_bits_set (Uint32 a) |
int | SDL_SW_CopyYUVToRGB (SDL_SW_YUVTexture *swdata, const SDL_Rect *srcrect, Uint32 target_format, int w, int h, void *pixels, int pitch) |
SDL_SW_YUVTexture * | SDL_SW_CreateYUVTexture (Uint32 format, int w, int h) |
void | SDL_SW_DestroyYUVTexture (SDL_SW_YUVTexture *swdata) |
int | SDL_SW_LockYUVTexture (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, void **pixels, int *pitch) |
int | SDL_SW_QueryYUVTexturePixels (SDL_SW_YUVTexture *swdata, void **pixels, int *pitch) |
static int | SDL_SW_SetupYUVDisplay (SDL_SW_YUVTexture *swdata, Uint32 target_format) |
void | SDL_SW_UnlockYUVTexture (SDL_SW_YUVTexture *swdata) |
int | SDL_SW_UpdateYUVTexture (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, const void *pixels, int pitch) |
int | SDL_SW_UpdateYUVTexturePlanar (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, const Uint8 *Yplane, int Ypitch, const Uint8 *Uplane, int Upitch, const Uint8 *Vplane, int Vpitch) |
|
static |
Definition at line 566 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 710 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 105 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 326 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 612 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 756 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 175 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 399 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 662 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 812 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 255 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
|
static |
Definition at line 493 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
Definition at line 878 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
Definition at line 864 of file SDL_yuv_sw.c.
Referenced by SDL_SW_SetupYUVDisplay().
int SDL_SW_CopyYUVToRGB | ( | SDL_SW_YUVTexture * | swdata, |
const SDL_Rect * | srcrect, | ||
Uint32 | target_format, | ||
int | w, | ||
int | h, | ||
void * | pixels, | ||
int | pitch | ||
) |
Definition at line 1272 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::colortab, SDL_SW_YUVTexture::display, SDL_SW_YUVTexture::Display1X, SDL_SW_YUVTexture::Display2X, SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, SDL_Rect::h, SDL_Surface::h, NULL, SDL_Surface::pitch, SDL_Surface::pixels, SDL_SW_YUVTexture::planes, SDL_SW_YUVTexture::rgb_2_pix, SDL_BYTESPERPIXEL, SDL_CreateRGBSurface(), SDL_CreateRGBSurfaceFrom(), SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YV12, SDL_PIXELFORMAT_YVYU, SDL_PixelFormatEnumToMasks(), SDL_SetError(), SDL_SoftStretch(), SDL_SW_SetupYUVDisplay(), SDL_SW_YUVTexture::stretch, SDL_SW_YUVTexture::target_format, SDL_SW_YUVTexture::w, SDL_Rect::w, SDL_Surface::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by SDL_UnlockTextureYUV(), SDL_UpdateTextureYUV(), and SDL_UpdateTextureYUVPlanar().
SDL_SW_YUVTexture* SDL_SW_CreateYUVTexture | ( | Uint32 | format, |
int | w, | ||
int | h | ||
) |
Definition at line 1021 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::colortab, SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, i, int, NULL, SDL_SW_YUVTexture::pitches, SDL_SW_YUVTexture::pixels, SDL_SW_YUVTexture::planes, SDL_SW_YUVTexture::rgb_2_pix, SDL_assert, SDL_calloc(), SDL_malloc(), SDL_OutOfMemory, SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_UNKNOWN, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YV12, SDL_PIXELFORMAT_YVYU, SDL_SetError(), SDL_SW_DestroyYUVTexture(), SDL_SW_YUVTexture::target_format, and SDL_SW_YUVTexture::w.
Referenced by SDL_CreateTexture().
void SDL_SW_DestroyYUVTexture | ( | SDL_SW_YUVTexture * | swdata | ) |
Definition at line 1387 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::colortab, SDL_SW_YUVTexture::display, SDL_SW_YUVTexture::pixels, SDL_SW_YUVTexture::rgb_2_pix, SDL_free(), SDL_FreeSurface(), and SDL_SW_YUVTexture::stretch.
Referenced by SDL_DestroyTexture(), and SDL_SW_CreateYUVTexture().
int SDL_SW_LockYUVTexture | ( | SDL_SW_YUVTexture * | swdata, |
const SDL_Rect * | rect, | ||
void ** | pixels, | ||
int * | pitch | ||
) |
Definition at line 1242 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, SDL_Rect::h, SDL_SW_YUVTexture::pitches, SDL_SW_YUVTexture::planes, SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_YV12, SDL_SetError(), SDL_SW_YUVTexture::w, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by SDL_LockTextureYUV().
int SDL_SW_QueryYUVTexturePixels | ( | SDL_SW_YUVTexture * | swdata, |
void ** | pixels, | ||
int * | pitch | ||
) |
Definition at line 1105 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::pitches, and SDL_SW_YUVTexture::planes.
|
static |
Definition at line 889 of file SDL_yuv_sw.c.
References Color16DitherYUY2Mod1X(), Color16DitherYUY2Mod2X(), Color16DitherYV12Mod1X(), Color16DitherYV12Mod2X(), Color24DitherYUY2Mod1X(), Color24DitherYUY2Mod2X(), Color24DitherYV12Mod1X(), Color24DitherYV12Mod2X(), Color32DitherYUY2Mod1X(), Color32DitherYUY2Mod2X(), Color32DitherYV12Mod1X(), Color32DitherYV12Mod2X(), SDL_SW_YUVTexture::display, SDL_SW_YUVTexture::Display1X, SDL_SW_YUVTexture::Display2X, SDL_SW_YUVTexture::format, free_bits_at_bottom(), i, NULL, number_of_bits_set(), SDL_SW_YUVTexture::rgb_2_pix, SDL_BYTESPERPIXEL, SDL_FreeSurface(), SDL_HasMMX(), SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YV12, SDL_PIXELFORMAT_YVYU, SDL_PixelFormatEnumToMasks(), SDL_SetError(), SDL_SW_YUVTexture::target_format, and SDL_SW_YUVTexture::w.
Referenced by SDL_SW_CopyYUVToRGB().
void SDL_SW_UnlockYUVTexture | ( | SDL_SW_YUVTexture * | swdata | ) |
Definition at line 1267 of file SDL_yuv_sw.c.
int SDL_SW_UpdateYUVTexture | ( | SDL_SW_YUVTexture * | swdata, |
const SDL_Rect * | rect, | ||
const void * | pixels, | ||
int | pitch | ||
) |
Definition at line 1114 of file SDL_yuv_sw.c.
References for(), SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, SDL_Rect::h, SDL_SW_YUVTexture::pitches, SDL_SW_YUVTexture::pixels, SDL_SW_YUVTexture::planes, SDL_memcpy(), SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_UYVY, SDL_PIXELFORMAT_YUY2, SDL_PIXELFORMAT_YV12, SDL_PIXELFORMAT_YVYU, SDL_SW_YUVTexture::w, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by SDL_UpdateTextureYUV().
int SDL_SW_UpdateYUVTexturePlanar | ( | SDL_SW_YUVTexture * | swdata, |
const SDL_Rect * | rect, | ||
const Uint8 * | Yplane, | ||
int | Ypitch, | ||
const Uint8 * | Uplane, | ||
int | Upitch, | ||
const Uint8 * | Vplane, | ||
int | Vpitch | ||
) |
Definition at line 1188 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, SDL_Rect::h, SDL_SW_YUVTexture::pixels, SDL_memcpy(), SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_YV12, SDL_SW_YUVTexture::w, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by SDL_UpdateTextureYUVPlanar().