comparison src/video/SDL_yuv_sw_c.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 51038e80ae59
children 5651642f4a78
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #include "SDL_video.h" 24 #include "SDL_video.h"
25 #include "SDL_sysvideo.h" 25 #include "SDL_sysvideo.h"
26 26
27 /* This is the software implementation of the YUV video overlay support */ 27 /* This is the software implementation of the YUV texture support */
28 28
29 extern SDL_Overlay *SDL_CreateYUV_SW(_THIS, int width, int height, Uint32 format, SDL_Surface *display); 29 typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture;
30 30
31 extern int SDL_LockYUV_SW(_THIS, SDL_Overlay *overlay); 31 SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(SDL_Texture * texture);
32 int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels,
33 int *pitch);
34 int SDL_SW_UpdateYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
35 const void *pixels, int pitch);
36 int SDL_SW_LockYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
37 int markDirty, void **pixels, int *pitch);
38 void SDL_SW_UnlockYUVTexture(SDL_SW_YUVTexture * swdata);
39 int SDL_SW_CopyYUVToRGB(SDL_SW_YUVTexture * swdata, const SDL_Rect * srcrect,
40 Uint32 target_format, int w, int h, void *pixels,
41 int pitch);
42 void SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture * swdata);
32 43
33 extern void SDL_UnlockYUV_SW(_THIS, SDL_Overlay *overlay); 44 /* vi: set ts=4 sw=4 expandtab: */
34
35 extern int SDL_DisplayYUV_SW(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst);
36
37 extern void SDL_FreeYUV_SW(_THIS, SDL_Overlay *overlay);