2.6.14. V4L2_PIX_FMT_YVYU (‘YVYU’)

Variation of V4L2_PIX_FMT_YUYV with different order of samples in memory

2.6.14.1. 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: Y’00 Cr00 Y’01 Cb00 Y’02 Cr01 Y’03 Cb01
start + 8: Y’10 Cr10 Y’11 Cb10 Y’12 Cr11 Y’13 Cb11
start + 16: Y’20 Cr20 Y’21 Cb20 Y’22 Cr21 Y’23 Cb21
start + 24: Y’30 Cr30 Y’31 Cb30 Y’32 Cr31 Y’33 Cb31

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