src/video/SDL_yuv_sw_c.h
changeset 1895 c121d94672cb
parent 1643 51038e80ae59
child 2781 5651642f4a78
     1.1 --- a/src/video/SDL_yuv_sw_c.h	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/src/video/SDL_yuv_sw_c.h	Mon Jul 10 21:04:37 2006 +0000
     1.3 @@ -24,14 +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, Uint32 format, SDL_Surface *display);
    1.11 -
    1.12 -extern int SDL_LockYUV_SW(_THIS, SDL_Overlay *overlay);
    1.13 +typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture;
    1.14  
    1.15 -extern void SDL_UnlockYUV_SW(_THIS, SDL_Overlay *overlay);
    1.16 +SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(SDL_Texture * texture);
    1.17 +int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels,
    1.18 +                                 int *pitch);
    1.19 +int SDL_SW_UpdateYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
    1.20 +                            const void *pixels, int pitch);
    1.21 +int SDL_SW_LockYUVTexture(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
    1.22 +                          int markDirty, void **pixels, int *pitch);
    1.23 +void SDL_SW_UnlockYUVTexture(SDL_SW_YUVTexture * swdata);
    1.24 +int SDL_SW_CopyYUVToRGB(SDL_SW_YUVTexture * swdata, const SDL_Rect * srcrect,
    1.25 +                        Uint32 target_format, int w, int h, void *pixels,
    1.26 +                        int pitch);
    1.27 +void SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture * swdata);
    1.28  
    1.29 -extern int SDL_DisplayYUV_SW(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst);
    1.30 -
    1.31 -extern void SDL_FreeYUV_SW(_THIS, SDL_Overlay *overlay);
    1.32 +/* vi: set ts=4 sw=4 expandtab: */