2016-06-30 21:18:56 +08:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _packed-rgb:
|
|
|
|
|
|
|
|
******************
|
|
|
|
Packed RGB formats
|
|
|
|
******************
|
|
|
|
|
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
|
|
|
These formats are designed to match the pixel formats of typical PC
|
|
|
|
graphics frame buffers. They occupy 8, 16, 24 or 32 bits per pixel.
|
|
|
|
These are all packed-pixel formats, meaning all the data for a pixel lie
|
|
|
|
next to each other in memory.
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. raw:: latex
|
|
|
|
|
|
|
|
\newline\newline\begin{adjustbox}{width=\columnwidth}
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
.. _rgb-formats:
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. tabularcolumns:: |p{4.5cm}|p{3.3cm}|p{0.7cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{1.7cm}|
|
|
|
|
|
2016-06-30 21:18:56 +08:00
|
|
|
.. flat-table:: Packed RGB Image Formats
|
|
|
|
:header-rows: 2
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
- Identifier
|
|
|
|
|
|
|
|
- Code
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 0 in memory
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 1
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 2
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 3
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- Bit
|
|
|
|
|
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB332:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB332``
|
|
|
|
|
|
|
|
- 'RGB1'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-ARGB444:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_ARGB444``
|
|
|
|
|
|
|
|
- 'AR12'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a\ :sub:`3`
|
|
|
|
|
|
|
|
- a\ :sub:`2`
|
|
|
|
|
|
|
|
- a\ :sub:`1`
|
|
|
|
|
|
|
|
- a\ :sub:`0`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-XRGB444:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_XRGB444``
|
|
|
|
|
|
|
|
- 'XR12'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-ARGB555:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_ARGB555``
|
|
|
|
|
|
|
|
- 'AR15'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-XRGB555:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_XRGB555``
|
|
|
|
|
|
|
|
- 'XR15'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB565:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB565``
|
|
|
|
|
|
|
|
- 'RGBP'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-ARGB555X:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_ARGB555X``
|
|
|
|
|
|
|
|
- 'AR15' | (1 << 31)
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-XRGB555X:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_XRGB555X``
|
|
|
|
|
|
|
|
- 'XR15' | (1 << 31)
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB565X:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB565X``
|
|
|
|
|
|
|
|
- 'RGBR'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-BGR24:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_BGR24``
|
|
|
|
|
|
|
|
- 'BGR3'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB24:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB24``
|
|
|
|
|
|
|
|
- 'RGB3'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-BGR666:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_BGR666``
|
|
|
|
|
|
|
|
- 'BGRH'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-ABGR32:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_ABGR32``
|
|
|
|
|
|
|
|
- 'AR24'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a\ :sub:`7`
|
|
|
|
|
|
|
|
- a\ :sub:`6`
|
|
|
|
|
|
|
|
- a\ :sub:`5`
|
|
|
|
|
|
|
|
- a\ :sub:`4`
|
|
|
|
|
|
|
|
- a\ :sub:`3`
|
|
|
|
|
|
|
|
- a\ :sub:`2`
|
|
|
|
|
|
|
|
- a\ :sub:`1`
|
|
|
|
|
|
|
|
- a\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-XBGR32:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_XBGR32``
|
|
|
|
|
|
|
|
- 'XR24'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-ARGB32:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_ARGB32``
|
|
|
|
|
|
|
|
- 'BA24'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a\ :sub:`7`
|
|
|
|
|
|
|
|
- a\ :sub:`6`
|
|
|
|
|
|
|
|
- a\ :sub:`5`
|
|
|
|
|
|
|
|
- a\ :sub:`4`
|
|
|
|
|
|
|
|
- a\ :sub:`3`
|
|
|
|
|
|
|
|
- a\ :sub:`2`
|
|
|
|
|
|
|
|
- a\ :sub:`1`
|
|
|
|
|
|
|
|
- a\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-XRGB32:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_XRGB32``
|
|
|
|
|
|
|
|
- 'BX24'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. raw:: latex
|
|
|
|
|
|
|
|
\end{adjustbox}\newline\newline
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. note:: Bit 7 is the most significant bit.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
The usage and value of the alpha bits (a) in the ARGB and ABGR formats
|
|
|
|
(collectively referred to as alpha formats) depend on the device type
|
|
|
|
and hardware operation. :ref:`Capture <capture>` devices (including
|
|
|
|
capture queues of mem-to-mem devices) fill the alpha component in
|
|
|
|
memory. When the device outputs an alpha channel the alpha component
|
|
|
|
will have a meaningful value. Otherwise, when the device doesn't output
|
|
|
|
an alpha channel but can set the alpha bit to a user-configurable value,
|
|
|
|
the :ref:`V4L2_CID_ALPHA_COMPONENT <v4l2-alpha-component>` control
|
|
|
|
is used to specify that alpha value, and the alpha component of all
|
|
|
|
pixels will be set to the value specified by that control. Otherwise a
|
|
|
|
corresponding format without an alpha component (XRGB or XBGR) must be
|
|
|
|
used instead of an alpha format.
|
|
|
|
|
|
|
|
:ref:`Output <output>` devices (including output queues of mem-to-mem
|
|
|
|
devices and :ref:`video output overlay <osd>` devices) read the alpha
|
|
|
|
component from memory. When the device processes the alpha channel the
|
|
|
|
alpha component must be filled with meaningful values by applications.
|
|
|
|
Otherwise a corresponding format without an alpha component (XRGB or
|
|
|
|
XBGR) must be used instead of an alpha format.
|
|
|
|
|
|
|
|
The XRGB and XBGR formats contain undefined bits (-). Applications,
|
|
|
|
devices and drivers must ignore those bits, for both
|
2016-07-02 00:58:44 +08:00
|
|
|
:ref:`capture` and :ref:`output` devices.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 00:58:01 +08:00
|
|
|
**Byte Order.**
|
2016-06-30 21:18:56 +08:00
|
|
|
Each cell is one byte.
|
|
|
|
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. raw:: latex
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
\newline\newline\begin{adjustbox}{width=\columnwidth}
|
[media] docs-rst: add tabularcolumns to all tables
LaTeX doesn't handle too well auto-width on tables, and ReST
markup requires an special tag to give it the needed hints.
As we're using A4 paper, we have 17cm of useful spaces. As
most media tables have widths, let's use it to generate the
needed via the following perl script:
my ($line_size, $table_header, $has_cols) = (17.5, 0, 0);
my $out;
my $header = "";
my @widths = ();
sub round { $_[0] > 0 ? int($_[0] + .5) : -int(-$_[0] + .5) }
while (<>) {
if (!$table_header) {
$has_cols = 1 if (m/..\s+tabularcolumns::/);
if (m/..\s+flat-table::/) {
$table_header = 1;
$header = $_;
next;
}
$out .= $_;
next;
}
$header .= $_;
@widths = split(/ /, $1) if (m/:widths:\s+(.*)/);
if (m/^\n$/) {
if (!$has_cols && @widths) {
my ($tot, $t, $i) = (0, 0, 0);
foreach my $v(@widths) { $tot += $v; };
$out .= ".. tabularcolumns:: |";
for ($i = 0; $i < scalar @widths - 1; $i++) {
my $v = $widths[$i];
my $w = round(10 * ($v * $line_size) / $tot) / 10;
$out .= sprintf "p{%.1fcm}|", $w;
$t += $w;
}
my $w = $line_size - $t;
$out .= sprintf "p{%.1fcm}|\n\n", $w;
}
$out .= $header;
$table_header = 0;
$has_cols = 0;
$header = "";
@widths = ();
}
}
print $out;
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-08-17 19:14:19 +08:00
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. tabularcolumns:: |p{4.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.1cm}|p{1.3cm}|
|
|
|
|
|
|
|
|
.. flat-table:: RGB byte order
|
2016-06-30 21:18:56 +08:00
|
|
|
:header-rows: 0
|
|
|
|
:stub-columns: 0
|
2016-08-17 23:02:12 +08:00
|
|
|
:widths: 11 3 3 3 3 3 3 3 3 3 3 3 3
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
- start + 0:
|
|
|
|
|
|
|
|
- B\ :sub:`00`
|
|
|
|
|
|
|
|
- G\ :sub:`00`
|
|
|
|
|
|
|
|
- R\ :sub:`00`
|
|
|
|
|
|
|
|
- B\ :sub:`01`
|
|
|
|
|
|
|
|
- G\ :sub:`01`
|
|
|
|
|
|
|
|
- R\ :sub:`01`
|
|
|
|
|
|
|
|
- B\ :sub:`02`
|
|
|
|
|
|
|
|
- G\ :sub:`02`
|
|
|
|
|
|
|
|
- R\ :sub:`02`
|
|
|
|
|
|
|
|
- B\ :sub:`03`
|
|
|
|
|
|
|
|
- G\ :sub:`03`
|
|
|
|
|
|
|
|
- R\ :sub:`03`
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
|
|
|
- start + 12:
|
|
|
|
|
|
|
|
- B\ :sub:`10`
|
|
|
|
|
|
|
|
- G\ :sub:`10`
|
|
|
|
|
|
|
|
- R\ :sub:`10`
|
|
|
|
|
|
|
|
- B\ :sub:`11`
|
|
|
|
|
|
|
|
- G\ :sub:`11`
|
|
|
|
|
|
|
|
- R\ :sub:`11`
|
|
|
|
|
|
|
|
- B\ :sub:`12`
|
|
|
|
|
|
|
|
- G\ :sub:`12`
|
|
|
|
|
|
|
|
- R\ :sub:`12`
|
|
|
|
|
|
|
|
- B\ :sub:`13`
|
|
|
|
|
|
|
|
- G\ :sub:`13`
|
|
|
|
|
|
|
|
- R\ :sub:`13`
|
|
|
|
|
|
|
|
- .. row 3
|
|
|
|
|
|
|
|
- start + 24:
|
|
|
|
|
|
|
|
- B\ :sub:`20`
|
|
|
|
|
|
|
|
- G\ :sub:`20`
|
|
|
|
|
|
|
|
- R\ :sub:`20`
|
|
|
|
|
|
|
|
- B\ :sub:`21`
|
|
|
|
|
|
|
|
- G\ :sub:`21`
|
|
|
|
|
|
|
|
- R\ :sub:`21`
|
|
|
|
|
|
|
|
- B\ :sub:`22`
|
|
|
|
|
|
|
|
- G\ :sub:`22`
|
|
|
|
|
|
|
|
- R\ :sub:`22`
|
|
|
|
|
|
|
|
- B\ :sub:`23`
|
|
|
|
|
|
|
|
- G\ :sub:`23`
|
|
|
|
|
|
|
|
- R\ :sub:`23`
|
|
|
|
|
|
|
|
- .. row 4
|
|
|
|
|
|
|
|
- start + 36:
|
|
|
|
|
|
|
|
- B\ :sub:`30`
|
|
|
|
|
|
|
|
- G\ :sub:`30`
|
|
|
|
|
|
|
|
- R\ :sub:`30`
|
|
|
|
|
|
|
|
- B\ :sub:`31`
|
|
|
|
|
|
|
|
- G\ :sub:`31`
|
|
|
|
|
|
|
|
- R\ :sub:`31`
|
|
|
|
|
|
|
|
- B\ :sub:`32`
|
|
|
|
|
|
|
|
- G\ :sub:`32`
|
|
|
|
|
|
|
|
- R\ :sub:`32`
|
|
|
|
|
|
|
|
- B\ :sub:`33`
|
|
|
|
|
|
|
|
- G\ :sub:`33`
|
|
|
|
|
|
|
|
- R\ :sub:`33`
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. raw:: latex
|
|
|
|
|
|
|
|
\end{adjustbox}\newline\newline
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
Formats defined in :ref:`rgb-formats-deprecated` are deprecated and
|
|
|
|
must not be used by new drivers. They are documented here for reference.
|
|
|
|
The meaning of their alpha bits (a) is ill-defined and interpreted as in
|
|
|
|
either the corresponding ARGB or XRGB format, depending on the driver.
|
|
|
|
|
|
|
|
|
|
|
|
.. _rgb-formats-deprecated:
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. raw:: latex
|
|
|
|
|
|
|
|
\newline\newline
|
|
|
|
\begin{adjustbox}{width=\columnwidth}
|
|
|
|
|
|
|
|
.. tabularcolumns:: |p{4.2cm}|p{1.0cm}|p{0.7cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.2cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{0.4cm}|p{1.7cm}|
|
|
|
|
|
2016-06-30 21:18:56 +08:00
|
|
|
.. flat-table:: Deprecated Packed RGB Image Formats
|
|
|
|
:header-rows: 2
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
|
|
|
|
|
|
- .. row 1
|
|
|
|
|
|
|
|
- Identifier
|
|
|
|
|
|
|
|
- Code
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 0 in memory
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 1
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 2
|
|
|
|
|
2016-08-17 22:57:12 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- :cspan:`7` Byte 3
|
|
|
|
|
|
|
|
- .. row 2
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- Bit
|
|
|
|
|
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- 7
|
|
|
|
|
|
|
|
- 6
|
|
|
|
|
|
|
|
- 5
|
|
|
|
|
|
|
|
- 4
|
|
|
|
|
|
|
|
- 3
|
|
|
|
|
|
|
|
- 2
|
|
|
|
|
|
|
|
- 1
|
|
|
|
|
|
|
|
- 0
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB444:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB444``
|
|
|
|
|
|
|
|
- 'R444'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a\ :sub:`3`
|
|
|
|
|
|
|
|
- a\ :sub:`2`
|
|
|
|
|
|
|
|
- a\ :sub:`1`
|
|
|
|
|
|
|
|
- a\ :sub:`0`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB555:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB555``
|
|
|
|
|
|
|
|
- 'RGBO'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB555X:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB555X``
|
|
|
|
|
|
|
|
- 'RGBQ'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-BGR32:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_BGR32``
|
|
|
|
|
|
|
|
- 'BGR4'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a\ :sub:`7`
|
|
|
|
|
|
|
|
- a\ :sub:`6`
|
|
|
|
|
|
|
|
- a\ :sub:`5`
|
|
|
|
|
|
|
|
- a\ :sub:`4`
|
|
|
|
|
|
|
|
- a\ :sub:`3`
|
|
|
|
|
|
|
|
- a\ :sub:`2`
|
|
|
|
|
|
|
|
- a\ :sub:`1`
|
|
|
|
|
|
|
|
- a\ :sub:`0`
|
|
|
|
|
2016-07-08 02:53:44 +08:00
|
|
|
- .. _V4L2-PIX-FMT-RGB32:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
- ``V4L2_PIX_FMT_RGB32``
|
|
|
|
|
|
|
|
- 'RGB4'
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- a\ :sub:`7`
|
|
|
|
|
|
|
|
- a\ :sub:`6`
|
|
|
|
|
|
|
|
- a\ :sub:`5`
|
|
|
|
|
|
|
|
- a\ :sub:`4`
|
|
|
|
|
|
|
|
- a\ :sub:`3`
|
|
|
|
|
|
|
|
- a\ :sub:`2`
|
|
|
|
|
|
|
|
- a\ :sub:`1`
|
|
|
|
|
|
|
|
- a\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- r\ :sub:`7`
|
|
|
|
|
|
|
|
- r\ :sub:`6`
|
|
|
|
|
|
|
|
- r\ :sub:`5`
|
|
|
|
|
|
|
|
- r\ :sub:`4`
|
|
|
|
|
|
|
|
- r\ :sub:`3`
|
|
|
|
|
|
|
|
- r\ :sub:`2`
|
|
|
|
|
|
|
|
- r\ :sub:`1`
|
|
|
|
|
|
|
|
- r\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- g\ :sub:`7`
|
|
|
|
|
|
|
|
- g\ :sub:`6`
|
|
|
|
|
|
|
|
- g\ :sub:`5`
|
|
|
|
|
|
|
|
- g\ :sub:`4`
|
|
|
|
|
|
|
|
- g\ :sub:`3`
|
|
|
|
|
|
|
|
- g\ :sub:`2`
|
|
|
|
|
|
|
|
- g\ :sub:`1`
|
|
|
|
|
|
|
|
- g\ :sub:`0`
|
|
|
|
|
2016-07-05 03:25:48 +08:00
|
|
|
-
|
2016-06-30 21:18:56 +08:00
|
|
|
- b\ :sub:`7`
|
|
|
|
|
|
|
|
- b\ :sub:`6`
|
|
|
|
|
|
|
|
- b\ :sub:`5`
|
|
|
|
|
|
|
|
- b\ :sub:`4`
|
|
|
|
|
|
|
|
- b\ :sub:`3`
|
|
|
|
|
|
|
|
- b\ :sub:`2`
|
|
|
|
|
|
|
|
- b\ :sub:`1`
|
|
|
|
|
|
|
|
- b\ :sub:`0`
|
|
|
|
|
2016-08-17 23:02:12 +08:00
|
|
|
.. raw:: latex
|
|
|
|
|
|
|
|
\end{adjustbox}\newline\newline
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
A test utility to determine which RGB formats a driver actually supports
|
|
|
|
is available from the LinuxTV v4l-dvb repository. See
|
|
|
|
`https://linuxtv.org/repo/ <https://linuxtv.org/repo/>`__ for access
|
|
|
|
instructions.
|