Name

V4L2_PIX_FMT_YVYU — 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.

Example 2.21. V4L2_PIX_FMT_YVYU 4 × 4 pixel image

Byte Order. Each cell is one byte.

start + 0:Y'00Cr00Y'01Cb00Y'02Cr01Y'03Cb01
start + 8:Y'10Cr10Y'11Cb10Y'12Cr11Y'13Cb11
start + 16:Y'20Cr20Y'21Cb20Y'22Cr21Y'23Cb21
start + 24:Y'30Cr30Y'31Cb30Y'32Cr31Y'33Cb31

Color Sample Location. 

 0 1 2 3
0YCY YCY
1YCY YCY
2YCY YCY
3YCY YCY