Name

V4L2_PIX_FMT_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.

Example 2.22. V4L2_PIX_FMT_VYUY 4 × 4 pixel image

Byte Order. Each cell is one byte.

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

Color Sample Location. 

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