include/SDL_video.h
branchSDL-1.3
changeset 1675 d33dcfc3fde7
parent 1670 eef792d31de8
child 1676 e136f3ffdc1b
     1.1 --- a/include/SDL_video.h	Sun Jun 11 05:27:10 2006 +0000
     1.2 +++ b/include/SDL_video.h	Sun Jun 11 07:30:16 2006 +0000
     1.3 @@ -274,37 +274,6 @@
     1.4                           struct SDL_Surface * dst, SDL_Rect * dstrect);
     1.5  
     1.6  
     1.7 -/* The most common video overlay formats.
     1.8 -   For an explanation of these pixel formats, see:
     1.9 -   http://www.webartz.com/fourcc/indexyuv.htm
    1.10 -
    1.11 -   For information on the relationship between color spaces, see:
    1.12 -   http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html
    1.13 - */
    1.14 -#define SDL_YV12_OVERLAY  0x32315659    /* Planar mode: Y + V + U  (3 planes) */
    1.15 -#define SDL_IYUV_OVERLAY  0x56555949    /* Planar mode: Y + U + V  (3 planes) */
    1.16 -#define SDL_YUY2_OVERLAY  0x32595559    /* Packed mode: Y0+U0+Y1+V0 (1 plane) */
    1.17 -#define SDL_UYVY_OVERLAY  0x59565955    /* Packed mode: U0+Y0+V0+Y1 (1 plane) */
    1.18 -#define SDL_YVYU_OVERLAY  0x55595659    /* Packed mode: Y0+V0+Y1+U0 (1 plane) */
    1.19 -
    1.20 -/* The YUV hardware video overlay */
    1.21 -typedef struct SDL_Overlay
    1.22 -{
    1.23 -    Uint32 format;              /* Read-only */
    1.24 -    int w, h;                   /* Read-only */
    1.25 -    int planes;                 /* Read-only */
    1.26 -    Uint16 *pitches;            /* Read-only */
    1.27 -    Uint8 **pixels;             /* Read-write */
    1.28 -
    1.29 -    /* Hardware-specific surface info */
    1.30 -    struct private_yuvhwfuncs *hwfuncs;
    1.31 -    struct private_yuvhwdata *hwdata;
    1.32 -
    1.33 -    /* Special flags */
    1.34 -    Uint32 hw_overlay:1;        /* Flag: This overlay hardware accelerated? */
    1.35 -    Uint32 UnusedBits:31;
    1.36 -} SDL_Overlay;
    1.37 -
    1.38  /**
    1.39   * \enum SDL_GLattr
    1.40   *
    1.41 @@ -1341,39 +1310,6 @@
    1.42                                              SDL_Surface * dst,
    1.43                                              SDL_Rect * dstrect);
    1.44  
    1.45 -
    1.46 -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    1.47 -/* YUV video surface overlay functions                                       */
    1.48 -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    1.49 -
    1.50 -/* This function creates a video output overlay
    1.51 -   Calling the returned surface an overlay is something of a misnomer because
    1.52 -   the contents of the display surface underneath the area where the overlay
    1.53 -   is shown is undefined - it may be overwritten with the converted YUV data.
    1.54 -*/
    1.55 -extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
    1.56 -                                                          int height,
    1.57 -                                                          Uint32 format,
    1.58 -                                                          SDL_Surface *
    1.59 -                                                          display);
    1.60 -
    1.61 -/* Lock an overlay for direct access, and unlock it when you are done */
    1.62 -extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay * overlay);
    1.63 -extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay);
    1.64 -
    1.65 -/* Blit a video overlay to the display surface.
    1.66 -   The contents of the video surface underneath the blit destination are
    1.67 -   not defined.  
    1.68 -   The width and height of the destination rectangle may be different from
    1.69 -   that of the overlay, but currently only 2x scaling is supported.
    1.70 -*/
    1.71 -extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
    1.72 -                                                  SDL_Rect * dstrect);
    1.73 -
    1.74 -/* Free a video overlay */
    1.75 -extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
    1.76 -
    1.77 -
    1.78  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    1.79  /* OpenGL support functions.                                                 */
    1.80  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */