Lines Matching +full:1 +full:- +full:7
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _packed-yuv:
15 - In all the tables that follow, bit 7 is the most significant bit in a byte.
16 - 'Y', 'Cb' and 'Cr' denote bits of the luma, blue chroma (also known as
30 seen in a 16-bit word, which is then stored in memory in little endian byte
32 format stores a pixel in a 16-bit word [15:0] laid out at as [Y'\ :sub:`4-0`
33 Cb\ :sub:`5-0` Cr\ :sub:`4-0`], and stored in memory in two bytes,
34 [Cb\ :sub:`2-0` Cr\ :sub:`4-0`] followed by [Y'\ :sub:`4-0` Cb\ :sub:`5-3`].
44 .. flat-table:: Packed YUV 4:4:4 Image Formats (less than 8bpc)
45 :header-rows: 2
46 :stub-columns: 0
48 * - Identifier
49 - Code
51 - :cspan:`7` Byte 0 in memory
53 - :cspan:`7` Byte 1
55 * -
56 -
57 - 7
58 - 6
59 - 5
60 - 4
61 - 3
62 - 2
63 - 1
64 - 0
66 - 7
67 - 6
68 - 5
69 - 4
70 - 3
71 - 2
72 - 1
73 - 0
75 * .. _V4L2-PIX-FMT-YUV444:
77 - ``V4L2_PIX_FMT_YUV444``
78 - 'Y444'
80 - Cb\ :sub:`3`
81 - Cb\ :sub:`2`
82 - Cb\ :sub:`1`
83 - Cb\ :sub:`0`
84 - Cr\ :sub:`3`
85 - Cr\ :sub:`2`
86 - Cr\ :sub:`1`
87 - Cr\ :sub:`0`
89 - a\ :sub:`3`
90 - a\ :sub:`2`
91 - a\ :sub:`1`
92 - a\ :sub:`0`
93 - Y'\ :sub:`3`
94 - Y'\ :sub:`2`
95 - Y'\ :sub:`1`
96 - Y'\ :sub:`0`
98 * .. _V4L2-PIX-FMT-YUV555:
100 - ``V4L2_PIX_FMT_YUV555``
101 - 'YUVO'
103 - Cb\ :sub:`2`
104 - Cb\ :sub:`1`
105 - Cb\ :sub:`0`
106 - Cr\ :sub:`4`
107 - Cr\ :sub:`3`
108 - Cr\ :sub:`2`
109 - Cr\ :sub:`1`
110 - Cr\ :sub:`0`
112 - a
113 - Y'\ :sub:`4`
114 - Y'\ :sub:`3`
115 - Y'\ :sub:`2`
116 - Y'\ :sub:`1`
117 - Y'\ :sub:`0`
118 - Cb\ :sub:`4`
119 - Cb\ :sub:`3`
121 * .. _V4L2-PIX-FMT-YUV565:
123 - ``V4L2_PIX_FMT_YUV565``
124 - 'YUVP'
126 - Cb\ :sub:`2`
127 - Cb\ :sub:`1`
128 - Cb\ :sub:`0`
129 - Cr\ :sub:`4`
130 - Cr\ :sub:`3`
131 - Cr\ :sub:`2`
132 - Cr\ :sub:`1`
133 - Cr\ :sub:`0`
135 - Y'\ :sub:`4`
136 - Y'\ :sub:`3`
137 - Y'\ :sub:`2`
138 - Y'\ :sub:`1`
139 - Y'\ :sub:`0`
140 - Cb\ :sub:`5`
141 - Cb\ :sub:`4`
142 - Cb\ :sub:`3`
159 format stores a pixel with Cr\ :sub:`7-0` in the first byte, Cb\ :sub:`7-0` in
160 the second byte and Y'\ :sub:`7-0` in the third byte.
162 .. flat-table:: Packed YUV Image Formats (8bpc)
163 :header-rows: 1
164 :stub-columns: 0
166 * - Identifier
167 - Code
168 - Byte 0
169 - Byte 1
170 - Byte 2
171 - Byte 3
173 * .. _V4L2-PIX-FMT-YUV32:
175 - ``V4L2_PIX_FMT_YUV32``
176 - 'YUV4'
178 - A\ :sub:`7-0`
179 - Y'\ :sub:`7-0`
180 - Cb\ :sub:`7-0`
181 - Cr\ :sub:`7-0`
183 * .. _V4L2-PIX-FMT-AYUV32:
185 - ``V4L2_PIX_FMT_AYUV32``
186 - 'AYUV'
188 - A\ :sub:`7-0`
189 - Y'\ :sub:`7-0`
190 - Cb\ :sub:`7-0`
191 - Cr\ :sub:`7-0`
193 * .. _V4L2-PIX-FMT-XYUV32:
195 - ``V4L2_PIX_FMT_XYUV32``
196 - 'XYUV'
198 - X\ :sub:`7-0`
199 - Y'\ :sub:`7-0`
200 - Cb\ :sub:`7-0`
201 - Cr\ :sub:`7-0`
203 * .. _V4L2-PIX-FMT-VUYA32:
205 - ``V4L2_PIX_FMT_VUYA32``
206 - 'VUYA'
208 - Cr\ :sub:`7-0`
209 - Cb\ :sub:`7-0`
210 - Y'\ :sub:`7-0`
211 - A\ :sub:`7-0`
213 * .. _V4L2-PIX-FMT-VUYX32:
215 - ``V4L2_PIX_FMT_VUYX32``
216 - 'VUYX'
218 - Cr\ :sub:`7-0`
219 - Cb\ :sub:`7-0`
220 - Y'\ :sub:`7-0`
221 - X\ :sub:`7-0`
223 * .. _V4L2-PIX-FMT-YUVA32:
225 - ``V4L2_PIX_FMT_YUVA32``
226 - 'YUVA'
228 - Y'\ :sub:`7-0`
229 - Cb\ :sub:`7-0`
230 - Cr\ :sub:`7-0`
231 - A\ :sub:`7-0`
233 * .. _V4L2-PIX-FMT-YUVX32:
235 - ``V4L2_PIX_FMT_YUVX32``
236 - 'YUVX'
238 - Y'\ :sub:`7-0`
239 - Cb\ :sub:`7-0`
240 - Cr\ :sub:`7-0`
241 - X\ :sub:`7-0`
243 * .. _V4L2-PIX-FMT-YUV24:
245 - ``V4L2_PIX_FMT_YUV24``
246 - 'YUV3'
248 - Y'\ :sub:`7-0`
249 - Cb\ :sub:`7-0`
250 - Cr\ :sub:`7-0`
251 - -\
255 - The alpha component is expected to contain a meaningful value that can be
257 - The padding bits contain undefined values that must be ignored by all
273 .. flat-table:: Packed YUV 4:2:2 Formats
274 :header-rows: 1
275 :stub-columns: 0
277 * - Identifier
278 - Code
279 - Byte 0
280 - Byte 1
281 - Byte 2
282 - Byte 3
283 - Byte 4
284 - Byte 5
285 - Byte 6
286 - Byte 7
287 * .. _V4L2-PIX-FMT-UYVY:
289 - ``V4L2_PIX_FMT_UYVY``
290 - 'UYVY'
292 - Cb\ :sub:`0`
293 - Y'\ :sub:`0`
294 - Cr\ :sub:`0`
295 - Y'\ :sub:`1`
296 - Cb\ :sub:`2`
297 - Y'\ :sub:`2`
298 - Cr\ :sub:`2`
299 - Y'\ :sub:`3`
300 * .. _V4L2-PIX-FMT-VYUY:
302 - ``V4L2_PIX_FMT_VYUY``
303 - 'VYUY'
305 - Cr\ :sub:`0`
306 - Y'\ :sub:`0`
307 - Cb\ :sub:`0`
308 - Y'\ :sub:`1`
309 - Cr\ :sub:`2`
310 - Y'\ :sub:`2`
311 - Cb\ :sub:`2`
312 - Y'\ :sub:`3`
313 * .. _V4L2-PIX-FMT-YUYV:
315 - ``V4L2_PIX_FMT_YUYV``
316 - 'YUYV'
318 - Y'\ :sub:`0`
319 - Cb\ :sub:`0`
320 - Y'\ :sub:`1`
321 - Cr\ :sub:`0`
322 - Y'\ :sub:`2`
323 - Cb\ :sub:`2`
324 - Y'\ :sub:`3`
325 - Cr\ :sub:`2`
326 * .. _V4L2-PIX-FMT-YVYU:
328 - ``V4L2_PIX_FMT_YVYU``
329 - 'YVYU'
331 - Y'\ :sub:`0`
332 - Cr\ :sub:`0`
333 - Y'\ :sub:`1`
334 - Cb\ :sub:`0`
335 - Y'\ :sub:`2`
336 - Cr\ :sub:`2`
337 - Y'\ :sub:`3`
338 - Cb\ :sub:`2`
345 Chroma samples are :ref:`interstitially sited<yuv-chroma-centered>`
349 4:1:1 Subsampling
361 .. flat-table:: Packed YUV 4:1:1 Formats
362 :header-rows: 1
363 :stub-columns: 0
365 * - Identifier
366 - Code
367 - Byte 0
368 - Byte 1
369 - Byte 2
370 - Byte 3
371 - Byte 4
372 - Byte 5
373 - Byte 6
374 - Byte 7
375 - Byte 8
376 - Byte 9
377 - Byte 10
378 - Byte 11
379 * .. _V4L2-PIX-FMT-Y41P:
381 - ``V4L2_PIX_FMT_Y41P``
382 - 'Y41P'
384 - Cb\ :sub:`0`
385 - Y'\ :sub:`0`
386 - Cr\ :sub:`0`
387 - Y'\ :sub:`1`
388 - Cb\ :sub:`4`
389 - Y'\ :sub:`2`
390 - Cr\ :sub:`4`
391 - Y'\ :sub:`3`
392 - Y'\ :sub:`4`
393 - Y'\ :sub:`5`
394 - Y'\ :sub:`6`
395 - Y'\ :sub:`7`
404 :ref:`V4L2_PIX_FMT_YUV411P <V4L2-PIX-FMT-YUV411P>`. Y41P is derived from
405 "YUV 4:1:1 **packed**", while YUV411P stands for "YUV 4:1:1 **planar**".
408 Chroma samples are :ref:`interstitially sited<yuv-chroma-centered>`