comparison src/video/SDL_yuv_sw_c.h @ 1684:c4aa1a2f48f1 SDL-1.3

Software YUV texture support in progress...
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jun 2006 06:35:41 +0000
parents 4da1ee79c9af
children
comparison
equal deleted inserted replaced
1683:396a35389351 1684:c4aa1a2f48f1
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, 29 typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture;
30 Uint32 format, SDL_Surface * display);
31 30
32 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);
33 43
34 extern void SDL_UnlockYUV_SW(_THIS, SDL_Overlay * overlay);
35
36 extern int SDL_DisplayYUV_SW(_THIS, SDL_Overlay * overlay, SDL_Rect * src,
37 SDL_Rect * dst);
38
39 extern void SDL_FreeYUV_SW(_THIS, SDL_Overlay * overlay);
40 /* vi: set ts=4 sw=4 expandtab: */ 44 /* vi: set ts=4 sw=4 expandtab: */