home *** CD-ROM | disk | FTP | other *** search
- <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
- <!-- available at http://polyglotman.sourceforge.net/ -->
-
- <html>
- <head>
- <title>"SDL_Overlay"("3") manual page</title>
- </head>
- <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
- <a href='#toc'>Table of Contents</a><p>
-
- <h2><a name='sect0' href='#toc0'>Name</a></h2>
- SDL_Overlay- YUV video overlay
- <h2><a name='sect1' href='#toc1'>Structure Definition</a></h2>
- <p>
- <br>
- <pre>CWtypedef struct{
- Uint32 format;
- int w, h;
- int planes;
- Uint16 *pitches;
- Uint8 **pixels;
- Uint32 hw_overlay:1;
- } SDL_Overlay;
- </pre><p>
-
- <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
-
- <dl>
-
- <dt><b>format</b> </dt>
- <dd>Overlay format (see below) </dd>
-
- <dt><b>w, h</b> </dt>
- <dd>Width and height of
- overlay </dd>
-
- <dt><b>planes</b> </dt>
- <dd>Number of planes in the overlay. Usually either 1 or 3 </dd>
-
- <dt><b>pitches</b>
- </dt>
- <dd>An array of pitches, one for each plane. Pitch is the length of a row in
- bytes. </dd>
-
- <dt><b>pixels</b> </dt>
- <dd>An array of pointers to teh data of each plane. The overlay
- should be locked before these pointers are used. </dd>
-
- <dt><b>hw_overlay</b> </dt>
- <dd>This will be
- set to 1 if the overlay is hardware accelerated. </dd>
- </dl>
-
- <h2><a name='sect3' href='#toc3'>Description</a></h2>
- <p>
- A <b>SDL_Overlay</b>
- is similar to a <i><b>SDL_Surface</b></i> except it stores a YUV overlay. All the fields
- are read only, except for <b>pixels</b> which should be <i>locked</i> before use. The
- <b>format</b> field stores the format of the overlay which is one of the following:
- <p>
- <br>
- <pre>CW#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><p>
- More information on YUV formats can be found at <i>http://www.webartz.com/fourcc/indexyuv.htm
- (link to URL http://www.webartz.com/fourcc/indexyuv.htm) </i>.<br>
-
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_CreateYUVOverlay</b></i>, <i><b>SDL_LockYUVOverlay</b></i>, <i><b>SDL_UnlockYUVOverlay</b></i>,
- <i><b>SDL_FreeYUVOverlay</b></i>
- <!--
-
- <p>
-
- <hr><p>
- <a name='toc'><b>Table of Contents</b></a><p>
- <ul>
- <li><a name='toc0' href='#sect0'>Name</a></li>
- <li><a name='toc1' href='#sect1'>Structure Definition</a></li>
- <li><a name='toc2' href='#sect2'>Structure Data</a></li>
- <li><a name='toc3' href='#sect3'>Description</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-