The X Video Extension (Xv) extension provides support for video
adaptors attached to an X display. It takes the approach that a
display may have one or more video adaptors, each of which has one or
more ports through which independent video streams pass.
An adaptor may be able to display video in a drawable, capture video
from a drawable, or both. It translates between video encoding (NTSC,
PAL, SECAM, etc...) and drawable format (depth and visual-id pair). An
adaptor may support multiple video encodings and/or multiple drawable
to gain access and manage sharing of a displays
video resources. Typically, a client will use
to determine the status of the extension,
to get a description of what video adaptors exist, and
to get a description of what video encodings an adaptor supports.
Once a client has determined what video resources are available, it is
free to put video into a drawable or get video from a drawable,
according the capabilities supported. Clients can select to receive
events when video activity changes in a drawable and when port
attributes have changed.
The Xv protocol version 2.2 and later is extended to
support client images in alternate colorspaces (XvImages).
Xv adaptors which are capable of displaying XvImages will have
the XvImageMask field set in the type field of the XvAdaptorInfo.
XvImage formats supported by the port may be queried with
XvImages may be created with the help of
XvImages may be displayed with
The Port attributes of the port specified in the Xv(Shm)PutImage
command will be valid for the image operation when applicable.
There will be a port encoding with the name "XV_IMAGE". The width and height
of that encoding will indicate the maximum source image size.
The following is a summary of Xv library functions and events:
- create an XvImage
- return current port attribute value
- capture a single frame of video from a drawable
- capture video from a drawable
- lock port for exclusive use by client
- return list of image formats for a port
- event generated when port attributes change
- write a XvImage to a drawable
- write a single frame of video to a drawable
- write video into a drawable
- return adaptor information for a screen
- determine the optimum drawable region size
- return list of encodings for an adaptor
- return version and revision of extension
- return list of attributes of a port
- enable or disable XvPortNotify events
- enable or disable XvVideoNotify events
- set an attribute for a port
- create an XvImage in shared memory
- write a XvImage in shared memory to a drawable
- stop active video
- release a grabbed port
- event generated for video processing
Each of these functions and events is described in its own Xv man page.