X video extension, often abbreviated as XVideo or Xv, is a video output mechanism for the X Window System. It was designed by David Carver, and its specification for version 2 was written in July 1991. It is mainly used to resize video content in the video controller hardware, for example to enlarge a video or show it in full screen mode. Offloading this work to the controller spares the main CPU, which would otherwise need considerable processing power for scaling, and it can also handle color space conversion and adjustments to contrast, brightness and hue.
Requirements and tools
Three elements must work together for XVideo to function: the video controller must provide the required functions, the device driver and the X display server must implement the XVideo interface, and the playback software must use that interface. Most modern video controllers support this, a capability known as hardware scaling and YUV acceleration. The XFree86 display server has implemented XVideo since version 4.0.2. Users can check server support with the xdpyinfo utility and hardware and driver support with the xvinfo program.
Compositing and display
How accelerated video is finally drawn depends largely on the window manager. Compositing window managers render each window into separate buffers and combine them, allowing video to be added through a texture filter. Without compositing support, the video player instead uses chroma keying, drawing a solid color that the graphics card replaces with video, which makes it harder to capture screenshots or show playback on a secondary display.