Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / v4l / pixfmt-yuv411p.rst
blobf85e3f388cbefbb79e6e3441df21065d9d153270
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-YUV411P:
5 *****************************
6 V4L2_PIX_FMT_YUV411P ('411P')
7 *****************************
9 *man V4L2_PIX_FMT_YUV411P(2)*
11 Format with ¼ horizontal chroma resolution, also known as YUV 4:1:1.
12 Planar layout as opposed to ``V4L2_PIX_FMT_Y41P``
15 Description
16 ===========
18 This format is not commonly used. This is a planar format similar to the
19 4:2:2 planar format except with half as many chroma. The three
20 components are separated into three sub-images or planes. The Y plane is
21 first. The Y plane has one byte per pixel. The Cb plane immediately
22 follows the Y plane in memory. The Cb plane is ¼ the width of the Y
23 plane (and of the image). Each Cb belongs to 4 pixels all on the same
24 row. For example, Cb\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`,
25 Y'\ :sub:`02` and Y'\ :sub:`03`. Following the Cb plane is the Cr plane,
26 just like the Cb plane.
28 If the Y plane has pad bytes after each row, then the Cr and Cb planes
29 have ¼ as many pad bytes after their rows. In other words, four C x rows
30 (including padding) is exactly as long as one Y row (including padding).
32 **Byte Order.**
33 Each cell is one byte.
36 .. flat-table::
37     :header-rows:  0
38     :stub-columns: 0
39     :widths:       2 1 1 1 1
42     -  .. row 1
44        -  start + 0:
46        -  Y'\ :sub:`00`
48        -  Y'\ :sub:`01`
50        -  Y'\ :sub:`02`
52        -  Y'\ :sub:`03`
54     -  .. row 2
56        -  start + 4:
58        -  Y'\ :sub:`10`
60        -  Y'\ :sub:`11`
62        -  Y'\ :sub:`12`
64        -  Y'\ :sub:`13`
66     -  .. row 3
68        -  start + 8:
70        -  Y'\ :sub:`20`
72        -  Y'\ :sub:`21`
74        -  Y'\ :sub:`22`
76        -  Y'\ :sub:`23`
78     -  .. row 4
80        -  start + 12:
82        -  Y'\ :sub:`30`
84        -  Y'\ :sub:`31`
86        -  Y'\ :sub:`32`
88        -  Y'\ :sub:`33`
90     -  .. row 5
92        -  start + 16:
94        -  Cb\ :sub:`00`
96     -  .. row 6
98        -  start + 17:
100        -  Cb\ :sub:`10`
102     -  .. row 7
104        -  start + 18:
106        -  Cb\ :sub:`20`
108     -  .. row 8
110        -  start + 19:
112        -  Cb\ :sub:`30`
114     -  .. row 9
116        -  start + 20:
118        -  Cr\ :sub:`00`
120     -  .. row 10
122        -  start + 21:
124        -  Cr\ :sub:`10`
126     -  .. row 11
128        -  start + 22:
130        -  Cr\ :sub:`20`
132     -  .. row 12
134        -  start + 23:
136        -  Cr\ :sub:`30`
139 **Color Sample Location..**
143 .. flat-table::
144     :header-rows:  0
145     :stub-columns: 0
148     -  .. row 1
150        -
151        -  0
153        -  1
155        -
156        -  2
158        -  3
160     -  .. row 2
162        -  0
164        -  Y
166        -  Y
168        -  C
170        -  Y
172        -  Y
174     -  .. row 3
176        -  1
178        -  Y
180        -  Y
182        -  C
184        -  Y
186        -  Y
188     -  .. row 4
190        -  2
192        -  Y
194        -  Y
196        -  C
198        -  Y
200        -  Y
202     -  .. row 5
204        -  3
206        -  Y
208        -  Y
210        -  C
212        -  Y
214        -  Y