Merge remote-tracking branch 'asoc/topic/rcar' into asoc-next
[sfrench/cifs-2.6.git] / Documentation / media / uapi / v4l / pixfmt-packed-rgb.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _packed-rgb:
4
5 ******************
6 Packed RGB formats
7 ******************
8
9 Description
10 ===========
11
12 These formats are designed to match the pixel formats of typical PC
13 graphics frame buffers. They occupy 8, 16, 24 or 32 bits per pixel.
14 These are all packed-pixel formats, meaning all the data for a pixel lie
15 next to each other in memory.
16
17 .. raw:: latex
18
19     \begingroup
20     \tiny
21     \setlength{\tabcolsep}{2pt}
22
23 .. tabularcolumns:: |p{2.3cm}|p{1.6cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|
24
25
26 .. _rgb-formats:
27
28 .. flat-table:: Packed RGB Image Formats
29     :header-rows:  2
30     :stub-columns: 0
31
32     * - Identifier
33       - Code
34       - :cspan:`7` Byte 0 in memory
35       - :cspan:`7` Byte 1
36       - :cspan:`7` Byte 2
37       - :cspan:`7` Byte 3
38     * -
39       -
40       - 7
41       - 6
42       - 5
43       - 4
44       - 3
45       - 2
46       - 1
47       - 0
48
49       - 7
50       - 6
51       - 5
52       - 4
53       - 3
54       - 2
55       - 1
56       - 0
57
58       - 7
59       - 6
60       - 5
61       - 4
62       - 3
63       - 2
64       - 1
65       - 0
66
67       - 7
68       - 6
69       - 5
70       - 4
71       - 3
72       - 2
73       - 1
74       - 0
75     * .. _V4L2-PIX-FMT-RGB332:
76
77       - ``V4L2_PIX_FMT_RGB332``
78       - 'RGB1'
79
80       - r\ :sub:`2`
81       - r\ :sub:`1`
82       - r\ :sub:`0`
83       - g\ :sub:`2`
84       - g\ :sub:`1`
85       - g\ :sub:`0`
86       - b\ :sub:`1`
87       - b\ :sub:`0`
88       -
89     * .. _V4L2-PIX-FMT-ARGB444:
90
91       - ``V4L2_PIX_FMT_ARGB444``
92       - 'AR12'
93
94       - g\ :sub:`3`
95       - g\ :sub:`2`
96       - g\ :sub:`1`
97       - g\ :sub:`0`
98       - b\ :sub:`3`
99       - b\ :sub:`2`
100       - b\ :sub:`1`
101       - b\ :sub:`0`
102
103       - a\ :sub:`3`
104       - a\ :sub:`2`
105       - a\ :sub:`1`
106       - a\ :sub:`0`
107       - r\ :sub:`3`
108       - r\ :sub:`2`
109       - r\ :sub:`1`
110       - r\ :sub:`0`
111       -
112     * .. _V4L2-PIX-FMT-XRGB444:
113
114       - ``V4L2_PIX_FMT_XRGB444``
115       - 'XR12'
116
117       - g\ :sub:`3`
118       - g\ :sub:`2`
119       - g\ :sub:`1`
120       - g\ :sub:`0`
121       - b\ :sub:`3`
122       - b\ :sub:`2`
123       - b\ :sub:`1`
124       - b\ :sub:`0`
125
126       -
127       -
128       -
129       -
130       - r\ :sub:`3`
131       - r\ :sub:`2`
132       - r\ :sub:`1`
133       - r\ :sub:`0`
134       -
135     * .. _V4L2-PIX-FMT-ARGB555:
136
137       - ``V4L2_PIX_FMT_ARGB555``
138       - 'AR15'
139
140       - g\ :sub:`2`
141       - g\ :sub:`1`
142       - g\ :sub:`0`
143       - b\ :sub:`4`
144       - b\ :sub:`3`
145       - b\ :sub:`2`
146       - b\ :sub:`1`
147       - b\ :sub:`0`
148
149       - a
150       - r\ :sub:`4`
151       - r\ :sub:`3`
152       - r\ :sub:`2`
153       - r\ :sub:`1`
154       - r\ :sub:`0`
155       - g\ :sub:`4`
156       - g\ :sub:`3`
157       -
158     * .. _V4L2-PIX-FMT-XRGB555:
159
160       - ``V4L2_PIX_FMT_XRGB555``
161       - 'XR15'
162
163       - g\ :sub:`2`
164       - g\ :sub:`1`
165       - g\ :sub:`0`
166       - b\ :sub:`4`
167       - b\ :sub:`3`
168       - b\ :sub:`2`
169       - b\ :sub:`1`
170       - b\ :sub:`0`
171
172       -
173       - r\ :sub:`4`
174       - r\ :sub:`3`
175       - r\ :sub:`2`
176       - r\ :sub:`1`
177       - r\ :sub:`0`
178       - g\ :sub:`4`
179       - g\ :sub:`3`
180       -
181     * .. _V4L2-PIX-FMT-RGB565:
182
183       - ``V4L2_PIX_FMT_RGB565``
184       - 'RGBP'
185
186       - g\ :sub:`2`
187       - g\ :sub:`1`
188       - g\ :sub:`0`
189       - b\ :sub:`4`
190       - b\ :sub:`3`
191       - b\ :sub:`2`
192       - b\ :sub:`1`
193       - b\ :sub:`0`
194
195       - r\ :sub:`4`
196       - r\ :sub:`3`
197       - r\ :sub:`2`
198       - r\ :sub:`1`
199       - r\ :sub:`0`
200       - g\ :sub:`5`
201       - g\ :sub:`4`
202       - g\ :sub:`3`
203       -
204     * .. _V4L2-PIX-FMT-ARGB555X:
205
206       - ``V4L2_PIX_FMT_ARGB555X``
207       - 'AR15' | (1 << 31)
208
209       - a
210       - r\ :sub:`4`
211       - r\ :sub:`3`
212       - r\ :sub:`2`
213       - r\ :sub:`1`
214       - r\ :sub:`0`
215       - g\ :sub:`4`
216       - g\ :sub:`3`
217
218       - g\ :sub:`2`
219       - g\ :sub:`1`
220       - g\ :sub:`0`
221       - b\ :sub:`4`
222       - b\ :sub:`3`
223       - b\ :sub:`2`
224       - b\ :sub:`1`
225       - b\ :sub:`0`
226       -
227     * .. _V4L2-PIX-FMT-XRGB555X:
228
229       - ``V4L2_PIX_FMT_XRGB555X``
230       - 'XR15' | (1 << 31)
231
232       -
233       - r\ :sub:`4`
234       - r\ :sub:`3`
235       - r\ :sub:`2`
236       - r\ :sub:`1`
237       - r\ :sub:`0`
238       - g\ :sub:`4`
239       - g\ :sub:`3`
240
241       - g\ :sub:`2`
242       - g\ :sub:`1`
243       - g\ :sub:`0`
244       - b\ :sub:`4`
245       - b\ :sub:`3`
246       - b\ :sub:`2`
247       - b\ :sub:`1`
248       - b\ :sub:`0`
249       -
250     * .. _V4L2-PIX-FMT-RGB565X:
251
252       - ``V4L2_PIX_FMT_RGB565X``
253       - 'RGBR'
254
255       - r\ :sub:`4`
256       - r\ :sub:`3`
257       - r\ :sub:`2`
258       - r\ :sub:`1`
259       - r\ :sub:`0`
260       - g\ :sub:`5`
261       - g\ :sub:`4`
262       - g\ :sub:`3`
263
264       - g\ :sub:`2`
265       - g\ :sub:`1`
266       - g\ :sub:`0`
267       - b\ :sub:`4`
268       - b\ :sub:`3`
269       - b\ :sub:`2`
270       - b\ :sub:`1`
271       - b\ :sub:`0`
272       -
273     * .. _V4L2-PIX-FMT-BGR24:
274
275       - ``V4L2_PIX_FMT_BGR24``
276       - 'BGR3'
277
278       - b\ :sub:`7`
279       - b\ :sub:`6`
280       - b\ :sub:`5`
281       - b\ :sub:`4`
282       - b\ :sub:`3`
283       - b\ :sub:`2`
284       - b\ :sub:`1`
285       - b\ :sub:`0`
286
287       - g\ :sub:`7`
288       - g\ :sub:`6`
289       - g\ :sub:`5`
290       - g\ :sub:`4`
291       - g\ :sub:`3`
292       - g\ :sub:`2`
293       - g\ :sub:`1`
294       - g\ :sub:`0`
295
296       - r\ :sub:`7`
297       - r\ :sub:`6`
298       - r\ :sub:`5`
299       - r\ :sub:`4`
300       - r\ :sub:`3`
301       - r\ :sub:`2`
302       - r\ :sub:`1`
303       - r\ :sub:`0`
304       -
305     * .. _V4L2-PIX-FMT-RGB24:
306
307       - ``V4L2_PIX_FMT_RGB24``
308       - 'RGB3'
309
310       - r\ :sub:`7`
311       - r\ :sub:`6`
312       - r\ :sub:`5`
313       - r\ :sub:`4`
314       - r\ :sub:`3`
315       - r\ :sub:`2`
316       - r\ :sub:`1`
317       - r\ :sub:`0`
318
319       - g\ :sub:`7`
320       - g\ :sub:`6`
321       - g\ :sub:`5`
322       - g\ :sub:`4`
323       - g\ :sub:`3`
324       - g\ :sub:`2`
325       - g\ :sub:`1`
326       - g\ :sub:`0`
327
328       - b\ :sub:`7`
329       - b\ :sub:`6`
330       - b\ :sub:`5`
331       - b\ :sub:`4`
332       - b\ :sub:`3`
333       - b\ :sub:`2`
334       - b\ :sub:`1`
335       - b\ :sub:`0`
336       -
337     * .. _V4L2-PIX-FMT-BGR666:
338
339       - ``V4L2_PIX_FMT_BGR666``
340       - 'BGRH'
341
342       - b\ :sub:`5`
343       - b\ :sub:`4`
344       - b\ :sub:`3`
345       - b\ :sub:`2`
346       - b\ :sub:`1`
347       - b\ :sub:`0`
348       - g\ :sub:`5`
349       - g\ :sub:`4`
350
351       - g\ :sub:`3`
352       - g\ :sub:`2`
353       - g\ :sub:`1`
354       - g\ :sub:`0`
355       - r\ :sub:`5`
356       - r\ :sub:`4`
357       - r\ :sub:`3`
358       - r\ :sub:`2`
359
360       - r\ :sub:`1`
361       - r\ :sub:`0`
362       -
363       -
364       -
365       -
366       -
367       -
368
369       -
370       -
371       -
372       -
373       -
374       -
375       -
376       -
377     * .. _V4L2-PIX-FMT-ABGR32:
378
379       - ``V4L2_PIX_FMT_ABGR32``
380       - 'AR24'
381
382       - b\ :sub:`7`
383       - b\ :sub:`6`
384       - b\ :sub:`5`
385       - b\ :sub:`4`
386       - b\ :sub:`3`
387       - b\ :sub:`2`
388       - b\ :sub:`1`
389       - b\ :sub:`0`
390
391       - g\ :sub:`7`
392       - g\ :sub:`6`
393       - g\ :sub:`5`
394       - g\ :sub:`4`
395       - g\ :sub:`3`
396       - g\ :sub:`2`
397       - g\ :sub:`1`
398       - g\ :sub:`0`
399
400       - r\ :sub:`7`
401       - r\ :sub:`6`
402       - r\ :sub:`5`
403       - r\ :sub:`4`
404       - r\ :sub:`3`
405       - r\ :sub:`2`
406       - r\ :sub:`1`
407       - r\ :sub:`0`
408
409       - a\ :sub:`7`
410       - a\ :sub:`6`
411       - a\ :sub:`5`
412       - a\ :sub:`4`
413       - a\ :sub:`3`
414       - a\ :sub:`2`
415       - a\ :sub:`1`
416       - a\ :sub:`0`
417     * .. _V4L2-PIX-FMT-XBGR32:
418
419       - ``V4L2_PIX_FMT_XBGR32``
420       - 'XR24'
421
422       - b\ :sub:`7`
423       - b\ :sub:`6`
424       - b\ :sub:`5`
425       - b\ :sub:`4`
426       - b\ :sub:`3`
427       - b\ :sub:`2`
428       - b\ :sub:`1`
429       - b\ :sub:`0`
430
431       - g\ :sub:`7`
432       - g\ :sub:`6`
433       - g\ :sub:`5`
434       - g\ :sub:`4`
435       - g\ :sub:`3`
436       - g\ :sub:`2`
437       - g\ :sub:`1`
438       - g\ :sub:`0`
439
440       - r\ :sub:`7`
441       - r\ :sub:`6`
442       - r\ :sub:`5`
443       - r\ :sub:`4`
444       - r\ :sub:`3`
445       - r\ :sub:`2`
446       - r\ :sub:`1`
447       - r\ :sub:`0`
448
449       -
450       -
451       -
452       -
453       -
454       -
455       -
456       -
457     * .. _V4L2-PIX-FMT-ARGB32:
458
459       - ``V4L2_PIX_FMT_ARGB32``
460       - 'BA24'
461
462       - a\ :sub:`7`
463       - a\ :sub:`6`
464       - a\ :sub:`5`
465       - a\ :sub:`4`
466       - a\ :sub:`3`
467       - a\ :sub:`2`
468       - a\ :sub:`1`
469       - a\ :sub:`0`
470
471       - r\ :sub:`7`
472       - r\ :sub:`6`
473       - r\ :sub:`5`
474       - r\ :sub:`4`
475       - r\ :sub:`3`
476       - r\ :sub:`2`
477       - r\ :sub:`1`
478       - r\ :sub:`0`
479
480       - g\ :sub:`7`
481       - g\ :sub:`6`
482       - g\ :sub:`5`
483       - g\ :sub:`4`
484       - g\ :sub:`3`
485       - g\ :sub:`2`
486       - g\ :sub:`1`
487       - g\ :sub:`0`
488
489       - b\ :sub:`7`
490       - b\ :sub:`6`
491       - b\ :sub:`5`
492       - b\ :sub:`4`
493       - b\ :sub:`3`
494       - b\ :sub:`2`
495       - b\ :sub:`1`
496       - b\ :sub:`0`
497     * .. _V4L2-PIX-FMT-XRGB32:
498
499       - ``V4L2_PIX_FMT_XRGB32``
500       - 'BX24'
501
502       -
503       -
504       -
505       -
506       -
507       -
508       -
509       -
510
511       - r\ :sub:`7`
512       - r\ :sub:`6`
513       - r\ :sub:`5`
514       - r\ :sub:`4`
515       - r\ :sub:`3`
516       - r\ :sub:`2`
517       - r\ :sub:`1`
518       - r\ :sub:`0`
519
520       - g\ :sub:`7`
521       - g\ :sub:`6`
522       - g\ :sub:`5`
523       - g\ :sub:`4`
524       - g\ :sub:`3`
525       - g\ :sub:`2`
526       - g\ :sub:`1`
527       - g\ :sub:`0`
528
529       - b\ :sub:`7`
530       - b\ :sub:`6`
531       - b\ :sub:`5`
532       - b\ :sub:`4`
533       - b\ :sub:`3`
534       - b\ :sub:`2`
535       - b\ :sub:`1`
536       - b\ :sub:`0`
537
538 .. raw:: latex
539
540     \endgroup
541
542 .. note:: Bit 7 is the most significant bit.
543
544 The usage and value of the alpha bits (a) in the ARGB and ABGR formats
545 (collectively referred to as alpha formats) depend on the device type
546 and hardware operation. :ref:`Capture <capture>` devices (including
547 capture queues of mem-to-mem devices) fill the alpha component in
548 memory. When the device outputs an alpha channel the alpha component
549 will have a meaningful value. Otherwise, when the device doesn't output
550 an alpha channel but can set the alpha bit to a user-configurable value,
551 the :ref:`V4L2_CID_ALPHA_COMPONENT <v4l2-alpha-component>` control
552 is used to specify that alpha value, and the alpha component of all
553 pixels will be set to the value specified by that control. Otherwise a
554 corresponding format without an alpha component (XRGB or XBGR) must be
555 used instead of an alpha format.
556
557 :ref:`Output <output>` devices (including output queues of mem-to-mem
558 devices and :ref:`video output overlay <osd>` devices) read the alpha
559 component from memory. When the device processes the alpha channel the
560 alpha component must be filled with meaningful values by applications.
561 Otherwise a corresponding format without an alpha component (XRGB or
562 XBGR) must be used instead of an alpha format.
563
564 The XRGB and XBGR formats contain undefined bits (-). Applications,
565 devices and drivers must ignore those bits, for both
566 :ref:`capture` and :ref:`output` devices.
567
568 **Byte Order.**
569 Each cell is one byte.
570
571
572 .. raw:: latex
573
574     \small
575
576 .. tabularcolumns:: |p{3.1cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|
577
578 .. flat-table:: RGB byte order
579     :header-rows:  0
580     :stub-columns: 0
581     :widths:       11 3 3 3 3 3 3 3 3 3 3 3 3
582
583     * - start + 0:
584       - B\ :sub:`00`
585       - G\ :sub:`00`
586       - R\ :sub:`00`
587       - B\ :sub:`01`
588       - G\ :sub:`01`
589       - R\ :sub:`01`
590       - B\ :sub:`02`
591       - G\ :sub:`02`
592       - R\ :sub:`02`
593       - B\ :sub:`03`
594       - G\ :sub:`03`
595       - R\ :sub:`03`
596     * - start + 12:
597       - B\ :sub:`10`
598       - G\ :sub:`10`
599       - R\ :sub:`10`
600       - B\ :sub:`11`
601       - G\ :sub:`11`
602       - R\ :sub:`11`
603       - B\ :sub:`12`
604       - G\ :sub:`12`
605       - R\ :sub:`12`
606       - B\ :sub:`13`
607       - G\ :sub:`13`
608       - R\ :sub:`13`
609     * - start + 24:
610       - B\ :sub:`20`
611       - G\ :sub:`20`
612       - R\ :sub:`20`
613       - B\ :sub:`21`
614       - G\ :sub:`21`
615       - R\ :sub:`21`
616       - B\ :sub:`22`
617       - G\ :sub:`22`
618       - R\ :sub:`22`
619       - B\ :sub:`23`
620       - G\ :sub:`23`
621       - R\ :sub:`23`
622     * - start + 36:
623       - B\ :sub:`30`
624       - G\ :sub:`30`
625       - R\ :sub:`30`
626       - B\ :sub:`31`
627       - G\ :sub:`31`
628       - R\ :sub:`31`
629       - B\ :sub:`32`
630       - G\ :sub:`32`
631       - R\ :sub:`32`
632       - B\ :sub:`33`
633       - G\ :sub:`33`
634       - R\ :sub:`33`
635
636 .. raw:: latex
637
638     \normalsize
639
640 Formats defined in :ref:`rgb-formats-deprecated` are deprecated and
641 must not be used by new drivers. They are documented here for reference.
642 The meaning of their alpha bits ``(a)`` are ill-defined and interpreted as in
643 either the corresponding ARGB or XRGB format, depending on the driver.
644
645
646 .. raw:: latex
647
648     \begingroup
649     \tiny
650     \setlength{\tabcolsep}{2pt}
651
652 .. tabularcolumns:: |p{2.2cm}|p{0.60cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|
653
654 .. _rgb-formats-deprecated:
655
656 .. flat-table:: Deprecated Packed RGB Image Formats
657     :header-rows:  2
658     :stub-columns: 0
659
660     * - Identifier
661       - Code
662       - :cspan:`7` Byte 0 in memory
663
664       - :cspan:`7` Byte 1
665
666       - :cspan:`7` Byte 2
667
668       - :cspan:`7` Byte 3
669     * -
670       -
671       - 7
672       - 6
673       - 5
674       - 4
675       - 3
676       - 2
677       - 1
678       - 0
679
680       - 7
681       - 6
682       - 5
683       - 4
684       - 3
685       - 2
686       - 1
687       - 0
688
689       - 7
690       - 6
691       - 5
692       - 4
693       - 3
694       - 2
695       - 1
696       - 0
697
698       - 7
699       - 6
700       - 5
701       - 4
702       - 3
703       - 2
704       - 1
705       - 0
706     * .. _V4L2-PIX-FMT-RGB444:
707
708       - ``V4L2_PIX_FMT_RGB444``
709       - 'R444'
710
711       - g\ :sub:`3`
712       - g\ :sub:`2`
713       - g\ :sub:`1`
714       - g\ :sub:`0`
715       - b\ :sub:`3`
716       - b\ :sub:`2`
717       - b\ :sub:`1`
718       - b\ :sub:`0`
719
720       - a\ :sub:`3`
721       - a\ :sub:`2`
722       - a\ :sub:`1`
723       - a\ :sub:`0`
724       - r\ :sub:`3`
725       - r\ :sub:`2`
726       - r\ :sub:`1`
727       - r\ :sub:`0`
728       -
729     * .. _V4L2-PIX-FMT-RGB555:
730
731       - ``V4L2_PIX_FMT_RGB555``
732       - 'RGBO'
733
734       - g\ :sub:`2`
735       - g\ :sub:`1`
736       - g\ :sub:`0`
737       - b\ :sub:`4`
738       - b\ :sub:`3`
739       - b\ :sub:`2`
740       - b\ :sub:`1`
741       - b\ :sub:`0`
742
743       - a
744       - r\ :sub:`4`
745       - r\ :sub:`3`
746       - r\ :sub:`2`
747       - r\ :sub:`1`
748       - r\ :sub:`0`
749       - g\ :sub:`4`
750       - g\ :sub:`3`
751       -
752     * .. _V4L2-PIX-FMT-RGB555X:
753
754       - ``V4L2_PIX_FMT_RGB555X``
755       - 'RGBQ'
756
757       - a
758       - r\ :sub:`4`
759       - r\ :sub:`3`
760       - r\ :sub:`2`
761       - r\ :sub:`1`
762       - r\ :sub:`0`
763       - g\ :sub:`4`
764       - g\ :sub:`3`
765
766       - g\ :sub:`2`
767       - g\ :sub:`1`
768       - g\ :sub:`0`
769       - b\ :sub:`4`
770       - b\ :sub:`3`
771       - b\ :sub:`2`
772       - b\ :sub:`1`
773       - b\ :sub:`0`
774       -
775     * .. _V4L2-PIX-FMT-BGR32:
776
777       - ``V4L2_PIX_FMT_BGR32``
778       - 'BGR4'
779
780       - b\ :sub:`7`
781       - b\ :sub:`6`
782       - b\ :sub:`5`
783       - b\ :sub:`4`
784       - b\ :sub:`3`
785       - b\ :sub:`2`
786       - b\ :sub:`1`
787       - b\ :sub:`0`
788
789       - g\ :sub:`7`
790       - g\ :sub:`6`
791       - g\ :sub:`5`
792       - g\ :sub:`4`
793       - g\ :sub:`3`
794       - g\ :sub:`2`
795       - g\ :sub:`1`
796       - g\ :sub:`0`
797
798       - r\ :sub:`7`
799       - r\ :sub:`6`
800       - r\ :sub:`5`
801       - r\ :sub:`4`
802       - r\ :sub:`3`
803       - r\ :sub:`2`
804       - r\ :sub:`1`
805       - r\ :sub:`0`
806
807       - a\ :sub:`7`
808       - a\ :sub:`6`
809       - a\ :sub:`5`
810       - a\ :sub:`4`
811       - a\ :sub:`3`
812       - a\ :sub:`2`
813       - a\ :sub:`1`
814       - a\ :sub:`0`
815     * .. _V4L2-PIX-FMT-RGB32:
816
817       - ``V4L2_PIX_FMT_RGB32``
818       - 'RGB4'
819
820       - a\ :sub:`7`
821       - a\ :sub:`6`
822       - a\ :sub:`5`
823       - a\ :sub:`4`
824       - a\ :sub:`3`
825       - a\ :sub:`2`
826       - a\ :sub:`1`
827       - a\ :sub:`0`
828
829       - r\ :sub:`7`
830       - r\ :sub:`6`
831       - r\ :sub:`5`
832       - r\ :sub:`4`
833       - r\ :sub:`3`
834       - r\ :sub:`2`
835       - r\ :sub:`1`
836       - r\ :sub:`0`
837
838       - g\ :sub:`7`
839       - g\ :sub:`6`
840       - g\ :sub:`5`
841       - g\ :sub:`4`
842       - g\ :sub:`3`
843       - g\ :sub:`2`
844       - g\ :sub:`1`
845       - g\ :sub:`0`
846
847       - b\ :sub:`7`
848       - b\ :sub:`6`
849       - b\ :sub:`5`
850       - b\ :sub:`4`
851       - b\ :sub:`3`
852       - b\ :sub:`2`
853       - b\ :sub:`1`
854       - b\ :sub:`0`
855
856 .. raw:: latex
857
858     \endgroup
859
860 A test utility to determine which RGB formats a driver actually supports
861 is available from the LinuxTV v4l-dvb repository. See
862 `https://linuxtv.org/repo/ <https://linuxtv.org/repo/>`__ for access
863 instructions.