Mercurial > sdl-ios-xcode
comparison src/video/SDL_yuv_sw_c.h @ 2781:5651642f4a78
Added software fallback for YUV overlay code when YUV textures aren't available.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Nov 2008 23:25:36 +0000 |
parents | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2780:cc15254e44b6 | 2781:5651642f4a78 |
---|---|
26 | 26 |
27 /* This is the software implementation of the YUV texture support */ | 27 /* This is the software implementation of the YUV texture support */ |
28 | 28 |
29 typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture; | 29 typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture; |
30 | 30 |
31 SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(SDL_Texture * texture); | 31 SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(Uint32 format, int w, int h); |
32 int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels, | 32 int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels, |
33 int *pitch); | 33 int *pitch); |
34 int SDL_SW_UpdateYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect, | 34 int SDL_SW_UpdateYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect, |
35 const void *pixels, int pitch); | 35 const void *pixels, int pitch); |
36 int SDL_SW_LockYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect, | 36 int SDL_SW_LockYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect, |