4:2:2 Video Pixel Formats

To decode compressed 4:2:2 video, use one of the following uncompressed pixel formats.

Pixel Format Description

YUY2

Data is found in memory as an array of unsigned characters in which the first byte contains the first sample of Y, the second byte contains the first sample of Cb, the third byte contains the second sample of Y, the fourth byte contains the first sample of Cr; and so on. If data is addressed as an array of two little-endian WORD type variables, the first WORD contains Y₀ in the least significant bits and Cb in the most significant bits, and the second WORD contains Y₁ in the least significant bits and Cr in the most significant bits. YUY2 is the preferred DirectX VA 4:2:2 pixel format.

UYVY

The same as YUY2, except for swapping the byte order in each WORD. If data is addressed as an array of two little-endian WORD type variables, the first WORD contains Cb in the least significant bits and Y₀ in the most significant bits, and the second WORD contains Cr in the least significant bits and Y₁ in the most significant bits.