blob: d050d27e7ea12b52cfb486468dca9ed4bb27b8f0 [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-Y41P:
4
5**************************
6V4L2_PIX_FMT_Y41P ('Y41P')
7**************************
8
9*man V4L2_PIX_FMT_Y41P(2)*
10
11Format with ΒΌ horizontal chroma resolution, also known as YUV 4:1:1
12
13
14Description
15===========
16
17In this format each 12 bytes is eight pixels. In the twelve bytes are
18two CbCr pairs and eight Y's. The first CbCr pair goes with the first
19four Y's, and the second CbCr pair goes with the other four Y's. The Cb
20and Cr components have one fourth the horizontal resolution of the Y
21component.
22
23Do not confuse this format with
24:ref:`V4L2_PIX_FMT_YUV411P <V4L2-PIX-FMT-YUV411P>`. Y41P is derived
25from "YUV 4:1:1 *packed*", while YUV411P stands for "YUV 4:1:1
26*planar*".
27
28**Byte Order.**
29
30Each cell is one byte.
31
32
33
34.. flat-table::
35 :header-rows: 0
36 :stub-columns: 0
37 :widths: 2 1 1 1 1 1 1 1 1 1 1 1 1
38
39
40 - .. row 1
41
42 - start + 0:
43
44 - Cb\ :sub:`00`
45
46 - Y'\ :sub:`00`
47
48 - Cr\ :sub:`00`
49
50 - Y'\ :sub:`01`
51
52 - Cb\ :sub:`01`
53
54 - Y'\ :sub:`02`
55
56 - Cr\ :sub:`01`
57
58 - Y'\ :sub:`03`
59
60 - Y'\ :sub:`04`
61
62 - Y'\ :sub:`05`
63
64 - Y'\ :sub:`06`
65
66 - Y'\ :sub:`07`
67
68 - .. row 2
69
70 - start + 12:
71
72 - Cb\ :sub:`10`
73
74 - Y'\ :sub:`10`
75
76 - Cr\ :sub:`10`
77
78 - Y'\ :sub:`11`
79
80 - Cb\ :sub:`11`
81
82 - Y'\ :sub:`12`
83
84 - Cr\ :sub:`11`
85
86 - Y'\ :sub:`13`
87
88 - Y'\ :sub:`14`
89
90 - Y'\ :sub:`15`
91
92 - Y'\ :sub:`16`
93
94 - Y'\ :sub:`17`
95
96 - .. row 3
97
98 - start + 24:
99
100 - Cb\ :sub:`20`
101
102 - Y'\ :sub:`20`
103
104 - Cr\ :sub:`20`
105
106 - Y'\ :sub:`21`
107
108 - Cb\ :sub:`21`
109
110 - Y'\ :sub:`22`
111
112 - Cr\ :sub:`21`
113
114 - Y'\ :sub:`23`
115
116 - Y'\ :sub:`24`
117
118 - Y'\ :sub:`25`
119
120 - Y'\ :sub:`26`
121
122 - Y'\ :sub:`27`
123
124 - .. row 4
125
126 - start + 36:
127
128 - Cb\ :sub:`30`
129
130 - Y'\ :sub:`30`
131
132 - Cr\ :sub:`30`
133
134 - Y'\ :sub:`31`
135
136 - Cb\ :sub:`31`
137
138 - Y'\ :sub:`32`
139
140 - Cr\ :sub:`31`
141
142 - Y'\ :sub:`33`
143
144 - Y'\ :sub:`34`
145
146 - Y'\ :sub:`35`
147
148 - Y'\ :sub:`36`
149
150 - Y'\ :sub:`37`
151
152
153**Color Sample Location..**
154
155
156
157.. flat-table::
158 :header-rows: 0
159 :stub-columns: 0
160
161
162 - .. row 1
163
164 -
165 - 0
166
167 -
168 - 1
169
170 -
171 - 2
172
173 -
174 - 3
175
176 -
177 - 4
178
179 -
180 - 5
181
182 -
183 - 6
184
185 -
186 - 7
187
188 - .. row 2
189
190 - 0
191
192 - Y
193
194 -
195 - Y
196
197 - C
198
199 - Y
200
201 -
202 - Y
203
204 -
205 - Y
206
207 -
208 - Y
209
210 - C
211
212 - Y
213
214 -
215 - Y
216
217 - .. row 3
218
219 - 1
220
221 - Y
222
223 -
224 - Y
225
226 - C
227
228 - Y
229
230 -
231 - Y
232
233 -
234 - Y
235
236 -
237 - Y
238
239 - C
240
241 - Y
242
243 -
244 - Y
245
246 - .. row 4
247
248 - 2
249
250 - Y
251
252 -
253 - Y
254
255 - C
256
257 - Y
258
259 -
260 - Y
261
262 -
263 - Y
264
265 -
266 - Y
267
268 - C
269
270 - Y
271
272 -
273 - Y
274
275 - .. row 5
276
277 - 3
278
279 - Y
280
281 -
282 - Y
283
284 - C
285
286 - Y
287
288 -
289 - Y
290
291 -
292 - Y
293
294 -
295 - Y
296
297 - C
298
299 - Y
300
301 -
302 - Y
303
304
305
306
307.. ------------------------------------------------------------------------------
308.. This file was automatically converted from DocBook-XML with the dbxml
309.. library (https://github.com/return42/sphkerneldoc). The origin XML comes
310.. from the linux kernel, refer to:
311..
312.. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
313.. ------------------------------------------------------------------------------