Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _V4L2-PIX-FMT-M420: | |
4 | ||
5 | ************************** | |
6 | V4L2_PIX_FMT_M420 ('M420') | |
7 | ************************** | |
8 | ||
9 | *man V4L2_PIX_FMT_M420(2)* | |
10 | ||
11 | Format with ½ horizontal and vertical chroma resolution, also known as | |
12 | YUV 4:2:0. Hybrid plane line-interleaved layout. | |
13 | ||
14 | ||
15 | Description | |
16 | =========== | |
17 | ||
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. | |
21 | ||
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, | |
eba9e91c | 25 | Cb\ :sub:`0`/Cr\ :sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`, |
5377d91f MH |
26 | Y'\ :sub:`10`, Y'\ :sub:`11`. |
27 | ||
28 | All line lengths are identical: if the Y lines include pad bytes so do | |
29 | the CbCr lines. | |
30 | ||
056d2ee6 | 31 | **Byte Order.** |
5377d91f MH |
32 | Each cell is one byte. |
33 | ||
34 | ||
35 | ||
5bd4bb78 MCC |
36 | .. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}| |
37 | ||
5377d91f MH |
38 | .. flat-table:: |
39 | :header-rows: 0 | |
40 | :stub-columns: 0 | |
41 | :widths: 2 1 1 1 1 | |
42 | ||
43 | ||
44 | - .. row 1 | |
45 | ||
46 | - start + 0: | |
47 | ||
48 | - Y'\ :sub:`00` | |
49 | ||
50 | - Y'\ :sub:`01` | |
51 | ||
52 | - Y'\ :sub:`02` | |
53 | ||
54 | - Y'\ :sub:`03` | |
55 | ||
56 | - .. row 2 | |
57 | ||
58 | - start + 4: | |
59 | ||
60 | - Y'\ :sub:`10` | |
61 | ||
62 | - Y'\ :sub:`11` | |
63 | ||
64 | - Y'\ :sub:`12` | |
65 | ||
66 | - Y'\ :sub:`13` | |
67 | ||
68 | - .. row 3 | |
69 | ||
70 | - start + 8: | |
71 | ||
72 | - Cb\ :sub:`00` | |
73 | ||
74 | - Cr\ :sub:`00` | |
75 | ||
76 | - Cb\ :sub:`01` | |
77 | ||
78 | - Cr\ :sub:`01` | |
79 | ||
80 | - .. row 4 | |
81 | ||
82 | - start + 16: | |
83 | ||
84 | - Y'\ :sub:`20` | |
85 | ||
86 | - Y'\ :sub:`21` | |
87 | ||
88 | - Y'\ :sub:`22` | |
89 | ||
90 | - Y'\ :sub:`23` | |
91 | ||
92 | - .. row 5 | |
93 | ||
94 | - start + 20: | |
95 | ||
96 | - Y'\ :sub:`30` | |
97 | ||
98 | - Y'\ :sub:`31` | |
99 | ||
100 | - Y'\ :sub:`32` | |
101 | ||
102 | - Y'\ :sub:`33` | |
103 | ||
104 | - .. row 6 | |
105 | ||
106 | - start + 24: | |
107 | ||
108 | - Cb\ :sub:`10` | |
109 | ||
110 | - Cr\ :sub:`10` | |
111 | ||
112 | - Cb\ :sub:`11` | |
113 | ||
114 | - Cr\ :sub:`11` | |
115 | ||
116 | ||
117 | **Color Sample Location..** | |
118 | ||
119 | ||
120 | ||
121 | .. flat-table:: | |
122 | :header-rows: 0 | |
123 | :stub-columns: 0 | |
124 | ||
125 | ||
126 | - .. row 1 | |
127 | ||
0579e6e3 | 128 | - |
5377d91f MH |
129 | - 0 |
130 | ||
0579e6e3 | 131 | - |
5377d91f MH |
132 | - 1 |
133 | ||
5377d91f MH |
134 | - 2 |
135 | ||
0579e6e3 | 136 | - |
5377d91f MH |
137 | - 3 |
138 | ||
139 | - .. row 2 | |
140 | ||
141 | - 0 | |
142 | ||
143 | - Y | |
144 | ||
0579e6e3 | 145 | - |
5377d91f MH |
146 | - Y |
147 | ||
5377d91f MH |
148 | - Y |
149 | ||
0579e6e3 | 150 | - |
5377d91f MH |
151 | - Y |
152 | ||
153 | - .. row 3 | |
154 | ||
0579e6e3 MCC |
155 | - |
156 | - | |
5377d91f MH |
157 | - C |
158 | ||
0579e6e3 MCC |
159 | - |
160 | - | |
5377d91f MH |
161 | - C |
162 | ||
0579e6e3 | 163 | - |
5377d91f MH |
164 | |
165 | - .. row 4 | |
166 | ||
167 | - 1 | |
168 | ||
169 | - Y | |
170 | ||
0579e6e3 | 171 | - |
5377d91f MH |
172 | - Y |
173 | ||
5377d91f MH |
174 | - Y |
175 | ||
0579e6e3 | 176 | - |
5377d91f MH |
177 | - Y |
178 | ||
179 | - .. row 5 | |
180 | ||
0579e6e3 | 181 | - |
5377d91f MH |
182 | |
183 | - .. row 6 | |
184 | ||
185 | - 2 | |
186 | ||
187 | - Y | |
188 | ||
0579e6e3 | 189 | - |
5377d91f MH |
190 | - Y |
191 | ||
5377d91f MH |
192 | - Y |
193 | ||
0579e6e3 | 194 | - |
5377d91f MH |
195 | - Y |
196 | ||
197 | - .. row 7 | |
198 | ||
0579e6e3 MCC |
199 | - |
200 | - | |
5377d91f MH |
201 | - C |
202 | ||
0579e6e3 MCC |
203 | - |
204 | - | |
5377d91f MH |
205 | - C |
206 | ||
0579e6e3 | 207 | - |
5377d91f MH |
208 | |
209 | - .. row 8 | |
210 | ||
211 | - 3 | |
212 | ||
213 | - Y | |
214 | ||
0579e6e3 | 215 | - |
5377d91f MH |
216 | - Y |
217 | ||
5377d91f MH |
218 | - Y |
219 | ||
0579e6e3 | 220 | - |
5377d91f | 221 | - Y |