Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / v4l / pixfmt-yuv410.rst
blob8a5d1a2ee005eee189a57325c4a0d003f0074de0
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-YVU410:
4 .. _v4l2-pix-fmt-yuv410:
6 **********************************************************
7 V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')
8 **********************************************************
10 *man V4L2_PIX_FMT_YVU410(2)*
12 V4L2_PIX_FMT_YUV410
13 Planar formats with ¼ horizontal and vertical chroma resolution, also
14 known as YUV 4:1:0
17 Description
18 ===========
20 These are planar formats, as opposed to a packed format. The three
21 components are separated into three sub-images or planes. The Y plane is
22 first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_YVU410``,
23 the Cr plane immediately follows the Y plane in memory. The Cr plane is
24 ¼ the width and ¼ the height of the Y plane (and of the image). Each Cr
25 belongs to 16 pixels, a four-by-four square of the image. Following the
26 Cr plane is the Cb plane, just like the Cr plane.
27 ``V4L2_PIX_FMT_YUV410`` is the same, except the Cb plane comes first,
28 then the Cr plane.
30 If the Y plane has pad bytes after each row, then the Cr and Cb planes
31 have ¼ as many pad bytes after their rows. In other words, four Cx rows
32 (including padding) are exactly as long as one Y row (including
33 padding).
35 **Byte Order.**
36 Each cell is one byte.
40 .. flat-table::
41     :header-rows:  0
42     :stub-columns: 0
43     :widths:       2 1 1 1 1
46     -  .. row 1
48        -  start + 0:
50        -  Y'\ :sub:`00`
52        -  Y'\ :sub:`01`
54        -  Y'\ :sub:`02`
56        -  Y'\ :sub:`03`
58     -  .. row 2
60        -  start + 4:
62        -  Y'\ :sub:`10`
64        -  Y'\ :sub:`11`
66        -  Y'\ :sub:`12`
68        -  Y'\ :sub:`13`
70     -  .. row 3
72        -  start + 8:
74        -  Y'\ :sub:`20`
76        -  Y'\ :sub:`21`
78        -  Y'\ :sub:`22`
80        -  Y'\ :sub:`23`
82     -  .. row 4
84        -  start + 12:
86        -  Y'\ :sub:`30`
88        -  Y'\ :sub:`31`
90        -  Y'\ :sub:`32`
92        -  Y'\ :sub:`33`
94     -  .. row 5
96        -  start + 16:
98        -  Cr\ :sub:`00`
100     -  .. row 6
102        -  start + 17:
104        -  Cb\ :sub:`00`
107 **Color Sample Location..**
111 .. flat-table::
112     :header-rows:  0
113     :stub-columns: 0
116     -  .. row 1
118        -
119        -  0
121        -
122        -  1
124        -
125        -  2
127        -
128        -  3
130     -  .. row 2
132        -  0
134        -  Y
136        -
137        -  Y
139        -
140        -  Y
142        -
143        -  Y
145     -  .. row 3
147        -
149     -  .. row 4
151        -  1
153        -  Y
155        -
156        -  Y
158        -
159        -  Y
161        -
162        -  Y
164     -  .. row 5
166        -
167        -
168        -
169        -
170        -  C
172        -
173        -
174        -
176     -  .. row 6
178        -  2
180        -  Y
182        -
183        -  Y
185        -
186        -  Y
188        -
189        -  Y
191     -  .. row 7
193        -
195     -  .. row 8
197        -  3
199        -  Y
201        -
202        -  Y
204        -
205        -  Y
207        -
208        -  Y