NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
REL="HOME"
TITLE="SDL Library Documentation"
REL="UP"
TITLE="Video"
REL="PREVIOUS"
TITLE="SDL_VideoInfo"
HREF="sdlvideoinfo.html"><
LINK
REL="NEXT"
TITLE="Window Management"
CLASS="REFENTRY"
BGCOLOR="#FFF8DC"
TEXT="#000000"
LINK="#0000ee"
VLINK="#551a8b"
ALINK="#ff0000"
CLASS="NAVHEADER"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
COLSPAN="3"
ALIGN="center"
>SDL Library Documentation<
/TH
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
HREF="sdlvideoinfo.html"
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
HREF="wm.html"
ALIGN="LEFT"
NAME="SDLOVERLAY"
CLASS="REFNAMEDIV"
NAME="AEN3042"
>SDL_Overlay -- YUV video overlay<
/DIV
CLASS="REFSECT1"
NAME="AEN3045"
>Structure Definition<
/H2
CLASS="PROGRAMLISTING"
>typedef struct{
Uint32 format;
int w, h;
int planes;
Uint16 *pitches;
Uint8 **pixels;
Uint32 hw_overlay:1;
CLASS="REFSECT1"
NAME="AEN3048"
CLASS="INFORMALTABLE"
NAME="AEN3050"
BORDER="0"
CLASS="CALSTABLE"
ALIGN="LEFT"
VALIGN="TOP"
CLASS="STRUCTFIELD"
ALIGN="LEFT"
VALIGN="TOP"
>Overlay format
(see below
)<
/TD
ALIGN="LEFT"
VALIGN="TOP"
CLASS="STRUCTFIELD"
ALIGN="LEFT"
VALIGN="TOP"
>
Width and
height of overlay<
/TD
ALIGN="LEFT"
VALIGN="TOP"
CLASS="STRUCTFIELD"
ALIGN="LEFT"
VALIGN="TOP"
>Number of planes in the overlay. Usually either
1 or
3<
/TD
ALIGN="LEFT"
VALIGN="TOP"
CLASS="STRUCTFIELD"
ALIGN="LEFT"
VALIGN="TOP"
>An array of pitches, one
for each plane. Pitch is the length of a row in bytes.<
/TD
ALIGN="LEFT"
VALIGN="TOP"
CLASS="STRUCTFIELD"
ALIGN="LEFT"
VALIGN="TOP"
>An array of pointers to teh
data of each plane. The overlay should be locked before these pointers are used.<
/TD
ALIGN="LEFT"
VALIGN="TOP"
CLASS="STRUCTFIELD"
ALIGN="LEFT"
VALIGN="TOP"
>This will be set to
1 if the overlay is hardware accelerated.<
/TD
CLASS="REFSECT1"
NAME="AEN3077"
CLASS="STRUCTNAME"
HREF="sdlsurface.html"
CLASS="STRUCTNAME"
> except it stores a YUV overlay. All the fields are read only, except
for <
TT
CLASS="STRUCTFIELD"
HREF="sdllockyuvoverlay.html"
CLASS="STRUCTFIELD"
> field stores the format of the overlay which is one of the following:
CLASS="PROGRAMLISTING"
>#define SDL_YV12_OVERLAY 0x32315659 /* Planar mode: Y + V + U */
#define SDL_IYUV_OVERLAY 0x56555949 /* Planar mode: Y + U + V */
#define SDL_YUY2_OVERLAY 0x32595559 /* Packed mode: Y0+U0+Y1+V0 */
#define SDL_UYVY_OVERLAY 0x59565955 /* Packed mode: U0+Y0+V0+Y1 */
#define SDL_YVYU_OVERLAY 0x55595659
/* Packed mode: Y0+V0+Y1+U0 *
/<
/PRE
>
More information on YUV formats can be found at <
A
HREF="http://www.webartz.com/fourcc/indexyuv.htm"
TARGET="_top"
>http:
//www.webartz.com
/fourcc
/indexyuv.htm<
/A
CLASS="REFSECT1"
NAME="AEN3088"
HREF="sdlcreateyuvoverlay.html"
CLASS="FUNCTION"
>SDL_CreateYUVOverlay<
/TT
>,
HREF="sdllockyuvoverlay.html"
CLASS="FUNCTION"
>,
HREF="sdlunlockyuvoverlay.html"
CLASS="FUNCTION"
>SDL_UnlockYUVOverlay<
/TT
>,
HREF="sdlfreeyuvoverlay.html"
CLASS="FUNCTION"
CLASS="NAVFOOTER"
ALIGN="LEFT"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
HREF="sdlvideoinfo.html"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="index.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
HREF="wm.html"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="video.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>