Revision 968319957 of "XvImage" on enwiki

{{about||the X Video Extension|X video extension}}
{{Orphan|date=April 2016}}

'''XvImage''' is the [[X Window System]] [[X video extension]] client side storage mechanism for an [[X video extension]] [[Pixmap|pixel map]]. The structure of an XvImage as defined by the ''Addendum to the Xv Client library documentation'' is the following:
<syntaxhighlight lang="c">
 typedef struct {
   int id;                       /* XvImageFormatValues id */
   int width, height;            /* The width and height of the image in pixels */
   int data_size;                /* The size of the data buffer in bytes */
   int num_planes;               /* The number of image planes */
   int *pitches;                 /* An array of size num_planes indicating the scanline pitch */
                                 /*  in bytes.  Each plane may have a different pitch */
   int *offsets;                 /* An array of size num_planes indicating the byte offset */
                                 /*  from "data" to the start of each plane */
   char *data;                   /* A pointer to the start of the data buffer */      
   XPointer obdata;              /* A private field for holding SHM info.  This field will be */
                                 /*  set up by the client libraries so the programmer will */
                                 /*  generally need not be concerned with this field */  
 } XvImage;
</syntaxhighlight>

== See also ==
* [[X video extension]]

== External links ==
* [https://web.archive.org/web/20141110175608/http://cvsweb.xfree86.org/cvsweb/xc/doc/hardcopy/Xv/video?rev=HEAD&content-type=text/vnd.viewcvs-markup  Additions in XVideo version 2.2]
* [http://www.x.org/releases/current/doc/videoproto/xv-protocol-v2.txt  Official X Video Extension specification, version 2.0]
* [http://www.xfree86.org/4.2.1/Xv.3.html Xv man pages]

{{XWinSys}}

{{DEFAULTSORT:XvImage}}
[[Category:X Window System]]


{{Graphics-software-stub}}