TestVid Pixel Formats

Technical 128
All TestVid streams start as fully uncompressed YCbCr (YUV) images.  These streams are available as 4:2:2 or 4:2:0 video using anywhere from 8 to 12 bits per component (12 to 24 bits per pixel).  This article describes the pixel layout for the TestVid streams, which will allow you to write your own readers, if necessary.  The pixel type is available in the DHDR files included with your Tvids.  Standard UYUV, V210, yuv2 and other uncompressed formats are also available via the included translation software.

 

Native TestVid Formats

 

 

YCbCr 4:4:4 14 Bit Planar

FourCC: 444F

DHDR:   yuv444_14le

Format:  14 bit components in 16 bit container, little endian.  Y plane followed by U/Cb and V/Cr planes

Example:  T2V005_HighRes (HD)

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 1 1
V/Cr Sample Period 1 1

 

YCbCr 4:4:4 12 Bit Planar

FourCC: 444E

DHDR:   yuv444_12le

Format:  12 bit components in 16 bit container, little endian.  Y plane followed by U/Cb and V/Cr planes

Example:  T2V005_HighRes (2K)

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 1 1
V/Cr Sample Period 1 1

 

YCbCr 4:2:2 12 Bit Planar

FourCC: 224E

DHDR:   yuv422_12le

Format:  12 bit components in 16 bit container, little endian.  Y plane followed by 2x1 subsampled U/Cb and V/Cr planes

Example: T2V041 (4K)

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 2 1
V/Cr Sample Period 2 1

 

YCbCr 4:2:2 10 Bit Planar

FourCC: v210

DHDR:   yuv422_10le

Format:  10 bit components in 16 bit container, little endian.  Y plane followed by 2x1 subsampled U/Cb and V/Cr planes
Example:  T2V005_HighRes (HD)

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 2 1
V/Cr Sample Period 2 1

 

YCbCr 4:2:0 8 Bit Planar

FourCC:  I420 

DHDR:  YUV420

Format:  8 bit Y plane followed by 8 bit 2x2 subsampled U/Cb and V/Cr planes.

Example:  T2V003 (All)

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 2 2
V/Cr Sample Period 2 2

 

TestVid makes short sample files in each format available, along with simple C/C++ code for reading the frames and extracting the raw YCbCr samples to qualified applicants. To request your free samples and code, please contact This email address is being protected from spambots. You need JavaScript enabled to view it..

 

 

Output TestVid Formats

YCbCr 4:2:2 8 Bit Interleaved (UYVY, yuv2)

FourCC: UYVY (avi), yuv2 (mov)

DHDR:   

Format:  

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 2 1
V/Cr Sample Period 2 1

Byte Order:

U/Cb  Y0  V/Cr  Y1 

 

YCrCb 4:2:2 8 Bit Interleaved (YUY2)

FourCC: YUY2 (avi)

DHDR:   

Format:  

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 2 1
V/Cr Sample Period 2 1

Byte Order:

Y0  U/Cb  Y1  V/Cr 

 

YCbCr 4:2:2 10 Bit Interleaved (v210)

FourCC: v210 (mov)

DHDR:   

Format:  Little endian

Byte Order:

  Horizontal Vertical
Y Sample Period 1 1
U/Cb Sample Period 2 1
V/Cr Sample Period 2 1

Bit Order:

Word 0
Byte 3Byte 2Byte 1Byte 0
X X Cr 0 Y´ 0 Cb 0
9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
X X Y' 2 Cb 1 Y' 1
9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
X X Cb 2 Y´ 3 Cr 1
9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
X X Y' 5 Cr 2 Y' 4
9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0