V4L2_PIX_FMT_YUYV ('YUYV')
&manvol;
V4L2_PIX_FMT_YUYV
Packed format with ½ horizontal chroma
resolution, also known as YUV 4:2:2
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.
V4L2_PIX_FMT_YUYV is known in the Windows
environment as YUY2.
V4L2_PIX_FMT_YUYV 4 × 4
pixel image
Byte Order.
Each cell is one byte.
start + 0:
Y'00
Cb00
Y'01
Cr00
Y'02
Cb01
Y'03
Cr01
start + 8:
Y'10
Cb10
Y'11
Cr10
Y'12
Cb11
Y'13
Cr11
start + 16:
Y'20
Cb20
Y'21
Cr20
Y'22
Cb21
Y'23
Cr21
start + 24:
Y'30
Cb30
Y'31
Cr30
Y'32
Cb31
Y'33
Cr31
Color Sample Location.
01
23
0
YCY
YCY
1
YCY
YCY
2
YCY
YCY
3
YCY
YCY