SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | SDL_SW_YUVTexture |
Functions | |
SDL_SW_YUVTexture * | SDL_SW_CreateYUVTexture (Uint32 format, int w, int h) |
int | SDL_SW_QueryYUVTexturePixels (SDL_SW_YUVTexture *swdata, void **pixels, int *pitch) |
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) |
int | SDL_SW_LockYUVTexture (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, void **pixels, int *pitch) |
void | SDL_SW_UnlockYUVTexture (SDL_SW_YUVTexture *swdata) |
int | SDL_SW_CopyYUVToRGB (SDL_SW_YUVTexture *swdata, const SDL_Rect *srcrect, Uint32 target_format, int w, int h, void *pixels, int pitch) |
void | SDL_SW_DestroyYUVTexture (SDL_SW_YUVTexture *swdata) |
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 334 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::display, SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, SDL_Rect::h, SDL_Surface::h, NULL, SDL_Surface::pitch, SDL_SW_YUVTexture::pitches, SDL_Surface::pixels, SDL_SW_YUVTexture::planes, rect, SDL_ConvertPixels, SDL_CreateRGBSurface, SDL_CreateRGBSurfaceFrom, SDL_FreeSurface, SDL_PixelFormatEnumToMasks, SDL_SoftStretch, 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 | ||
) |
< Planar mode: Y + V + U (3 planes)
< Planar mode: Y + U + V (3 planes)
< Packed mode: Y0+U0+Y1+V0 (1 plane)
< Packed mode: U0+Y0+V0+Y1 (1 plane)
< Packed mode: Y0+V0+Y1+U0 (1 plane)
< Planar mode: Y + U/V interleaved (2 planes)
< Planar mode: Y + V/U interleaved (2 planes)
Definition at line 31 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::format, SDL_SW_YUVTexture::h, NULL, SDL_SW_YUVTexture::pitches, SDL_SW_YUVTexture::pixels, SDL_SW_YUVTexture::planes, SDL_assert, SDL_calloc, SDL_malloc, SDL_OutOfMemory, SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_NV12, SDL_PIXELFORMAT_NV21, 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 404 of file SDL_yuv_sw.c.
References SDL_SW_YUVTexture::display, SDL_SW_YUVTexture::pixels, 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 302 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_NV12, SDL_PIXELFORMAT_NV21, 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 130 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 329 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 139 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::pixels, SDL_SW_YUVTexture::planes, SDL_memcpy, SDL_PIXELFORMAT_IYUV, SDL_PIXELFORMAT_NV12, SDL_PIXELFORMAT_NV21, 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 247 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().