2.6.15. V4L2_PIX_FMT_VYUY (‘VYUY’)

Variation of V4L2_PIX_FMT_YUYV with different order of samples in memory Description

In this format each four bytes is two pixels. Each four bytes is two Y’s, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr belong to both pixels. As you can see, the Cr and Cb components have half the horizontal resolution of the Y component.

Byte Order. Each cell is one byte.

start + 0: Cr00 Y’00 Cb00 Y’01 Cr01 Y’02 Cb01 Y’03
start + 8: Cr10 Y’10 Cb10 Y’11 Cr11 Y’12 Cb11 Y’13
start + 16: Cr20 Y’20 Cb20 Y’21 Cr21 Y’22 Cb21 Y’23
start + 24: Cr30 Y’30 Cb30 Y’31 Cr31 Y’32 Cb31 Y’33

Color Sample Location:

  0   1   2 3
0 Y C Y Y C Y
1 Y C Y Y C Y
2 Y C Y Y C Y
3 Y C Y Y C Y