2.7.17. V4L2_PIX_FMT_Y41P ('Y41P')¶
Format with ¼ horizontal chroma resolution, also known as YUV 4:1:1
2.7.17.1. Description¶
In this format each 12 bytes is eight pixels. In the twelve bytes are two CbCr pairs and eight Y's. The first CbCr pair goes with the first four Y's, and the second CbCr pair goes with the other four Y's. The Cb and Cr components have one fourth the horizontal resolution of the Y component.
Do not confuse this format with V4L2_PIX_FMT_YUV411P. Y41P is derived from "YUV 4:1:1 packed", while YUV411P stands for "YUV 4:1:1 planar".
Byte Order. Each cell is one byte.
start + 0: | Cb00 | Y'00 | Cr00 | Y'01 | Cb01 | Y'02 | Cr01 | Y'03 | Y'04 | Y'05 | Y'06 | Y'07 |
start + 12: | Cb10 | Y'10 | Cr10 | Y'11 | Cb11 | Y'12 | Cr11 | Y'13 | Y'14 | Y'15 | Y'16 | Y'17 |
start + 24: | Cb20 | Y'20 | Cr20 | Y'21 | Cb21 | Y'22 | Cr21 | Y'23 | Y'24 | Y'25 | Y'26 | Y'27 |
start + 36: | Cb30 | Y'30 | Cr30 | Y'31 | Cb31 | Y'32 | Cr31 | Y'33 | Y'34 | Y'35 | Y'36 | Y'37 |
Color Sample Location:
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |||
0 | Y | Y | C | Y | Y | Y | Y | C | Y | Y |
1 | Y | Y | C | Y | Y | Y | Y | C | Y | Y |
2 | Y | Y | C | Y | Y | Y | Y | C | Y | Y |
3 | Y | Y | C | Y | Y | Y | Y | C | Y | Y |