Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / v4l / pixfmt-m420.rst
blob4c5b2969c03963766410066eec203a2b882deb63
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-M420:
5 **************************
6 V4L2_PIX_FMT_M420 ('M420')
7 **************************
9 *man V4L2_PIX_FMT_M420(2)*
11 Format with ½ horizontal and vertical chroma resolution, also known as
12 YUV 4:2:0. Hybrid plane line-interleaved layout.
15 Description
16 ===========
18 M420 is a YUV format with ½ horizontal and vertical chroma subsampling
19 (YUV 4:2:0). Pixels are organized as interleaved luma and chroma planes.
20 Two lines of luma data are followed by one line of chroma data.
22 The luma plane has one byte per pixel. The chroma plane contains
23 interleaved CbCr pixels subsampled by ½ in the horizontal and vertical
24 directions. Each CbCr pair belongs to four pixels. For example,
25 Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`,
26 Y'\ :sub:`10`, Y'\ :sub:`11`.
28 All line lengths are identical: if the Y lines include pad bytes so do
29 the CbCr lines.
31 **Byte Order.**
32 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        -  Cb\ :sub:`00`
72        -  Cr\ :sub:`00`
74        -  Cb\ :sub:`01`
76        -  Cr\ :sub:`01`
78     -  .. row 4
80        -  start + 16:
82        -  Y'\ :sub:`20`
84        -  Y'\ :sub:`21`
86        -  Y'\ :sub:`22`
88        -  Y'\ :sub:`23`
90     -  .. row 5
92        -  start + 20:
94        -  Y'\ :sub:`30`
96        -  Y'\ :sub:`31`
98        -  Y'\ :sub:`32`
100        -  Y'\ :sub:`33`
102     -  .. row 6
104        -  start + 24:
106        -  Cb\ :sub:`10`
108        -  Cr\ :sub:`10`
110        -  Cb\ :sub:`11`
112        -  Cr\ :sub:`11`
115 **Color Sample Location..**
119 .. flat-table::
120     :header-rows:  0
121     :stub-columns: 0
124     -  .. row 1
126        -
127        -  0
129        -
130        -  1
132        -  2
134        -
135        -  3
137     -  .. row 2
139        -  0
141        -  Y
143        -
144        -  Y
146        -  Y
148        -
149        -  Y
151     -  .. row 3
153        -
154        -
155        -  C
157        -
158        -
159        -  C
161        -
163     -  .. row 4
165        -  1
167        -  Y
169        -
170        -  Y
172        -  Y
174        -
175        -  Y
177     -  .. row 5
179        -
181     -  .. row 6
183        -  2
185        -  Y
187        -
188        -  Y
190        -  Y
192        -
193        -  Y
195     -  .. row 7
197        -
198        -
199        -  C
201        -
202        -
203        -  C
205        -
207     -  .. row 8
209        -  3
211        -  Y
213        -
214        -  Y
216        -  Y
218        -
219        -  Y