zenilib
0.5.3.0
|
Go to the source code of this file.
Classes | |
struct | SDL_SW_YUVTexture |
Typedefs | |
typedef struct SDL_SW_YUVTexture | SDL_SW_YUVTexture |
Functions | |
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) |
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) |
typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture |
Definition at line 53 of file SDL_yuv_sw_c.h.
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.
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().