src/video/SDL_yuv_sw_c.h
branchSDL-1.3
changeset 1684 c4aa1a2f48f1
parent 1668 4da1ee79c9af
     1.1 --- a/src/video/SDL_yuv_sw_c.h	Sat Jun 17 06:45:14 2006 +0000
     1.2 +++ b/src/video/SDL_yuv_sw_c.h	Sun Jun 18 06:35:41 2006 +0000
     1.3 @@ -24,17 +24,21 @@
     1.4  #include "SDL_video.h"
     1.5  #include "SDL_sysvideo.h"
     1.6  
     1.7 -/* This is the software implementation of the YUV video overlay support */
     1.8 +/* This is the software implementation of the YUV texture support */
     1.9  
    1.10 -extern SDL_Overlay *SDL_CreateYUV_SW(_THIS, int width, int height,
    1.11 -                                     Uint32 format, SDL_Surface * display);
    1.12 -
    1.13 -extern int SDL_LockYUV_SW(_THIS, SDL_Overlay * overlay);
    1.14 +typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture;
    1.15  
    1.16 -extern void SDL_UnlockYUV_SW(_THIS, SDL_Overlay * overlay);
    1.17 +SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(SDL_Texture * texture);
    1.18 +int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels,
    1.19 +                                 int *pitch);
    1.20 +int SDL_SW_UpdateYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
    1.21 +                            const void *pixels, int pitch);
    1.22 +int SDL_SW_LockYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
    1.23 +                          int markDirty, void **pixels, int *pitch);
    1.24 +void SDL_SW_UnlockYUVTexture(SDL_SW_YUVTexture * swdata);
    1.25 +int SDL_SW_CopyYUVToRGB(SDL_SW_YUVTexture * swdata, const SDL_Rect * srcrect,
    1.26 +                        Uint32 target_format, int w, int h, void *pixels,
    1.27 +                        int pitch);
    1.28 +void SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture * swdata);
    1.29  
    1.30 -extern int SDL_DisplayYUV_SW(_THIS, SDL_Overlay * overlay, SDL_Rect * src,
    1.31 -                             SDL_Rect * dst);
    1.32 -
    1.33 -extern void SDL_FreeYUV_SW(_THIS, SDL_Overlay * overlay);
    1.34  /* vi: set ts=4 sw=4 expandtab: */