~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/userspace-api/media/v4l/pixfmt-rgb.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/userspace-api/media/v4l/pixfmt-rgb.rst (Version linux-6.12-rc7) and /Documentation/userspace-api/media/v4l/pixfmt-rgb.rst (Version linux-5.8.18)


  1 .. SPDX-License-Identifier: GFDL-1.1-no-invari !!   1 .. Permission is granted to copy, distribute and/or modify this
                                                   >>   2 .. document under the terms of the GNU Free Documentation License,
                                                   >>   3 .. Version 1.1 or any later version published by the Free Software
                                                   >>   4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
                                                   >>   5 .. and no Back-Cover Texts. A copy of the license is included at
                                                   >>   6 .. Documentation/userspace-api/media/fdl-appendix.rst.
                                                   >>   7 ..
                                                   >>   8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
  2                                                     9 
  3 .. _pixfmt-rgb:                                    10 .. _pixfmt-rgb:
  4                                                    11 
  5 ***********                                        12 ***********
  6 RGB Formats                                        13 RGB Formats
  7 ***********                                        14 ***********
  8                                                    15 
  9 These formats encode each pixel as a triplet o !!  16 Description
 10 formats, meaning that the RGB values for one p !!  17 ===========
 11 memory and each pixel consumes an integer numb !!  18 
 12 bits required to store a pixel is not aligned  !!  19 These formats are designed to match the pixel formats of typical PC
 13 padded with additional bits to fill the remain !!  20 graphics frame buffers. They occupy 8, 16, 24 or 32 bits per pixel.
 14                                                !!  21 These are all packed-pixel formats, meaning all the data for a pixel lie
 15 The formats differ by the number of bits per R !!  22 next to each other in memory.
 16 always the same for all components), the order << 
 17 presence of an alpha component or additional p << 
 18                                                << 
 19 The usage and value of the alpha bits in forma << 
 20 or a permutation thereof, collectively referre << 
 21 the device type and hardware operation. :ref:` << 
 22 (including capture queues of mem-to-mem device << 
 23 memory. When the device captures an alpha chan << 
 24 a meaningful value. Otherwise, when the device << 
 25 but can set the alpha bit to a user-configurab << 
 26 :ref:`V4L2_CID_ALPHA_COMPONENT <v4l2-alpha-com << 
 27 specify that alpha value, and the alpha compon << 
 28 the value specified by that control. Otherwise << 
 29 an alpha component (XRGB or XBGR) must be used << 
 30                                                << 
 31 :ref:`Output <output>` devices (including outp << 
 32 and :ref:`video output overlay <osd>` devices) << 
 33 memory. When the device processes the alpha ch << 
 34 filled with meaningful values by applications. << 
 35 without an alpha component (XRGB or XBGR) must << 
 36 format.                                        << 
 37                                                << 
 38 Formats that contain padding bits are named XR << 
 39 The padding bits contain undefined values and  << 
 40 devices and drivers, for both :ref:`capture` a << 
 41                                                << 
 42 .. note::                                      << 
 43                                                << 
 44    - In all the tables that follow, bit 7 is t << 
 45    - 'r', 'g' and 'b' denote bits of the red,  << 
 46      respectively. 'a' denotes bits of the alp << 
 47      format), and 'x' denotes padding bits.    << 
 48                                                << 
 49                                                << 
 50 Less Than 8 Bits Per Component                 << 
 51 ==============================                 << 
 52                                                << 
 53 These formats store an RGB triplet in one, two << 
 54 based on the order of the RGB components as se << 
 55 which is then stored in memory in little endia << 
 56 noted by the presence of bit 31 in the 4CC val << 
 57 for each component. For instance, the RGB565 f << 
 58 word [15:0] laid out at as [R\ :sub:`4` R\ :su << 
 59 R\ :sub:`0` G\ :sub:`5` G\ :sub:`4` G\ :sub:`3 << 
 60 G\ :sub:`0` B\ :sub:`4` B\ :sub:`3` B\ :sub:`2 << 
 61 stored in memory in two bytes, [R\ :sub:`4` R\ << 
 62 R\ :sub:`0` G\ :sub:`5` G\ :sub:`4` G\ :sub:`3 << 
 63 G\ :sub:`1` G\ :sub:`0` B\ :sub:`4` B\ :sub:`3 << 
 64 B\ :sub:`0`].                                  << 
 65                                                    23 
 66 .. raw:: latex                                     24 .. raw:: latex
 67                                                    25 
 68     \begingroup                                    26     \begingroup
 69     \tiny                                          27     \tiny
 70     \setlength{\tabcolsep}{2pt}                    28     \setlength{\tabcolsep}{2pt}
 71                                                    29 
 72 .. tabularcolumns:: |p{2.8cm}|p{2.0cm}|p{0.22c     30 .. tabularcolumns:: |p{2.8cm}|p{2.0cm}|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}|
 73                                                    31 
 74                                                    32 
 75 .. flat-table:: RGB Formats With Less Than 8 B !!  33 .. flat-table:: RGB Image Formats
 76     :header-rows:  2                               34     :header-rows:  2
 77     :stub-columns: 0                               35     :stub-columns: 0
 78                                                    36 
 79     * - Identifier                                 37     * - Identifier
 80       - Code                                       38       - Code
 81       - :cspan:`7` Byte 0 in memory                39       - :cspan:`7` Byte 0 in memory
 82       - :cspan:`7` Byte 1                          40       - :cspan:`7` Byte 1
 83       - :cspan:`7` Byte 2                          41       - :cspan:`7` Byte 2
 84       - :cspan:`7` Byte 3                          42       - :cspan:`7` Byte 3
 85     * -                                            43     * -
 86       -                                            44       -
 87       - 7                                          45       - 7
 88       - 6                                          46       - 6
 89       - 5                                          47       - 5
 90       - 4                                          48       - 4
 91       - 3                                          49       - 3
 92       - 2                                          50       - 2
 93       - 1                                          51       - 1
 94       - 0                                          52       - 0
 95                                                    53 
 96       - 7                                          54       - 7
 97       - 6                                          55       - 6
 98       - 5                                          56       - 5
 99       - 4                                          57       - 4
100       - 3                                          58       - 3
101       - 2                                          59       - 2
102       - 1                                          60       - 1
103       - 0                                          61       - 0
104                                                    62 
105       - 7                                          63       - 7
106       - 6                                          64       - 6
107       - 5                                          65       - 5
108       - 4                                          66       - 4
109       - 3                                          67       - 3
110       - 2                                          68       - 2
111       - 1                                          69       - 1
112       - 0                                          70       - 0
113                                                    71 
114       - 7                                          72       - 7
115       - 6                                          73       - 6
116       - 5                                          74       - 5
117       - 4                                          75       - 4
118       - 3                                          76       - 3
119       - 2                                          77       - 2
120       - 1                                          78       - 1
121       - 0                                          79       - 0
122     * .. _V4L2-PIX-FMT-RGB332:                     80     * .. _V4L2-PIX-FMT-RGB332:
123                                                    81 
124       - ``V4L2_PIX_FMT_RGB332``                    82       - ``V4L2_PIX_FMT_RGB332``
125       - 'RGB1'                                     83       - 'RGB1'
126                                                    84 
127       - r\ :sub:`2`                                85       - r\ :sub:`2`
128       - r\ :sub:`1`                                86       - r\ :sub:`1`
129       - r\ :sub:`0`                                87       - r\ :sub:`0`
130       - g\ :sub:`2`                                88       - g\ :sub:`2`
131       - g\ :sub:`1`                                89       - g\ :sub:`1`
132       - g\ :sub:`0`                                90       - g\ :sub:`0`
133       - b\ :sub:`1`                                91       - b\ :sub:`1`
134       - b\ :sub:`0`                                92       - b\ :sub:`0`
135       -                                            93       -
136     * .. _V4L2-PIX-FMT-ARGB444:                    94     * .. _V4L2-PIX-FMT-ARGB444:
137                                                    95 
138       - ``V4L2_PIX_FMT_ARGB444``                   96       - ``V4L2_PIX_FMT_ARGB444``
139       - 'AR12'                                     97       - 'AR12'
140                                                    98 
141       - g\ :sub:`3`                                99       - g\ :sub:`3`
142       - g\ :sub:`2`                               100       - g\ :sub:`2`
143       - g\ :sub:`1`                               101       - g\ :sub:`1`
144       - g\ :sub:`0`                               102       - g\ :sub:`0`
145       - b\ :sub:`3`                               103       - b\ :sub:`3`
146       - b\ :sub:`2`                               104       - b\ :sub:`2`
147       - b\ :sub:`1`                               105       - b\ :sub:`1`
148       - b\ :sub:`0`                               106       - b\ :sub:`0`
149                                                   107 
150       - a\ :sub:`3`                               108       - a\ :sub:`3`
151       - a\ :sub:`2`                               109       - a\ :sub:`2`
152       - a\ :sub:`1`                               110       - a\ :sub:`1`
153       - a\ :sub:`0`                               111       - a\ :sub:`0`
154       - r\ :sub:`3`                               112       - r\ :sub:`3`
155       - r\ :sub:`2`                               113       - r\ :sub:`2`
156       - r\ :sub:`1`                               114       - r\ :sub:`1`
157       - r\ :sub:`0`                               115       - r\ :sub:`0`
158       -                                           116       -
159     * .. _V4L2-PIX-FMT-XRGB444:                   117     * .. _V4L2-PIX-FMT-XRGB444:
160                                                   118 
161       - ``V4L2_PIX_FMT_XRGB444``                  119       - ``V4L2_PIX_FMT_XRGB444``
162       - 'XR12'                                    120       - 'XR12'
163                                                   121 
164       - g\ :sub:`3`                               122       - g\ :sub:`3`
165       - g\ :sub:`2`                               123       - g\ :sub:`2`
166       - g\ :sub:`1`                               124       - g\ :sub:`1`
167       - g\ :sub:`0`                               125       - g\ :sub:`0`
168       - b\ :sub:`3`                               126       - b\ :sub:`3`
169       - b\ :sub:`2`                               127       - b\ :sub:`2`
170       - b\ :sub:`1`                               128       - b\ :sub:`1`
171       - b\ :sub:`0`                               129       - b\ :sub:`0`
172                                                   130 
173       - x                                      !! 131       - `-`
174       - x                                      !! 132       - `-`
175       - x                                      !! 133       - `-`
176       - x                                      !! 134       - `-`
177       - r\ :sub:`3`                               135       - r\ :sub:`3`
178       - r\ :sub:`2`                               136       - r\ :sub:`2`
179       - r\ :sub:`1`                               137       - r\ :sub:`1`
180       - r\ :sub:`0`                               138       - r\ :sub:`0`
181       -                                           139       -
182     * .. _V4L2-PIX-FMT-RGBA444:                   140     * .. _V4L2-PIX-FMT-RGBA444:
183                                                   141 
184       - ``V4L2_PIX_FMT_RGBA444``                  142       - ``V4L2_PIX_FMT_RGBA444``
185       - 'RA12'                                    143       - 'RA12'
186                                                   144 
187       - b\ :sub:`3`                               145       - b\ :sub:`3`
188       - b\ :sub:`2`                               146       - b\ :sub:`2`
189       - b\ :sub:`1`                               147       - b\ :sub:`1`
190       - b\ :sub:`0`                               148       - b\ :sub:`0`
191       - a\ :sub:`3`                               149       - a\ :sub:`3`
192       - a\ :sub:`2`                               150       - a\ :sub:`2`
193       - a\ :sub:`1`                               151       - a\ :sub:`1`
194       - a\ :sub:`0`                               152       - a\ :sub:`0`
195                                                   153 
196       - r\ :sub:`3`                               154       - r\ :sub:`3`
197       - r\ :sub:`2`                               155       - r\ :sub:`2`
198       - r\ :sub:`1`                               156       - r\ :sub:`1`
199       - r\ :sub:`0`                               157       - r\ :sub:`0`
200       - g\ :sub:`3`                               158       - g\ :sub:`3`
201       - g\ :sub:`2`                               159       - g\ :sub:`2`
202       - g\ :sub:`1`                               160       - g\ :sub:`1`
203       - g\ :sub:`0`                               161       - g\ :sub:`0`
204       -                                           162       -
205     * .. _V4L2-PIX-FMT-RGBX444:                   163     * .. _V4L2-PIX-FMT-RGBX444:
206                                                   164 
207       - ``V4L2_PIX_FMT_RGBX444``                  165       - ``V4L2_PIX_FMT_RGBX444``
208       - 'RX12'                                    166       - 'RX12'
209                                                   167 
210       - b\ :sub:`3`                               168       - b\ :sub:`3`
211       - b\ :sub:`2`                               169       - b\ :sub:`2`
212       - b\ :sub:`1`                               170       - b\ :sub:`1`
213       - b\ :sub:`0`                               171       - b\ :sub:`0`
214       - x                                      !! 172       - `-`
215       - x                                      !! 173       - `-`
216       - x                                      !! 174       - `-`
217       - x                                      !! 175       - `-`
218                                                   176 
219       - r\ :sub:`3`                               177       - r\ :sub:`3`
220       - r\ :sub:`2`                               178       - r\ :sub:`2`
221       - r\ :sub:`1`                               179       - r\ :sub:`1`
222       - r\ :sub:`0`                               180       - r\ :sub:`0`
223       - g\ :sub:`3`                               181       - g\ :sub:`3`
224       - g\ :sub:`2`                               182       - g\ :sub:`2`
225       - g\ :sub:`1`                               183       - g\ :sub:`1`
226       - g\ :sub:`0`                               184       - g\ :sub:`0`
227       -                                           185       -
228     * .. _V4L2-PIX-FMT-ABGR444:                   186     * .. _V4L2-PIX-FMT-ABGR444:
229                                                   187 
230       - ``V4L2_PIX_FMT_ABGR444``                  188       - ``V4L2_PIX_FMT_ABGR444``
231       - 'AB12'                                    189       - 'AB12'
232                                                   190 
233       - g\ :sub:`3`                               191       - g\ :sub:`3`
234       - g\ :sub:`2`                               192       - g\ :sub:`2`
235       - g\ :sub:`1`                               193       - g\ :sub:`1`
236       - g\ :sub:`0`                               194       - g\ :sub:`0`
237       - r\ :sub:`3`                               195       - r\ :sub:`3`
238       - r\ :sub:`2`                               196       - r\ :sub:`2`
239       - r\ :sub:`1`                               197       - r\ :sub:`1`
240       - r\ :sub:`0`                               198       - r\ :sub:`0`
241                                                   199 
242       - a\ :sub:`3`                               200       - a\ :sub:`3`
243       - a\ :sub:`2`                               201       - a\ :sub:`2`
244       - a\ :sub:`1`                               202       - a\ :sub:`1`
245       - a\ :sub:`0`                               203       - a\ :sub:`0`
246       - b\ :sub:`3`                               204       - b\ :sub:`3`
247       - b\ :sub:`2`                               205       - b\ :sub:`2`
248       - b\ :sub:`1`                               206       - b\ :sub:`1`
249       - b\ :sub:`0`                               207       - b\ :sub:`0`
250       -                                           208       -
251     * .. _V4L2-PIX-FMT-XBGR444:                   209     * .. _V4L2-PIX-FMT-XBGR444:
252                                                   210 
253       - ``V4L2_PIX_FMT_XBGR444``                  211       - ``V4L2_PIX_FMT_XBGR444``
254       - 'XB12'                                    212       - 'XB12'
255                                                   213 
256       - g\ :sub:`3`                               214       - g\ :sub:`3`
257       - g\ :sub:`2`                               215       - g\ :sub:`2`
258       - g\ :sub:`1`                               216       - g\ :sub:`1`
259       - g\ :sub:`0`                               217       - g\ :sub:`0`
260       - r\ :sub:`3`                               218       - r\ :sub:`3`
261       - r\ :sub:`2`                               219       - r\ :sub:`2`
262       - r\ :sub:`1`                               220       - r\ :sub:`1`
263       - r\ :sub:`0`                               221       - r\ :sub:`0`
264                                                   222 
265       - x                                      !! 223       - `-`
266       - x                                      !! 224       - `-`
267       - x                                      !! 225       - `-`
268       - x                                      !! 226       - `-`
269       - b\ :sub:`3`                               227       - b\ :sub:`3`
270       - b\ :sub:`2`                               228       - b\ :sub:`2`
271       - b\ :sub:`1`                               229       - b\ :sub:`1`
272       - b\ :sub:`0`                               230       - b\ :sub:`0`
273       -                                           231       -
274     * .. _V4L2-PIX-FMT-BGRA444:                   232     * .. _V4L2-PIX-FMT-BGRA444:
275                                                   233 
276       - ``V4L2_PIX_FMT_BGRA444``                  234       - ``V4L2_PIX_FMT_BGRA444``
277       - 'BA12'                                    235       - 'BA12'
278                                                   236 
279       - r\ :sub:`3`                               237       - r\ :sub:`3`
280       - r\ :sub:`2`                               238       - r\ :sub:`2`
281       - r\ :sub:`1`                               239       - r\ :sub:`1`
282       - r\ :sub:`0`                               240       - r\ :sub:`0`
283       - a\ :sub:`3`                               241       - a\ :sub:`3`
284       - a\ :sub:`2`                               242       - a\ :sub:`2`
285       - a\ :sub:`1`                               243       - a\ :sub:`1`
286       - a\ :sub:`0`                               244       - a\ :sub:`0`
287                                                   245 
288       - b\ :sub:`3`                               246       - b\ :sub:`3`
289       - b\ :sub:`2`                               247       - b\ :sub:`2`
290       - b\ :sub:`1`                               248       - b\ :sub:`1`
291       - b\ :sub:`0`                               249       - b\ :sub:`0`
292       - g\ :sub:`3`                               250       - g\ :sub:`3`
293       - g\ :sub:`2`                               251       - g\ :sub:`2`
294       - g\ :sub:`1`                               252       - g\ :sub:`1`
295       - g\ :sub:`0`                               253       - g\ :sub:`0`
296       -                                           254       -
297     * .. _V4L2-PIX-FMT-BGRX444:                   255     * .. _V4L2-PIX-FMT-BGRX444:
298                                                   256 
299       - ``V4L2_PIX_FMT_BGRX444``                  257       - ``V4L2_PIX_FMT_BGRX444``
300       - 'BX12'                                    258       - 'BX12'
301                                                   259 
302       - r\ :sub:`3`                               260       - r\ :sub:`3`
303       - r\ :sub:`2`                               261       - r\ :sub:`2`
304       - r\ :sub:`1`                               262       - r\ :sub:`1`
305       - r\ :sub:`0`                               263       - r\ :sub:`0`
306       - x                                      !! 264       - `-`
307       - x                                      !! 265       - `-`
308       - x                                      !! 266       - `-`
309       - x                                      !! 267       - `-`
310                                                   268 
311       - b\ :sub:`3`                               269       - b\ :sub:`3`
312       - b\ :sub:`2`                               270       - b\ :sub:`2`
313       - b\ :sub:`1`                               271       - b\ :sub:`1`
314       - b\ :sub:`0`                               272       - b\ :sub:`0`
315       - g\ :sub:`3`                               273       - g\ :sub:`3`
316       - g\ :sub:`2`                               274       - g\ :sub:`2`
317       - g\ :sub:`1`                               275       - g\ :sub:`1`
318       - g\ :sub:`0`                               276       - g\ :sub:`0`
319       -                                           277       -
320     * .. _V4L2-PIX-FMT-ARGB555:                   278     * .. _V4L2-PIX-FMT-ARGB555:
321                                                   279 
322       - ``V4L2_PIX_FMT_ARGB555``                  280       - ``V4L2_PIX_FMT_ARGB555``
323       - 'AR15'                                    281       - 'AR15'
324                                                   282 
325       - g\ :sub:`2`                               283       - g\ :sub:`2`
326       - g\ :sub:`1`                               284       - g\ :sub:`1`
327       - g\ :sub:`0`                               285       - g\ :sub:`0`
328       - b\ :sub:`4`                               286       - b\ :sub:`4`
329       - b\ :sub:`3`                               287       - b\ :sub:`3`
330       - b\ :sub:`2`                               288       - b\ :sub:`2`
331       - b\ :sub:`1`                               289       - b\ :sub:`1`
332       - b\ :sub:`0`                               290       - b\ :sub:`0`
333                                                   291 
334       - a                                         292       - a
335       - r\ :sub:`4`                               293       - r\ :sub:`4`
336       - r\ :sub:`3`                               294       - r\ :sub:`3`
337       - r\ :sub:`2`                               295       - r\ :sub:`2`
338       - r\ :sub:`1`                               296       - r\ :sub:`1`
339       - r\ :sub:`0`                               297       - r\ :sub:`0`
340       - g\ :sub:`4`                               298       - g\ :sub:`4`
341       - g\ :sub:`3`                               299       - g\ :sub:`3`
342       -                                           300       -
343     * .. _V4L2-PIX-FMT-XRGB555:                   301     * .. _V4L2-PIX-FMT-XRGB555:
344                                                   302 
345       - ``V4L2_PIX_FMT_XRGB555``                  303       - ``V4L2_PIX_FMT_XRGB555``
346       - 'XR15'                                    304       - 'XR15'
347                                                   305 
348       - g\ :sub:`2`                               306       - g\ :sub:`2`
349       - g\ :sub:`1`                               307       - g\ :sub:`1`
350       - g\ :sub:`0`                               308       - g\ :sub:`0`
351       - b\ :sub:`4`                               309       - b\ :sub:`4`
352       - b\ :sub:`3`                               310       - b\ :sub:`3`
353       - b\ :sub:`2`                               311       - b\ :sub:`2`
354       - b\ :sub:`1`                               312       - b\ :sub:`1`
355       - b\ :sub:`0`                               313       - b\ :sub:`0`
356                                                   314 
357       - x                                      !! 315       - `-`
358       - r\ :sub:`4`                               316       - r\ :sub:`4`
359       - r\ :sub:`3`                               317       - r\ :sub:`3`
360       - r\ :sub:`2`                               318       - r\ :sub:`2`
361       - r\ :sub:`1`                               319       - r\ :sub:`1`
362       - r\ :sub:`0`                               320       - r\ :sub:`0`
363       - g\ :sub:`4`                               321       - g\ :sub:`4`
364       - g\ :sub:`3`                               322       - g\ :sub:`3`
365       -                                           323       -
366     * .. _V4L2-PIX-FMT-RGBA555:                   324     * .. _V4L2-PIX-FMT-RGBA555:
367                                                   325 
368       - ``V4L2_PIX_FMT_RGBA555``                  326       - ``V4L2_PIX_FMT_RGBA555``
369       - 'RA15'                                    327       - 'RA15'
370                                                   328 
371       - g\ :sub:`1`                               329       - g\ :sub:`1`
372       - g\ :sub:`0`                               330       - g\ :sub:`0`
373       - b\ :sub:`4`                               331       - b\ :sub:`4`
374       - b\ :sub:`3`                               332       - b\ :sub:`3`
375       - b\ :sub:`2`                               333       - b\ :sub:`2`
376       - b\ :sub:`1`                               334       - b\ :sub:`1`
377       - b\ :sub:`0`                               335       - b\ :sub:`0`
378       - a                                         336       - a
379                                                   337 
380       - r\ :sub:`4`                               338       - r\ :sub:`4`
381       - r\ :sub:`3`                               339       - r\ :sub:`3`
382       - r\ :sub:`2`                               340       - r\ :sub:`2`
383       - r\ :sub:`1`                               341       - r\ :sub:`1`
384       - r\ :sub:`0`                               342       - r\ :sub:`0`
385       - g\ :sub:`4`                               343       - g\ :sub:`4`
386       - g\ :sub:`3`                               344       - g\ :sub:`3`
387       - g\ :sub:`2`                               345       - g\ :sub:`2`
388       -                                           346       -
389     * .. _V4L2-PIX-FMT-RGBX555:                   347     * .. _V4L2-PIX-FMT-RGBX555:
390                                                   348 
391       - ``V4L2_PIX_FMT_RGBX555``                  349       - ``V4L2_PIX_FMT_RGBX555``
392       - 'RX15'                                    350       - 'RX15'
393                                                   351 
394       - g\ :sub:`1`                               352       - g\ :sub:`1`
395       - g\ :sub:`0`                               353       - g\ :sub:`0`
396       - b\ :sub:`4`                               354       - b\ :sub:`4`
397       - b\ :sub:`3`                               355       - b\ :sub:`3`
398       - b\ :sub:`2`                               356       - b\ :sub:`2`
399       - b\ :sub:`1`                               357       - b\ :sub:`1`
400       - b\ :sub:`0`                               358       - b\ :sub:`0`
401       - x                                      !! 359       - `-`
402                                                   360 
403       - r\ :sub:`4`                               361       - r\ :sub:`4`
404       - r\ :sub:`3`                               362       - r\ :sub:`3`
405       - r\ :sub:`2`                               363       - r\ :sub:`2`
406       - r\ :sub:`1`                               364       - r\ :sub:`1`
407       - r\ :sub:`0`                               365       - r\ :sub:`0`
408       - g\ :sub:`4`                               366       - g\ :sub:`4`
409       - g\ :sub:`3`                               367       - g\ :sub:`3`
410       - g\ :sub:`2`                               368       - g\ :sub:`2`
411       -                                           369       -
412     * .. _V4L2-PIX-FMT-ABGR555:                   370     * .. _V4L2-PIX-FMT-ABGR555:
413                                                   371 
414       - ``V4L2_PIX_FMT_ABGR555``                  372       - ``V4L2_PIX_FMT_ABGR555``
415       - 'AB15'                                    373       - 'AB15'
416                                                   374 
417       - g\ :sub:`2`                               375       - g\ :sub:`2`
418       - g\ :sub:`1`                               376       - g\ :sub:`1`
419       - g\ :sub:`0`                               377       - g\ :sub:`0`
420       - r\ :sub:`4`                               378       - r\ :sub:`4`
421       - r\ :sub:`3`                               379       - r\ :sub:`3`
422       - r\ :sub:`2`                               380       - r\ :sub:`2`
423       - r\ :sub:`1`                               381       - r\ :sub:`1`
424       - r\ :sub:`0`                               382       - r\ :sub:`0`
425                                                   383 
426       - a                                         384       - a
427       - b\ :sub:`4`                               385       - b\ :sub:`4`
428       - b\ :sub:`3`                               386       - b\ :sub:`3`
429       - b\ :sub:`2`                               387       - b\ :sub:`2`
430       - b\ :sub:`1`                               388       - b\ :sub:`1`
431       - b\ :sub:`0`                               389       - b\ :sub:`0`
432       - g\ :sub:`4`                               390       - g\ :sub:`4`
433       - g\ :sub:`3`                               391       - g\ :sub:`3`
434       -                                           392       -
435     * .. _V4L2-PIX-FMT-XBGR555:                   393     * .. _V4L2-PIX-FMT-XBGR555:
436                                                   394 
437       - ``V4L2_PIX_FMT_XBGR555``                  395       - ``V4L2_PIX_FMT_XBGR555``
438       - 'XB15'                                    396       - 'XB15'
439                                                   397 
440       - g\ :sub:`2`                               398       - g\ :sub:`2`
441       - g\ :sub:`1`                               399       - g\ :sub:`1`
442       - g\ :sub:`0`                               400       - g\ :sub:`0`
443       - r\ :sub:`4`                               401       - r\ :sub:`4`
444       - r\ :sub:`3`                               402       - r\ :sub:`3`
445       - r\ :sub:`2`                               403       - r\ :sub:`2`
446       - r\ :sub:`1`                               404       - r\ :sub:`1`
447       - r\ :sub:`0`                               405       - r\ :sub:`0`
448                                                   406 
449       - x                                      !! 407       - `-`
450       - b\ :sub:`4`                               408       - b\ :sub:`4`
451       - b\ :sub:`3`                               409       - b\ :sub:`3`
452       - b\ :sub:`2`                               410       - b\ :sub:`2`
453       - b\ :sub:`1`                               411       - b\ :sub:`1`
454       - b\ :sub:`0`                               412       - b\ :sub:`0`
455       - g\ :sub:`4`                               413       - g\ :sub:`4`
456       - g\ :sub:`3`                               414       - g\ :sub:`3`
457       -                                           415       -
458     * .. _V4L2-PIX-FMT-BGRA555:                   416     * .. _V4L2-PIX-FMT-BGRA555:
459                                                   417 
460       - ``V4L2_PIX_FMT_BGRA555``                  418       - ``V4L2_PIX_FMT_BGRA555``
461       - 'BA15'                                    419       - 'BA15'
462                                                   420 
463       - g\ :sub:`1`                               421       - g\ :sub:`1`
464       - g\ :sub:`0`                               422       - g\ :sub:`0`
465       - r\ :sub:`4`                               423       - r\ :sub:`4`
466       - r\ :sub:`3`                               424       - r\ :sub:`3`
467       - r\ :sub:`2`                               425       - r\ :sub:`2`
468       - r\ :sub:`1`                               426       - r\ :sub:`1`
469       - r\ :sub:`0`                               427       - r\ :sub:`0`
470       - a                                         428       - a
471                                                   429 
472       - b\ :sub:`4`                               430       - b\ :sub:`4`
473       - b\ :sub:`3`                               431       - b\ :sub:`3`
474       - b\ :sub:`2`                               432       - b\ :sub:`2`
475       - b\ :sub:`1`                               433       - b\ :sub:`1`
476       - b\ :sub:`0`                               434       - b\ :sub:`0`
477       - g\ :sub:`4`                               435       - g\ :sub:`4`
478       - g\ :sub:`3`                               436       - g\ :sub:`3`
479       - g\ :sub:`2`                               437       - g\ :sub:`2`
480       -                                           438       -
481     * .. _V4L2-PIX-FMT-BGRX555:                   439     * .. _V4L2-PIX-FMT-BGRX555:
482                                                   440 
483       - ``V4L2_PIX_FMT_BGRX555``                  441       - ``V4L2_PIX_FMT_BGRX555``
484       - 'BX15'                                    442       - 'BX15'
485                                                   443 
486       - g\ :sub:`1`                               444       - g\ :sub:`1`
487       - g\ :sub:`0`                               445       - g\ :sub:`0`
488       - r\ :sub:`4`                               446       - r\ :sub:`4`
489       - r\ :sub:`3`                               447       - r\ :sub:`3`
490       - r\ :sub:`2`                               448       - r\ :sub:`2`
491       - r\ :sub:`1`                               449       - r\ :sub:`1`
492       - r\ :sub:`0`                               450       - r\ :sub:`0`
493       - x                                      !! 451       - `-`
494                                                   452 
495       - b\ :sub:`4`                               453       - b\ :sub:`4`
496       - b\ :sub:`3`                               454       - b\ :sub:`3`
497       - b\ :sub:`2`                               455       - b\ :sub:`2`
498       - b\ :sub:`1`                               456       - b\ :sub:`1`
499       - b\ :sub:`0`                               457       - b\ :sub:`0`
500       - g\ :sub:`4`                               458       - g\ :sub:`4`
501       - g\ :sub:`3`                               459       - g\ :sub:`3`
502       - g\ :sub:`2`                               460       - g\ :sub:`2`
503       -                                           461       -
504     * .. _V4L2-PIX-FMT-RGB565:                    462     * .. _V4L2-PIX-FMT-RGB565:
505                                                   463 
506       - ``V4L2_PIX_FMT_RGB565``                   464       - ``V4L2_PIX_FMT_RGB565``
507       - 'RGBP'                                    465       - 'RGBP'
508                                                   466 
509       - g\ :sub:`2`                               467       - g\ :sub:`2`
510       - g\ :sub:`1`                               468       - g\ :sub:`1`
511       - g\ :sub:`0`                               469       - g\ :sub:`0`
512       - b\ :sub:`4`                               470       - b\ :sub:`4`
513       - b\ :sub:`3`                               471       - b\ :sub:`3`
514       - b\ :sub:`2`                               472       - b\ :sub:`2`
515       - b\ :sub:`1`                               473       - b\ :sub:`1`
516       - b\ :sub:`0`                               474       - b\ :sub:`0`
517                                                   475 
518       - r\ :sub:`4`                               476       - r\ :sub:`4`
519       - r\ :sub:`3`                               477       - r\ :sub:`3`
520       - r\ :sub:`2`                               478       - r\ :sub:`2`
521       - r\ :sub:`1`                               479       - r\ :sub:`1`
522       - r\ :sub:`0`                               480       - r\ :sub:`0`
523       - g\ :sub:`5`                               481       - g\ :sub:`5`
524       - g\ :sub:`4`                               482       - g\ :sub:`4`
525       - g\ :sub:`3`                               483       - g\ :sub:`3`
526       -                                           484       -
527     * .. _V4L2-PIX-FMT-ARGB555X:                  485     * .. _V4L2-PIX-FMT-ARGB555X:
528                                                   486 
529       - ``V4L2_PIX_FMT_ARGB555X``                 487       - ``V4L2_PIX_FMT_ARGB555X``
530       - 'AR15' | (1 << 31)                        488       - 'AR15' | (1 << 31)
531                                                   489 
532       - a                                         490       - a
533       - r\ :sub:`4`                               491       - r\ :sub:`4`
534       - r\ :sub:`3`                               492       - r\ :sub:`3`
535       - r\ :sub:`2`                               493       - r\ :sub:`2`
536       - r\ :sub:`1`                               494       - r\ :sub:`1`
537       - r\ :sub:`0`                               495       - r\ :sub:`0`
538       - g\ :sub:`4`                               496       - g\ :sub:`4`
539       - g\ :sub:`3`                               497       - g\ :sub:`3`
540                                                   498 
541       - g\ :sub:`2`                               499       - g\ :sub:`2`
542       - g\ :sub:`1`                               500       - g\ :sub:`1`
543       - g\ :sub:`0`                               501       - g\ :sub:`0`
544       - b\ :sub:`4`                               502       - b\ :sub:`4`
545       - b\ :sub:`3`                               503       - b\ :sub:`3`
546       - b\ :sub:`2`                               504       - b\ :sub:`2`
547       - b\ :sub:`1`                               505       - b\ :sub:`1`
548       - b\ :sub:`0`                               506       - b\ :sub:`0`
549       -                                           507       -
550     * .. _V4L2-PIX-FMT-XRGB555X:                  508     * .. _V4L2-PIX-FMT-XRGB555X:
551                                                   509 
552       - ``V4L2_PIX_FMT_XRGB555X``                 510       - ``V4L2_PIX_FMT_XRGB555X``
553       - 'XR15' | (1 << 31)                        511       - 'XR15' | (1 << 31)
554                                                   512 
555       - x                                      !! 513       - `-`
556       - r\ :sub:`4`                               514       - r\ :sub:`4`
557       - r\ :sub:`3`                               515       - r\ :sub:`3`
558       - r\ :sub:`2`                               516       - r\ :sub:`2`
559       - r\ :sub:`1`                               517       - r\ :sub:`1`
560       - r\ :sub:`0`                               518       - r\ :sub:`0`
561       - g\ :sub:`4`                               519       - g\ :sub:`4`
562       - g\ :sub:`3`                               520       - g\ :sub:`3`
563                                                   521 
564       - g\ :sub:`2`                               522       - g\ :sub:`2`
565       - g\ :sub:`1`                               523       - g\ :sub:`1`
566       - g\ :sub:`0`                               524       - g\ :sub:`0`
567       - b\ :sub:`4`                               525       - b\ :sub:`4`
568       - b\ :sub:`3`                               526       - b\ :sub:`3`
569       - b\ :sub:`2`                               527       - b\ :sub:`2`
570       - b\ :sub:`1`                               528       - b\ :sub:`1`
571       - b\ :sub:`0`                               529       - b\ :sub:`0`
572       -                                           530       -
573     * .. _V4L2-PIX-FMT-RGB565X:                   531     * .. _V4L2-PIX-FMT-RGB565X:
574                                                   532 
575       - ``V4L2_PIX_FMT_RGB565X``                  533       - ``V4L2_PIX_FMT_RGB565X``
576       - 'RGBR'                                    534       - 'RGBR'
577                                                   535 
578       - r\ :sub:`4`                               536       - r\ :sub:`4`
579       - r\ :sub:`3`                               537       - r\ :sub:`3`
580       - r\ :sub:`2`                               538       - r\ :sub:`2`
581       - r\ :sub:`1`                               539       - r\ :sub:`1`
582       - r\ :sub:`0`                               540       - r\ :sub:`0`
583       - g\ :sub:`5`                               541       - g\ :sub:`5`
584       - g\ :sub:`4`                               542       - g\ :sub:`4`
585       - g\ :sub:`3`                               543       - g\ :sub:`3`
586                                                   544 
587       - g\ :sub:`2`                               545       - g\ :sub:`2`
588       - g\ :sub:`1`                               546       - g\ :sub:`1`
589       - g\ :sub:`0`                               547       - g\ :sub:`0`
590       - b\ :sub:`4`                               548       - b\ :sub:`4`
591       - b\ :sub:`3`                               549       - b\ :sub:`3`
592       - b\ :sub:`2`                               550       - b\ :sub:`2`
593       - b\ :sub:`1`                               551       - b\ :sub:`1`
594       - b\ :sub:`0`                               552       - b\ :sub:`0`
595       -                                           553       -
596     * .. _V4L2-PIX-FMT-BGR666:                 !! 554     * .. _V4L2-PIX-FMT-BGR24:
597                                                   555 
598       - ``V4L2_PIX_FMT_BGR666``                !! 556       - ``V4L2_PIX_FMT_BGR24``
599       - 'BGRH'                                 !! 557       - 'BGR3'
600                                                   558 
                                                   >> 559       - b\ :sub:`7`
                                                   >> 560       - b\ :sub:`6`
601       - b\ :sub:`5`                               561       - b\ :sub:`5`
602       - b\ :sub:`4`                               562       - b\ :sub:`4`
603       - b\ :sub:`3`                               563       - b\ :sub:`3`
604       - b\ :sub:`2`                               564       - b\ :sub:`2`
605       - b\ :sub:`1`                               565       - b\ :sub:`1`
606       - b\ :sub:`0`                               566       - b\ :sub:`0`
                                                   >> 567 
                                                   >> 568       - g\ :sub:`7`
                                                   >> 569       - g\ :sub:`6`
607       - g\ :sub:`5`                               570       - g\ :sub:`5`
608       - g\ :sub:`4`                               571       - g\ :sub:`4`
609                                                << 
610       - g\ :sub:`3`                               572       - g\ :sub:`3`
611       - g\ :sub:`2`                               573       - g\ :sub:`2`
612       - g\ :sub:`1`                               574       - g\ :sub:`1`
613       - g\ :sub:`0`                               575       - g\ :sub:`0`
                                                   >> 576 
                                                   >> 577       - r\ :sub:`7`
                                                   >> 578       - r\ :sub:`6`
614       - r\ :sub:`5`                               579       - r\ :sub:`5`
615       - r\ :sub:`4`                               580       - r\ :sub:`4`
616       - r\ :sub:`3`                               581       - r\ :sub:`3`
617       - r\ :sub:`2`                               582       - r\ :sub:`2`
618                                                << 
619       - r\ :sub:`1`                               583       - r\ :sub:`1`
620       - r\ :sub:`0`                               584       - r\ :sub:`0`
621       - x                                      << 
622       - x                                      << 
623       - x                                      << 
624       - x                                      << 
625       - x                                      << 
626       - x                                      << 
627                                                << 
628       - x                                      << 
629       - x                                      << 
630       - x                                      << 
631       - x                                      << 
632       - x                                      << 
633       - x                                      << 
634       - x                                      << 
635       - x                                      << 
636                                                << 
637 .. raw:: latex                                 << 
638                                                << 
639     \endgroup                                  << 
640                                                << 
641                                                << 
642 8 Bits Per Component                           << 
643 ====================                           << 
644                                                << 
645 These formats store an RGB triplet in three or << 
646 on the order of the RGB components as stored i << 
647 of bits per pixel. For instance, RGB24 format  << 
648 R\ :sub:`6` R\ :sub:`5` R\ :sub:`4` R\ :sub:`3 << 
649 R\ :sub:`0`] in the first byte, [G\ :sub:`7` G << 
650 G\ :sub:`3` G\ :sub:`2` G\ :sub:`1` G\ :sub:`0 << 
651 [B\ :sub:`7` B\ :sub:`6` B\ :sub:`5` B\ :sub:` << 
652 B\ :sub:`1` B\ :sub:`0`] in the third byte. Th << 
653 nomenclature that instead use the order of com << 
654 32-bit little endian word.                     << 
655                                                << 
656 .. raw:: latex                                 << 
657                                                << 
658     \small                                     << 
659                                                << 
660 .. flat-table:: RGB Formats With 8 Bits Per Co << 
661     :header-rows:  1                           << 
662     :stub-columns: 0                           << 
663                                                << 
664     * - Identifier                             << 
665       - Code                                   << 
666       - Byte 0 in memory                       << 
667       - Byte 1                                 << 
668       - Byte 2                                 << 
669       - Byte 3                                 << 
670     * .. _V4L2-PIX-FMT-BGR24:                  << 
671                                                << 
672       - ``V4L2_PIX_FMT_BGR24``                 << 
673       - 'BGR3'                                 << 
674                                                << 
675       - B\ :sub:`7-0`                          << 
676       - G\ :sub:`7-0`                          << 
677       - R\ :sub:`7-0`                          << 
678       -                                           585       -
679     * .. _V4L2-PIX-FMT-RGB24:                     586     * .. _V4L2-PIX-FMT-RGB24:
680                                                   587 
681       - ``V4L2_PIX_FMT_RGB24``                    588       - ``V4L2_PIX_FMT_RGB24``
682       - 'RGB3'                                    589       - 'RGB3'
683                                                   590 
684       - R\ :sub:`7-0`                          !! 591       - r\ :sub:`7`
685       - G\ :sub:`7-0`                          !! 592       - r\ :sub:`6`
686       - B\ :sub:`7-0`                          !! 593       - r\ :sub:`5`
687       -                                        !! 594       - r\ :sub:`4`
688     * .. _V4L2-PIX-FMT-ABGR32:                 !! 595       - r\ :sub:`3`
689                                                !! 596       - r\ :sub:`2`
690       - ``V4L2_PIX_FMT_ABGR32``                !! 597       - r\ :sub:`1`
691       - 'AR24'                                 !! 598       - r\ :sub:`0`
692                                                << 
693       - B\ :sub:`7-0`                          << 
694       - G\ :sub:`7-0`                          << 
695       - R\ :sub:`7-0`                          << 
696       - A\ :sub:`7-0`                          << 
697     * .. _V4L2-PIX-FMT-XBGR32:                 << 
698                                                << 
699       - ``V4L2_PIX_FMT_XBGR32``                << 
700       - 'XR24'                                 << 
701                                                << 
702       - B\ :sub:`7-0`                          << 
703       - G\ :sub:`7-0`                          << 
704       - R\ :sub:`7-0`                          << 
705       - X\ :sub:`7-0`                          << 
706     * .. _V4L2-PIX-FMT-BGRA32:                 << 
707                                                << 
708       - ``V4L2_PIX_FMT_BGRA32``                << 
709       - 'RA24'                                 << 
710                                                << 
711       - A\ :sub:`7-0`                          << 
712       - B\ :sub:`7-0`                          << 
713       - G\ :sub:`7-0`                          << 
714       - R\ :sub:`7-0`                          << 
715     * .. _V4L2-PIX-FMT-BGRX32:                 << 
716                                                << 
717       - ``V4L2_PIX_FMT_BGRX32``                << 
718       - 'RX24'                                 << 
719                                                << 
720       - X\ :sub:`7-0`                          << 
721       - B\ :sub:`7-0`                          << 
722       - G\ :sub:`7-0`                          << 
723       - R\ :sub:`7-0`                          << 
724     * .. _V4L2-PIX-FMT-RGBA32:                 << 
725                                                << 
726       - ``V4L2_PIX_FMT_RGBA32``                << 
727       - 'AB24'                                 << 
728                                                << 
729       - R\ :sub:`7-0`                          << 
730       - G\ :sub:`7-0`                          << 
731       - B\ :sub:`7-0`                          << 
732       - A\ :sub:`7-0`                          << 
733     * .. _V4L2-PIX-FMT-RGBX32:                 << 
734                                                << 
735       - ``V4L2_PIX_FMT_RGBX32``                << 
736       - 'XB24'                                 << 
737                                                << 
738       - R\ :sub:`7-0`                          << 
739       - G\ :sub:`7-0`                          << 
740       - B\ :sub:`7-0`                          << 
741       - X\ :sub:`7-0`                          << 
742     * .. _V4L2-PIX-FMT-ARGB32:                 << 
743                                                << 
744       - ``V4L2_PIX_FMT_ARGB32``                << 
745       - 'BA24'                                 << 
746                                                << 
747       - A\ :sub:`7-0`                          << 
748       - R\ :sub:`7-0`                          << 
749       - G\ :sub:`7-0`                          << 
750       - B\ :sub:`7-0`                          << 
751     * .. _V4L2-PIX-FMT-XRGB32:                 << 
752                                                << 
753       - ``V4L2_PIX_FMT_XRGB32``                << 
754       - 'BX24'                                 << 
755                                                << 
756       - X\ :sub:`7-0`                          << 
757       - R\ :sub:`7-0`                          << 
758       - G\ :sub:`7-0`                          << 
759       - B\ :sub:`7-0`                          << 
760                                                << 
761 .. raw:: latex                                 << 
762                                                << 
763     \normalsize                                << 
764                                                << 
765                                                << 
766 10 Bits Per Component                          << 
767 =====================                          << 
768                                                << 
769 These formats store a 30-bit RGB triplet with  << 
770 bytes. They are named based on the order of th << 
771 32-bit word, which is then stored in memory in << 
772 (unless otherwise noted by the presence of bit << 
773 number of bits for each component.             << 
774                                                << 
775 .. raw:: latex                                 << 
776                                                << 
777     \begingroup                                << 
778     \tiny                                      << 
779     \setlength{\tabcolsep}{2pt}                << 
780                                                << 
781 .. tabularcolumns:: |p{3.2cm}|p{0.8cm}|p{0.22c << 
782                                                << 
783                                                   599 
784 .. flat-table:: RGB Formats 10 Bits Per Color  !! 600       - g\ :sub:`7`
785     :header-rows:  2                           !! 601       - g\ :sub:`6`
786     :stub-columns: 0                           !! 602       - g\ :sub:`5`
                                                   >> 603       - g\ :sub:`4`
                                                   >> 604       - g\ :sub:`3`
                                                   >> 605       - g\ :sub:`2`
                                                   >> 606       - g\ :sub:`1`
                                                   >> 607       - g\ :sub:`0`
787                                                   608 
788     * - Identifier                             !! 609       - b\ :sub:`7`
789       - Code                                   !! 610       - b\ :sub:`6`
790       - :cspan:`7` Byte 0 in memory            !! 611       - b\ :sub:`5`
791       - :cspan:`7` Byte 1                      !! 612       - b\ :sub:`4`
792       - :cspan:`7` Byte 2                      !! 613       - b\ :sub:`3`
793       - :cspan:`7` Byte 3                      !! 614       - b\ :sub:`2`
794     * -                                        !! 615       - b\ :sub:`1`
                                                   >> 616       - b\ :sub:`0`
795       -                                           617       -
796       - 7                                      !! 618     * .. _V4L2-PIX-FMT-BGR666:
797       - 6                                      << 
798       - 5                                      << 
799       - 4                                      << 
800       - 3                                      << 
801       - 2                                      << 
802       - 1                                      << 
803       - 0                                      << 
804                                                << 
805       - 7                                      << 
806       - 6                                      << 
807       - 5                                      << 
808       - 4                                      << 
809       - 3                                      << 
810       - 2                                      << 
811       - 1                                      << 
812       - 0                                      << 
813                                                << 
814       - 7                                      << 
815       - 6                                      << 
816       - 5                                      << 
817       - 4                                      << 
818       - 3                                      << 
819       - 2                                      << 
820       - 1                                      << 
821       - 0                                      << 
822                                                << 
823       - 7                                      << 
824       - 6                                      << 
825       - 5                                      << 
826       - 4                                      << 
827       - 3                                      << 
828       - 2                                      << 
829       - 1                                      << 
830       - 0                                      << 
831     * .. _V4L2-PIX-FMT-RGBX1010102:            << 
832                                                   619 
833       - ``V4L2_PIX_FMT_RGBX1010102``           !! 620       - ``V4L2_PIX_FMT_BGR666``
834       - 'RX30'                                 !! 621       - 'BGRH'
835                                                   622 
836       - b\ :sub:`5`                               623       - b\ :sub:`5`
837       - b\ :sub:`4`                               624       - b\ :sub:`4`
838       - b\ :sub:`3`                               625       - b\ :sub:`3`
839       - b\ :sub:`2`                               626       - b\ :sub:`2`
840       - b\ :sub:`1`                               627       - b\ :sub:`1`
841       - b\ :sub:`0`                               628       - b\ :sub:`0`
842       - x                                      !! 629       - g\ :sub:`5`
843       - x                                      !! 630       - g\ :sub:`4`
844                                                   631 
845       - g\ :sub:`3`                               632       - g\ :sub:`3`
846       - g\ :sub:`2`                               633       - g\ :sub:`2`
847       - g\ :sub:`1`                               634       - g\ :sub:`1`
848       - g\ :sub:`0`                               635       - g\ :sub:`0`
849       - b\ :sub:`9`                            !! 636       - r\ :sub:`5`
850       - b\ :sub:`8`                            !! 637       - r\ :sub:`4`
851       - b\ :sub:`7`                            !! 638       - r\ :sub:`3`
852       - b\ :sub:`6`                            !! 639       - r\ :sub:`2`
853                                                   640 
854       - r\ :sub:`1`                               641       - r\ :sub:`1`
855       - r\ :sub:`0`                               642       - r\ :sub:`0`
856       - g\ :sub:`9`                            !! 643       - `-`
857       - g\ :sub:`8`                            !! 644       - `-`
                                                   >> 645       - `-`
                                                   >> 646       - `-`
                                                   >> 647       - `-`
                                                   >> 648       - `-`
                                                   >> 649 
                                                   >> 650       - `-`
                                                   >> 651       - `-`
                                                   >> 652       - `-`
                                                   >> 653       - `-`
                                                   >> 654       - `-`
                                                   >> 655       - `-`
                                                   >> 656       - `-`
                                                   >> 657       - `-`
                                                   >> 658     * .. _V4L2-PIX-FMT-ABGR32:
                                                   >> 659 
                                                   >> 660       - ``V4L2_PIX_FMT_ABGR32``
                                                   >> 661       - 'AR24'
                                                   >> 662 
                                                   >> 663       - b\ :sub:`7`
                                                   >> 664       - b\ :sub:`6`
                                                   >> 665       - b\ :sub:`5`
                                                   >> 666       - b\ :sub:`4`
                                                   >> 667       - b\ :sub:`3`
                                                   >> 668       - b\ :sub:`2`
                                                   >> 669       - b\ :sub:`1`
                                                   >> 670       - b\ :sub:`0`
                                                   >> 671 
858       - g\ :sub:`7`                               672       - g\ :sub:`7`
859       - g\ :sub:`6`                               673       - g\ :sub:`6`
860       - g\ :sub:`5`                               674       - g\ :sub:`5`
861       - g\ :sub:`4`                               675       - g\ :sub:`4`
                                                   >> 676       - g\ :sub:`3`
                                                   >> 677       - g\ :sub:`2`
                                                   >> 678       - g\ :sub:`1`
                                                   >> 679       - g\ :sub:`0`
862                                                   680 
863       - r\ :sub:`9`                            << 
864       - r\ :sub:`8`                            << 
865       - r\ :sub:`7`                               681       - r\ :sub:`7`
866       - r\ :sub:`6`                               682       - r\ :sub:`6`
867       - r\ :sub:`5`                               683       - r\ :sub:`5`
868       - r\ :sub:`4`                               684       - r\ :sub:`4`
869       - r\ :sub:`3`                               685       - r\ :sub:`3`
870       - r\ :sub:`2`                               686       - r\ :sub:`2`
871     * .. _V4L2-PIX-FMT-RGBA1010102:            !! 687       - r\ :sub:`1`
                                                   >> 688       - r\ :sub:`0`
872                                                   689 
873       - ``V4L2_PIX_FMT_RGBA1010102``           !! 690       - a\ :sub:`7`
874       - 'RA30'                                 !! 691       - a\ :sub:`6`
                                                   >> 692       - a\ :sub:`5`
                                                   >> 693       - a\ :sub:`4`
                                                   >> 694       - a\ :sub:`3`
                                                   >> 695       - a\ :sub:`2`
                                                   >> 696       - a\ :sub:`1`
                                                   >> 697       - a\ :sub:`0`
                                                   >> 698     * .. _V4L2-PIX-FMT-XBGR32:
875                                                   699 
                                                   >> 700       - ``V4L2_PIX_FMT_XBGR32``
                                                   >> 701       - 'XR24'
                                                   >> 702 
                                                   >> 703       - b\ :sub:`7`
                                                   >> 704       - b\ :sub:`6`
876       - b\ :sub:`5`                               705       - b\ :sub:`5`
877       - b\ :sub:`4`                               706       - b\ :sub:`4`
878       - b\ :sub:`3`                               707       - b\ :sub:`3`
879       - b\ :sub:`2`                               708       - b\ :sub:`2`
880       - b\ :sub:`1`                               709       - b\ :sub:`1`
881       - b\ :sub:`0`                               710       - b\ :sub:`0`
882       - a\ :sub:`1`                            << 
883       - a\ :sub:`0`                            << 
884                                                   711 
                                                   >> 712       - g\ :sub:`7`
                                                   >> 713       - g\ :sub:`6`
                                                   >> 714       - g\ :sub:`5`
                                                   >> 715       - g\ :sub:`4`
885       - g\ :sub:`3`                               716       - g\ :sub:`3`
886       - g\ :sub:`2`                               717       - g\ :sub:`2`
887       - g\ :sub:`1`                               718       - g\ :sub:`1`
888       - g\ :sub:`0`                               719       - g\ :sub:`0`
889       - b\ :sub:`9`                            << 
890       - b\ :sub:`8`                            << 
891       - b\ :sub:`7`                            << 
892       - b\ :sub:`6`                            << 
893                                                   720 
                                                   >> 721       - r\ :sub:`7`
                                                   >> 722       - r\ :sub:`6`
                                                   >> 723       - r\ :sub:`5`
                                                   >> 724       - r\ :sub:`4`
                                                   >> 725       - r\ :sub:`3`
                                                   >> 726       - r\ :sub:`2`
894       - r\ :sub:`1`                               727       - r\ :sub:`1`
895       - r\ :sub:`0`                               728       - r\ :sub:`0`
896       - g\ :sub:`9`                            !! 729 
897       - g\ :sub:`8`                            !! 730       - `-`
                                                   >> 731       - `-`
                                                   >> 732       - `-`
                                                   >> 733       - `-`
                                                   >> 734       - `-`
                                                   >> 735       - `-`
                                                   >> 736       - `-`
                                                   >> 737       - `-`
                                                   >> 738     * .. _V4L2-PIX-FMT-BGRA32:
                                                   >> 739 
                                                   >> 740       - ``V4L2_PIX_FMT_BGRA32``
                                                   >> 741       - 'RA24'
                                                   >> 742 
                                                   >> 743       - a\ :sub:`7`
                                                   >> 744       - a\ :sub:`6`
                                                   >> 745       - a\ :sub:`5`
                                                   >> 746       - a\ :sub:`4`
                                                   >> 747       - a\ :sub:`3`
                                                   >> 748       - a\ :sub:`2`
                                                   >> 749       - a\ :sub:`1`
                                                   >> 750       - a\ :sub:`0`
                                                   >> 751 
                                                   >> 752       - b\ :sub:`7`
                                                   >> 753       - b\ :sub:`6`
                                                   >> 754       - b\ :sub:`5`
                                                   >> 755       - b\ :sub:`4`
                                                   >> 756       - b\ :sub:`3`
                                                   >> 757       - b\ :sub:`2`
                                                   >> 758       - b\ :sub:`1`
                                                   >> 759       - b\ :sub:`0`
                                                   >> 760 
898       - g\ :sub:`7`                               761       - g\ :sub:`7`
899       - g\ :sub:`6`                               762       - g\ :sub:`6`
900       - g\ :sub:`5`                               763       - g\ :sub:`5`
901       - g\ :sub:`4`                               764       - g\ :sub:`4`
                                                   >> 765       - g\ :sub:`3`
                                                   >> 766       - g\ :sub:`2`
                                                   >> 767       - g\ :sub:`1`
                                                   >> 768       - g\ :sub:`0`
902                                                   769 
903       - r\ :sub:`9`                            << 
904       - r\ :sub:`8`                            << 
905       - r\ :sub:`7`                               770       - r\ :sub:`7`
906       - r\ :sub:`6`                               771       - r\ :sub:`6`
907       - r\ :sub:`5`                               772       - r\ :sub:`5`
908       - r\ :sub:`4`                               773       - r\ :sub:`4`
909       - r\ :sub:`3`                               774       - r\ :sub:`3`
910       - r\ :sub:`2`                               775       - r\ :sub:`2`
911     * .. _V4L2-PIX-FMT-ARGB2101010:            !! 776       - r\ :sub:`1`
                                                   >> 777       - r\ :sub:`0`
                                                   >> 778     * .. _V4L2-PIX-FMT-BGRX32:
                                                   >> 779 
                                                   >> 780       - ``V4L2_PIX_FMT_BGRX32``
                                                   >> 781       - 'RX24'
912                                                   782 
913       - ``V4L2_PIX_FMT_ARGB2101010``           !! 783       - `-`
914       - 'AR30'                                 !! 784       - `-`
                                                   >> 785       - `-`
                                                   >> 786       - `-`
                                                   >> 787       - `-`
                                                   >> 788       - `-`
                                                   >> 789       - `-`
                                                   >> 790       - `-`
915                                                   791 
916       - b\ :sub:`7`                               792       - b\ :sub:`7`
917       - b\ :sub:`6`                               793       - b\ :sub:`6`
918       - b\ :sub:`5`                               794       - b\ :sub:`5`
919       - b\ :sub:`4`                               795       - b\ :sub:`4`
920       - b\ :sub:`3`                               796       - b\ :sub:`3`
921       - b\ :sub:`2`                               797       - b\ :sub:`2`
922       - b\ :sub:`1`                               798       - b\ :sub:`1`
923       - b\ :sub:`0`                               799       - b\ :sub:`0`
924                                                   800 
                                                   >> 801       - g\ :sub:`7`
                                                   >> 802       - g\ :sub:`6`
925       - g\ :sub:`5`                               803       - g\ :sub:`5`
926       - g\ :sub:`4`                               804       - g\ :sub:`4`
927       - g\ :sub:`3`                               805       - g\ :sub:`3`
928       - g\ :sub:`2`                               806       - g\ :sub:`2`
929       - g\ :sub:`1`                               807       - g\ :sub:`1`
930       - g\ :sub:`0`                               808       - g\ :sub:`0`
931       - b\ :sub:`9`                            << 
932       - b\ :sub:`8`                            << 
933                                                   809 
                                                   >> 810       - r\ :sub:`7`
                                                   >> 811       - r\ :sub:`6`
                                                   >> 812       - r\ :sub:`5`
                                                   >> 813       - r\ :sub:`4`
                                                   >> 814       - r\ :sub:`3`
                                                   >> 815       - r\ :sub:`2`
                                                   >> 816       - r\ :sub:`1`
                                                   >> 817       - r\ :sub:`0`
                                                   >> 818     * .. _V4L2-PIX-FMT-RGBA32:
                                                   >> 819 
                                                   >> 820       - ``V4L2_PIX_FMT_RGBA32``
                                                   >> 821       - 'AB24'
                                                   >> 822 
                                                   >> 823       - r\ :sub:`7`
                                                   >> 824       - r\ :sub:`6`
                                                   >> 825       - r\ :sub:`5`
                                                   >> 826       - r\ :sub:`4`
934       - r\ :sub:`3`                               827       - r\ :sub:`3`
935       - r\ :sub:`2`                               828       - r\ :sub:`2`
936       - r\ :sub:`1`                               829       - r\ :sub:`1`
937       - r\ :sub:`0`                               830       - r\ :sub:`0`
938       - g\ :sub:`9`                            !! 831 
939       - g\ :sub:`8`                            << 
940       - g\ :sub:`7`                               832       - g\ :sub:`7`
941       - g\ :sub:`6`                               833       - g\ :sub:`6`
                                                   >> 834       - g\ :sub:`5`
                                                   >> 835       - g\ :sub:`4`
                                                   >> 836       - g\ :sub:`3`
                                                   >> 837       - g\ :sub:`2`
                                                   >> 838       - g\ :sub:`1`
                                                   >> 839       - g\ :sub:`0`
                                                   >> 840 
                                                   >> 841       - b\ :sub:`7`
                                                   >> 842       - b\ :sub:`6`
                                                   >> 843       - b\ :sub:`5`
                                                   >> 844       - b\ :sub:`4`
                                                   >> 845       - b\ :sub:`3`
                                                   >> 846       - b\ :sub:`2`
                                                   >> 847       - b\ :sub:`1`
                                                   >> 848       - b\ :sub:`0`
942                                                   849 
                                                   >> 850       - a\ :sub:`7`
                                                   >> 851       - a\ :sub:`6`
                                                   >> 852       - a\ :sub:`5`
                                                   >> 853       - a\ :sub:`4`
                                                   >> 854       - a\ :sub:`3`
                                                   >> 855       - a\ :sub:`2`
943       - a\ :sub:`1`                               856       - a\ :sub:`1`
944       - a\ :sub:`0`                               857       - a\ :sub:`0`
945       - r\ :sub:`9`                            !! 858     * .. _V4L2-PIX-FMT-RGBX32:
946       - r\ :sub:`8`                            !! 859 
                                                   >> 860       - ``V4L2_PIX_FMT_RGBX32``
                                                   >> 861       - 'XB24'
                                                   >> 862 
947       - r\ :sub:`7`                               863       - r\ :sub:`7`
948       - r\ :sub:`6`                               864       - r\ :sub:`6`
949       - r\ :sub:`5`                               865       - r\ :sub:`5`
950       - r\ :sub:`4`                               866       - r\ :sub:`4`
                                                   >> 867       - r\ :sub:`3`
                                                   >> 868       - r\ :sub:`2`
                                                   >> 869       - r\ :sub:`1`
                                                   >> 870       - r\ :sub:`0`
951                                                   871 
952 .. raw:: latex                                 !! 872       - g\ :sub:`7`
                                                   >> 873       - g\ :sub:`6`
                                                   >> 874       - g\ :sub:`5`
                                                   >> 875       - g\ :sub:`4`
                                                   >> 876       - g\ :sub:`3`
                                                   >> 877       - g\ :sub:`2`
                                                   >> 878       - g\ :sub:`1`
                                                   >> 879       - g\ :sub:`0`
953                                                   880 
954     \endgroup                                  !! 881       - b\ :sub:`7`
                                                   >> 882       - b\ :sub:`6`
                                                   >> 883       - b\ :sub:`5`
                                                   >> 884       - b\ :sub:`4`
                                                   >> 885       - b\ :sub:`3`
                                                   >> 886       - b\ :sub:`2`
                                                   >> 887       - b\ :sub:`1`
                                                   >> 888       - b\ :sub:`0`
955                                                   889 
956 12 Bits Per Component                          !! 890       - `-`
957 ==============================                 !! 891       - `-`
                                                   >> 892       - `-`
                                                   >> 893       - `-`
                                                   >> 894       - `-`
                                                   >> 895       - `-`
                                                   >> 896       - `-`
                                                   >> 897       - `-`
                                                   >> 898     * .. _V4L2-PIX-FMT-ARGB32:
958                                                   899 
959 These formats store an RGB triplet in six or e !! 900       - ``V4L2_PIX_FMT_ARGB32``
960 Expand the bits per component to 16 bits, data !! 901       - 'BA24'
961 arranged in little endian order.               << 
962                                                   902 
963 .. raw:: latex                                 !! 903       - a\ :sub:`7`
                                                   >> 904       - a\ :sub:`6`
                                                   >> 905       - a\ :sub:`5`
                                                   >> 906       - a\ :sub:`4`
                                                   >> 907       - a\ :sub:`3`
                                                   >> 908       - a\ :sub:`2`
                                                   >> 909       - a\ :sub:`1`
                                                   >> 910       - a\ :sub:`0`
964                                                   911 
965     \small                                     !! 912       - r\ :sub:`7`
                                                   >> 913       - r\ :sub:`6`
                                                   >> 914       - r\ :sub:`5`
                                                   >> 915       - r\ :sub:`4`
                                                   >> 916       - r\ :sub:`3`
                                                   >> 917       - r\ :sub:`2`
                                                   >> 918       - r\ :sub:`1`
                                                   >> 919       - r\ :sub:`0`
966                                                   920 
967 .. flat-table:: RGB Formats With 12 Bits Per C !! 921       - g\ :sub:`7`
968     :header-rows:  1                           !! 922       - g\ :sub:`6`
                                                   >> 923       - g\ :sub:`5`
                                                   >> 924       - g\ :sub:`4`
                                                   >> 925       - g\ :sub:`3`
                                                   >> 926       - g\ :sub:`2`
                                                   >> 927       - g\ :sub:`1`
                                                   >> 928       - g\ :sub:`0`
969                                                   929 
970     * - Identifier                             !! 930       - b\ :sub:`7`
971       - Code                                   !! 931       - b\ :sub:`6`
972       - Byte 1-0                               !! 932       - b\ :sub:`5`
973       - Byte 3-2                               !! 933       - b\ :sub:`4`
974       - Byte 5-4                               !! 934       - b\ :sub:`3`
975       - Byte 7-6                               !! 935       - b\ :sub:`2`
976     * .. _V4L2-PIX-FMT-BGR48-12:               !! 936       - b\ :sub:`1`
977                                                !! 937       - b\ :sub:`0`
978       - ``V4L2_PIX_FMT_BGR48_12``              !! 938     * .. _V4L2-PIX-FMT-XRGB32:
979       - 'B312'                                 !! 939 
980                                                !! 940       - ``V4L2_PIX_FMT_XRGB32``
981       - B\ :sub:`15-4`                         !! 941       - 'BX24'
982       - G\ :sub:`15-4`                         !! 942 
983       - R\ :sub:`15-4`                         !! 943       - `-`
984       -                                        !! 944       - `-`
985     * .. _V4L2-PIX-FMT-ABGR64-12:              !! 945       - `-`
986                                                !! 946       - `-`
987       - ``V4L2_PIX_FMT_ABGR64_12``             !! 947       - `-`
988       - 'B412'                                 !! 948       - `-`
989                                                !! 949       - `-`
990       - B\ :sub:`15-4`                         !! 950       - `-`
991       - G\ :sub:`15-4`                         !! 951 
992       - R\ :sub:`15-4`                         !! 952       - r\ :sub:`7`
993       - A\ :sub:`15-4`                         !! 953       - r\ :sub:`6`
                                                   >> 954       - r\ :sub:`5`
                                                   >> 955       - r\ :sub:`4`
                                                   >> 956       - r\ :sub:`3`
                                                   >> 957       - r\ :sub:`2`
                                                   >> 958       - r\ :sub:`1`
                                                   >> 959       - r\ :sub:`0`
                                                   >> 960 
                                                   >> 961       - g\ :sub:`7`
                                                   >> 962       - g\ :sub:`6`
                                                   >> 963       - g\ :sub:`5`
                                                   >> 964       - g\ :sub:`4`
                                                   >> 965       - g\ :sub:`3`
                                                   >> 966       - g\ :sub:`2`
                                                   >> 967       - g\ :sub:`1`
                                                   >> 968       - g\ :sub:`0`
                                                   >> 969 
                                                   >> 970       - b\ :sub:`7`
                                                   >> 971       - b\ :sub:`6`
                                                   >> 972       - b\ :sub:`5`
                                                   >> 973       - b\ :sub:`4`
                                                   >> 974       - b\ :sub:`3`
                                                   >> 975       - b\ :sub:`2`
                                                   >> 976       - b\ :sub:`1`
                                                   >> 977       - b\ :sub:`0`
994                                                   978 
995 .. raw:: latex                                    979 .. raw:: latex
996                                                   980 
997     \normalsize                                !! 981     \endgroup
998                                                   982 
999 16 Bits Per Component                          !! 983 .. note:: Bit 7 is the most significant bit.
1000 =====================                         !! 984 
                                                   >> 985 The usage and value of the alpha bits (a) in the ARGB and ABGR formats
                                                   >> 986 (collectively referred to as alpha formats) depend on the device type
                                                   >> 987 and hardware operation. :ref:`Capture <capture>` devices (including
                                                   >> 988 capture queues of mem-to-mem devices) fill the alpha component in
                                                   >> 989 memory. When the device outputs an alpha channel the alpha component
                                                   >> 990 will have a meaningful value. Otherwise, when the device doesn't output
                                                   >> 991 an alpha channel but can set the alpha bit to a user-configurable value,
                                                   >> 992 the :ref:`V4L2_CID_ALPHA_COMPONENT <v4l2-alpha-component>` control
                                                   >> 993 is used to specify that alpha value, and the alpha component of all
                                                   >> 994 pixels will be set to the value specified by that control. Otherwise a
                                                   >> 995 corresponding format without an alpha component (XRGB or XBGR) must be
                                                   >> 996 used instead of an alpha format.
                                                   >> 997 
                                                   >> 998 :ref:`Output <output>` devices (including output queues of mem-to-mem
                                                   >> 999 devices and :ref:`video output overlay <osd>` devices) read the alpha
                                                   >> 1000 component from memory. When the device processes the alpha channel the
                                                   >> 1001 alpha component must be filled with meaningful values by applications.
                                                   >> 1002 Otherwise a corresponding format without an alpha component (XRGB or
                                                   >> 1003 XBGR) must be used instead of an alpha format.
                                                   >> 1004 
                                                   >> 1005 The XRGB and XBGR formats contain undefined bits (-). Applications,
                                                   >> 1006 devices and drivers must ignore those bits, for both
                                                   >> 1007 :ref:`capture` and :ref:`output` devices.
                                                   >> 1008 
                                                   >> 1009 **Byte Order.**
                                                   >> 1010 Each cell is one byte.
1001                                                  1011 
1002 These formats store an RGB triplet in six byt << 
1003 stored in memory in little endian byte order. << 
1004 of the RGB components as stored in memory. Fo << 
1005 :sub:`7:0` and R\ :sub:`15:8` in bytes 0 and  << 
1006 the DRM format nomenclature that instead uses << 
1007 the 48-bits little endian word.               << 
1008                                                  1012 
1009 .. raw:: latex                                   1013 .. raw:: latex
1010                                                  1014 
1011     \small                                       1015     \small
1012                                                  1016 
1013 .. flat-table:: RGB Formats With 16 Bits Per  !! 1017 .. 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}|
1014     :header-rows:  1                          << 
1015                                                  1018 
1016     * - Identifier                            !! 1019 .. flat-table:: RGB byte order
1017       - Code                                  !! 1020     :header-rows:  0
1018       - Byte 0                                !! 1021     :stub-columns: 0
1019       - Byte 1                                !! 1022     :widths:       11 3 3 3 3 3 3 3 3 3 3 3 3
1020       - Byte 2                                !! 1023 
1021       - Byte 3                                !! 1024     * - start + 0:
1022       - Byte 4                                !! 1025       - B\ :sub:`00`
1023       - Byte 5                                !! 1026       - G\ :sub:`00`
1024                                               !! 1027       - R\ :sub:`00`
1025     * .. _V4L2-PIX-FMT-BGR48:                 !! 1028       - B\ :sub:`01`
1026                                               !! 1029       - G\ :sub:`01`
1027       - ``V4L2_PIX_FMT_BGR48``                !! 1030       - R\ :sub:`01`
1028       - 'BGR6'                                !! 1031       - B\ :sub:`02`
1029                                               !! 1032       - G\ :sub:`02`
1030       - B\ :sub:`7-0`                         !! 1033       - R\ :sub:`02`
1031       - B\ :sub:`15-8`                        !! 1034       - B\ :sub:`03`
1032       - G\ :sub:`7-0`                         !! 1035       - G\ :sub:`03`
1033       - G\ :sub:`15-8`                        !! 1036       - R\ :sub:`03`
1034       - R\ :sub:`7-0`                         !! 1037     * - start + 12:
1035       - R\ :sub:`15-8`                        !! 1038       - B\ :sub:`10`
1036                                               !! 1039       - G\ :sub:`10`
1037     * .. _V4L2-PIX-FMT-RGB48:                 !! 1040       - R\ :sub:`10`
1038                                               !! 1041       - B\ :sub:`11`
1039       - ``V4L2_PIX_FMT_RGB48``                !! 1042       - G\ :sub:`11`
1040       - 'RGB6'                                !! 1043       - R\ :sub:`11`
1041                                               !! 1044       - B\ :sub:`12`
1042       - R\ :sub:`7-0`                         !! 1045       - G\ :sub:`12`
1043       - R\ :sub:`15-8`                        !! 1046       - R\ :sub:`12`
1044       - G\ :sub:`7-0`                         !! 1047       - B\ :sub:`13`
1045       - G\ :sub:`15-8`                        !! 1048       - G\ :sub:`13`
1046       - B\ :sub:`7-0`                         !! 1049       - R\ :sub:`13`
1047       - B\ :sub:`15-8`                        !! 1050     * - start + 24:
                                                   >> 1051       - B\ :sub:`20`
                                                   >> 1052       - G\ :sub:`20`
                                                   >> 1053       - R\ :sub:`20`
                                                   >> 1054       - B\ :sub:`21`
                                                   >> 1055       - G\ :sub:`21`
                                                   >> 1056       - R\ :sub:`21`
                                                   >> 1057       - B\ :sub:`22`
                                                   >> 1058       - G\ :sub:`22`
                                                   >> 1059       - R\ :sub:`22`
                                                   >> 1060       - B\ :sub:`23`
                                                   >> 1061       - G\ :sub:`23`
                                                   >> 1062       - R\ :sub:`23`
                                                   >> 1063     * - start + 36:
                                                   >> 1064       - B\ :sub:`30`
                                                   >> 1065       - G\ :sub:`30`
                                                   >> 1066       - R\ :sub:`30`
                                                   >> 1067       - B\ :sub:`31`
                                                   >> 1068       - G\ :sub:`31`
                                                   >> 1069       - R\ :sub:`31`
                                                   >> 1070       - B\ :sub:`32`
                                                   >> 1071       - G\ :sub:`32`
                                                   >> 1072       - R\ :sub:`32`
                                                   >> 1073       - B\ :sub:`33`
                                                   >> 1074       - G\ :sub:`33`
                                                   >> 1075       - R\ :sub:`33`
1048                                                  1076 
1049 .. raw:: latex                                   1077 .. raw:: latex
1050                                                  1078 
1051     \normalsize                                  1079     \normalsize
1052                                                  1080 
1053 Deprecated RGB Formats                        !! 1081 Formats defined in :ref:`pixfmt-rgb-deprecated` are deprecated and
1054 ======================                        !! 1082 must not be used by new drivers. They are documented here for reference.
                                                   >> 1083 The meaning of their alpha bits ``(a)`` are ill-defined and interpreted as in
                                                   >> 1084 either the corresponding ARGB or XRGB format, depending on the driver.
1055                                                  1085 
1056 Formats defined in :ref:`pixfmt-rgb-deprecate << 
1057 used by new drivers. They are documented here << 
1058 their alpha bits ``(a)`` is ill-defined and t << 
1059 the corresponding ARGB or XRGB format, depend << 
1060                                                  1086 
1061 .. raw:: latex                                   1087 .. raw:: latex
1062                                                  1088 
1063     \begingroup                                  1089     \begingroup
1064     \tiny                                        1090     \tiny
1065     \setlength{\tabcolsep}{2pt}                  1091     \setlength{\tabcolsep}{2pt}
1066                                                  1092 
1067 .. tabularcolumns:: |p{2.6cm}|p{0.70cm}|p{0.2    1093 .. tabularcolumns:: |p{2.6cm}|p{0.70cm}|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}|
1068                                                  1094 
1069 .. _pixfmt-rgb-deprecated:                       1095 .. _pixfmt-rgb-deprecated:
1070                                                  1096 
1071 .. flat-table:: Deprecated Packed RGB Image F    1097 .. flat-table:: Deprecated Packed RGB Image Formats
1072     :header-rows:  2                             1098     :header-rows:  2
1073     :stub-columns: 0                             1099     :stub-columns: 0
1074                                                  1100 
1075     * - Identifier                               1101     * - Identifier
1076       - Code                                     1102       - Code
1077       - :cspan:`7` Byte 0 in memory              1103       - :cspan:`7` Byte 0 in memory
1078                                                  1104 
1079       - :cspan:`7` Byte 1                        1105       - :cspan:`7` Byte 1
1080                                                  1106 
1081       - :cspan:`7` Byte 2                        1107       - :cspan:`7` Byte 2
1082                                                  1108 
1083       - :cspan:`7` Byte 3                        1109       - :cspan:`7` Byte 3
1084     * -                                          1110     * -
1085       -                                          1111       -
1086       - 7                                        1112       - 7
1087       - 6                                        1113       - 6
1088       - 5                                        1114       - 5
1089       - 4                                        1115       - 4
1090       - 3                                        1116       - 3
1091       - 2                                        1117       - 2
1092       - 1                                        1118       - 1
1093       - 0                                        1119       - 0
1094                                                  1120 
1095       - 7                                        1121       - 7
1096       - 6                                        1122       - 6
1097       - 5                                        1123       - 5
1098       - 4                                        1124       - 4
1099       - 3                                        1125       - 3
1100       - 2                                        1126       - 2
1101       - 1                                        1127       - 1
1102       - 0                                        1128       - 0
1103                                                  1129 
1104       - 7                                        1130       - 7
1105       - 6                                        1131       - 6
1106       - 5                                        1132       - 5
1107       - 4                                        1133       - 4
1108       - 3                                        1134       - 3
1109       - 2                                        1135       - 2
1110       - 1                                        1136       - 1
1111       - 0                                        1137       - 0
1112                                                  1138 
1113       - 7                                        1139       - 7
1114       - 6                                        1140       - 6
1115       - 5                                        1141       - 5
1116       - 4                                        1142       - 4
1117       - 3                                        1143       - 3
1118       - 2                                        1144       - 2
1119       - 1                                        1145       - 1
1120       - 0                                        1146       - 0
1121     * .. _V4L2-PIX-FMT-RGB444:                   1147     * .. _V4L2-PIX-FMT-RGB444:
1122                                                  1148 
1123       - ``V4L2_PIX_FMT_RGB444``                  1149       - ``V4L2_PIX_FMT_RGB444``
1124       - 'R444'                                   1150       - 'R444'
1125                                                  1151 
1126       - g\ :sub:`3`                              1152       - g\ :sub:`3`
1127       - g\ :sub:`2`                              1153       - g\ :sub:`2`
1128       - g\ :sub:`1`                              1154       - g\ :sub:`1`
1129       - g\ :sub:`0`                              1155       - g\ :sub:`0`
1130       - b\ :sub:`3`                              1156       - b\ :sub:`3`
1131       - b\ :sub:`2`                              1157       - b\ :sub:`2`
1132       - b\ :sub:`1`                              1158       - b\ :sub:`1`
1133       - b\ :sub:`0`                              1159       - b\ :sub:`0`
1134                                                  1160 
1135       - a\ :sub:`3`                              1161       - a\ :sub:`3`
1136       - a\ :sub:`2`                              1162       - a\ :sub:`2`
1137       - a\ :sub:`1`                              1163       - a\ :sub:`1`
1138       - a\ :sub:`0`                              1164       - a\ :sub:`0`
1139       - r\ :sub:`3`                              1165       - r\ :sub:`3`
1140       - r\ :sub:`2`                              1166       - r\ :sub:`2`
1141       - r\ :sub:`1`                              1167       - r\ :sub:`1`
1142       - r\ :sub:`0`                              1168       - r\ :sub:`0`
1143       -                                          1169       -
1144     * .. _V4L2-PIX-FMT-RGB555:                   1170     * .. _V4L2-PIX-FMT-RGB555:
1145                                                  1171 
1146       - ``V4L2_PIX_FMT_RGB555``                  1172       - ``V4L2_PIX_FMT_RGB555``
1147       - 'RGBO'                                   1173       - 'RGBO'
1148                                                  1174 
1149       - g\ :sub:`2`                              1175       - g\ :sub:`2`
1150       - g\ :sub:`1`                              1176       - g\ :sub:`1`
1151       - g\ :sub:`0`                              1177       - g\ :sub:`0`
1152       - b\ :sub:`4`                              1178       - b\ :sub:`4`
1153       - b\ :sub:`3`                              1179       - b\ :sub:`3`
1154       - b\ :sub:`2`                              1180       - b\ :sub:`2`
1155       - b\ :sub:`1`                              1181       - b\ :sub:`1`
1156       - b\ :sub:`0`                              1182       - b\ :sub:`0`
1157                                                  1183 
1158       - a                                        1184       - a
1159       - r\ :sub:`4`                              1185       - r\ :sub:`4`
1160       - r\ :sub:`3`                              1186       - r\ :sub:`3`
1161       - r\ :sub:`2`                              1187       - r\ :sub:`2`
1162       - r\ :sub:`1`                              1188       - r\ :sub:`1`
1163       - r\ :sub:`0`                              1189       - r\ :sub:`0`
1164       - g\ :sub:`4`                              1190       - g\ :sub:`4`
1165       - g\ :sub:`3`                              1191       - g\ :sub:`3`
1166       -                                          1192       -
1167     * .. _V4L2-PIX-FMT-RGB555X:                  1193     * .. _V4L2-PIX-FMT-RGB555X:
1168                                                  1194 
1169       - ``V4L2_PIX_FMT_RGB555X``                 1195       - ``V4L2_PIX_FMT_RGB555X``
1170       - 'RGBQ'                                   1196       - 'RGBQ'
1171                                                  1197 
1172       - a                                        1198       - a
1173       - r\ :sub:`4`                              1199       - r\ :sub:`4`
1174       - r\ :sub:`3`                              1200       - r\ :sub:`3`
1175       - r\ :sub:`2`                              1201       - r\ :sub:`2`
1176       - r\ :sub:`1`                              1202       - r\ :sub:`1`
1177       - r\ :sub:`0`                              1203       - r\ :sub:`0`
1178       - g\ :sub:`4`                              1204       - g\ :sub:`4`
1179       - g\ :sub:`3`                              1205       - g\ :sub:`3`
1180                                                  1206 
1181       - g\ :sub:`2`                              1207       - g\ :sub:`2`
1182       - g\ :sub:`1`                              1208       - g\ :sub:`1`
1183       - g\ :sub:`0`                              1209       - g\ :sub:`0`
1184       - b\ :sub:`4`                              1210       - b\ :sub:`4`
1185       - b\ :sub:`3`                              1211       - b\ :sub:`3`
1186       - b\ :sub:`2`                              1212       - b\ :sub:`2`
1187       - b\ :sub:`1`                              1213       - b\ :sub:`1`
1188       - b\ :sub:`0`                              1214       - b\ :sub:`0`
1189       -                                          1215       -
1190     * .. _V4L2-PIX-FMT-BGR32:                    1216     * .. _V4L2-PIX-FMT-BGR32:
1191                                                  1217 
1192       - ``V4L2_PIX_FMT_BGR32``                   1218       - ``V4L2_PIX_FMT_BGR32``
1193       - 'BGR4'                                   1219       - 'BGR4'
1194                                                  1220 
1195       - b\ :sub:`7`                              1221       - b\ :sub:`7`
1196       - b\ :sub:`6`                              1222       - b\ :sub:`6`
1197       - b\ :sub:`5`                              1223       - b\ :sub:`5`
1198       - b\ :sub:`4`                              1224       - b\ :sub:`4`
1199       - b\ :sub:`3`                              1225       - b\ :sub:`3`
1200       - b\ :sub:`2`                              1226       - b\ :sub:`2`
1201       - b\ :sub:`1`                              1227       - b\ :sub:`1`
1202       - b\ :sub:`0`                              1228       - b\ :sub:`0`
1203                                                  1229 
1204       - g\ :sub:`7`                              1230       - g\ :sub:`7`
1205       - g\ :sub:`6`                              1231       - g\ :sub:`6`
1206       - g\ :sub:`5`                              1232       - g\ :sub:`5`
1207       - g\ :sub:`4`                              1233       - g\ :sub:`4`
1208       - g\ :sub:`3`                              1234       - g\ :sub:`3`
1209       - g\ :sub:`2`                              1235       - g\ :sub:`2`
1210       - g\ :sub:`1`                              1236       - g\ :sub:`1`
1211       - g\ :sub:`0`                              1237       - g\ :sub:`0`
1212                                                  1238 
1213       - r\ :sub:`7`                              1239       - r\ :sub:`7`
1214       - r\ :sub:`6`                              1240       - r\ :sub:`6`
1215       - r\ :sub:`5`                              1241       - r\ :sub:`5`
1216       - r\ :sub:`4`                              1242       - r\ :sub:`4`
1217       - r\ :sub:`3`                              1243       - r\ :sub:`3`
1218       - r\ :sub:`2`                              1244       - r\ :sub:`2`
1219       - r\ :sub:`1`                              1245       - r\ :sub:`1`
1220       - r\ :sub:`0`                              1246       - r\ :sub:`0`
1221                                                  1247 
1222       - a\ :sub:`7`                              1248       - a\ :sub:`7`
1223       - a\ :sub:`6`                              1249       - a\ :sub:`6`
1224       - a\ :sub:`5`                              1250       - a\ :sub:`5`
1225       - a\ :sub:`4`                              1251       - a\ :sub:`4`
1226       - a\ :sub:`3`                              1252       - a\ :sub:`3`
1227       - a\ :sub:`2`                              1253       - a\ :sub:`2`
1228       - a\ :sub:`1`                              1254       - a\ :sub:`1`
1229       - a\ :sub:`0`                              1255       - a\ :sub:`0`
1230     * .. _V4L2-PIX-FMT-RGB32:                    1256     * .. _V4L2-PIX-FMT-RGB32:
1231                                                  1257 
1232       - ``V4L2_PIX_FMT_RGB32``                   1258       - ``V4L2_PIX_FMT_RGB32``
1233       - 'RGB4'                                   1259       - 'RGB4'
1234                                                  1260 
1235       - a\ :sub:`7`                              1261       - a\ :sub:`7`
1236       - a\ :sub:`6`                              1262       - a\ :sub:`6`
1237       - a\ :sub:`5`                              1263       - a\ :sub:`5`
1238       - a\ :sub:`4`                              1264       - a\ :sub:`4`
1239       - a\ :sub:`3`                              1265       - a\ :sub:`3`
1240       - a\ :sub:`2`                              1266       - a\ :sub:`2`
1241       - a\ :sub:`1`                              1267       - a\ :sub:`1`
1242       - a\ :sub:`0`                              1268       - a\ :sub:`0`
1243                                                  1269 
1244       - r\ :sub:`7`                              1270       - r\ :sub:`7`
1245       - r\ :sub:`6`                              1271       - r\ :sub:`6`
1246       - r\ :sub:`5`                              1272       - r\ :sub:`5`
1247       - r\ :sub:`4`                              1273       - r\ :sub:`4`
1248       - r\ :sub:`3`                              1274       - r\ :sub:`3`
1249       - r\ :sub:`2`                              1275       - r\ :sub:`2`
1250       - r\ :sub:`1`                              1276       - r\ :sub:`1`
1251       - r\ :sub:`0`                              1277       - r\ :sub:`0`
1252                                                  1278 
1253       - g\ :sub:`7`                              1279       - g\ :sub:`7`
1254       - g\ :sub:`6`                              1280       - g\ :sub:`6`
1255       - g\ :sub:`5`                              1281       - g\ :sub:`5`
1256       - g\ :sub:`4`                              1282       - g\ :sub:`4`
1257       - g\ :sub:`3`                              1283       - g\ :sub:`3`
1258       - g\ :sub:`2`                              1284       - g\ :sub:`2`
1259       - g\ :sub:`1`                              1285       - g\ :sub:`1`
1260       - g\ :sub:`0`                              1286       - g\ :sub:`0`
1261                                                  1287 
1262       - b\ :sub:`7`                              1288       - b\ :sub:`7`
1263       - b\ :sub:`6`                              1289       - b\ :sub:`6`
1264       - b\ :sub:`5`                              1290       - b\ :sub:`5`
1265       - b\ :sub:`4`                              1291       - b\ :sub:`4`
1266       - b\ :sub:`3`                              1292       - b\ :sub:`3`
1267       - b\ :sub:`2`                              1293       - b\ :sub:`2`
1268       - b\ :sub:`1`                              1294       - b\ :sub:`1`
1269       - b\ :sub:`0`                              1295       - b\ :sub:`0`
1270                                                  1296 
1271 .. raw:: latex                                   1297 .. raw:: latex
1272                                                  1298 
1273     \endgroup                                    1299     \endgroup
1274                                                  1300 
1275 A test utility to determine which RGB formats    1301 A test utility to determine which RGB formats a driver actually supports
1276 is available from the LinuxTV v4l-dvb reposit    1302 is available from the LinuxTV v4l-dvb repository. See
1277 `https://linuxtv.org/repo/ <https://linuxtv.o    1303 `https://linuxtv.org/repo/ <https://linuxtv.org/repo/>`__ for access
1278 instructions.                                    1304 instructions.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php