From: Johannes Stezenbach <js@linuxtv.org>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
Keith Packard <keithp@keithp.com>,
Jonathan Corbet <corbet@lwn.net>,
LKML <linux-kernel@vger.kernel.org>,
linux-doc@vger.kernel.org, Daniel Vetter <daniel.vetter@ffwll.ch>,
Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org,
Graham Whaley <graham.whaley@linux.intel.com>
Subject: Re: Kernel docs: muddying the waters a bit
Date: Mon, 7 Mar 2016 00:29:08 +0100 [thread overview]
Message-ID: <20160306232908.GA3732@linuxtv.org> (raw)
In-Reply-To: <20160305232937.74678dd0@recife.lan>
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
On Sat, Mar 05, 2016 at 11:29:37PM -0300, Mauro Carvalho Chehab wrote:
>
> I converted one of the big tables to CSV. At least now it recognized
> it as a table. Yet, the table was very badly formated:
> https://mchehab.fedorapeople.org/media-kabi-docs-test/rst_tests/packed-rgb.html
>
> This is how this table should look like:
> https://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html
>
> Also, as this table has merged cells at the legend. I've no idea how
> to tell sphinx to do that on csv format.
>
> The RST files are on this git tree:
> https://git.linuxtv.org/mchehab/v4l2-docs-poc.git/
Yeah, seems it can't do merged cells in csv. Attached patch converts it
back to grid table format and fixes the table definition.
The html output looks usable, but clearly it is no fun to
work with tables in Sphinx.
Sphinx' latex writer can't handle nested tables, though.
Python's docutils rst2latex can, but that doesn't help here.
rst2pdf also supports it. But I have doubts such a large
table would render OK in pdf without using landscape orientation.
I have not tried because I used python3-sphinx but rst2pdf
is only availble for Python2 in Debian so it does not integrate
with Sphinx.
Johannes
[-- Attachment #2: 0001-some-progress-for-html-output.patch --]
[-- Type: text/x-diff, Size: 50701 bytes --]
>From 61674b398e778bd5ff644ffd493d5ff1cfaca0ef Mon Sep 17 00:00:00 2001
From: Johannes Stezenbach <js@sig21.net>
Date: Sun, 6 Mar 2016 23:55:19 +0100
Subject: [PATCH] some progress for html output
---
_static/borderless.css | 3 --
_static/v4l2tables.css | 9 +++++
_templates/layout.html | 9 +----
packed-rgb.rst | 88 +++++++++++++++++++++++++++++-----------------
pixfmt-yuyv.rst | 2 +-
v4l-table-within-table.rst | 72 +++++++++++++++++++------------------
6 files changed, 105 insertions(+), 78 deletions(-)
delete mode 100644 _static/borderless.css
create mode 100644 _static/v4l2tables.css
diff --git a/_static/borderless.css b/_static/borderless.css
deleted file mode 100644
index bfd4b01..0000000
--- a/_static/borderless.css
+++ /dev/null
@@ -1,3 +0,0 @@
-table#table-borderless {
- border: 1px solid black;
-}
diff --git a/_static/v4l2tables.css b/_static/v4l2tables.css
new file mode 100644
index 0000000..c045e45
--- /dev/null
+++ b/_static/v4l2tables.css
@@ -0,0 +1,9 @@
+table.noborder {
+ border: 1px solid black;
+ background: white;
+ white-space: nowrap;
+}
+
+table.noborder td, table.noborder th {
+ padding: 0px;
+}
diff --git a/_templates/layout.html b/_templates/layout.html
index b6bf12b..637332d 100644
--- a/_templates/layout.html
+++ b/_templates/layout.html
@@ -1,9 +1,2 @@
{% extends "!layout.html" %}
-{% block tables %}
-<style>
-table#table-borderless {
- border: 1px solid black;
-}
-</style>
-{{ super() }}
-{% endblock %}
+{% set css_files = css_files + ["_static/v4l2tables.css"] %}
diff --git a/packed-rgb.rst b/packed-rgb.rst
index 352b91c..b4fcf3e 100644
--- a/packed-rgb.rst
+++ b/packed-rgb.rst
@@ -9,25 +9,46 @@ 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.
-.. csv-table:: Table: Packed RGB Image Formats
- :header: Identifier,Code, ,Byte 0 in memory,Byte 1,Byte 2,Byte 3
+.. table:: Packed RGB Image Formats
+ :class: noborder
- ``V4L2_PIX_FMT_RGB332``,'RGB1',,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`1`,b\ :sub:`0`
- ``V4L2_PIX_FMT_ARGB444``,'AR12',,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,a\ :sub:`3`,a\ :sub:`2`,a\ :sub:`1`,a\ :sub:`0`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`
- ``V4L2_PIX_FMT_XRGB444``,'XR12',,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,-,-,-,-,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`
- ``V4L2_PIX_FMT_ARGB555``,'AR15',,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,a,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`4`,g\ :sub:`3`
- ``V4L2_PIX_FMT_XRGB555``,'XR15',,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,-,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`4`,g\ :sub:`3`
- ``V4L2_PIX_FMT_RGB565``,'RGBP',,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`
- ``V4L2_PIX_FMT_ARGB555X``,'AR15' | (1<<31),,a,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`4`,g\ :sub:`3`,,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`
- ``V4L2_PIX_FMT_XRGB555X``,'XR15' | (1<<31),,-,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`4`,g\ :sub:`3`,,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`
- ``V4L2_PIX_FMT_RGB565X``,'RGBR',,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`
- ``V4L2_PIX_FMT_BGR24``,'BGR3',,b\ :sub:`7`,b\ :sub:`6`,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,g\ :sub:`7`,g\ :sub:`6`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,,r\ :sub:`7`,r\ :sub:`6`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`
- ``V4L2_PIX_FMT_RGB24``,'RGB3',,r\ :sub:`7`,r\ :sub:`6`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,,g\ :sub:`7`,g\ :sub:`6`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,,b\ :sub:`7`,b\ :sub:`6`,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`
- ``V4L2_PIX_FMT_BGR666``,'BGRH',,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,g\ :sub:`5`,g\ :sub:`4`,,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,,r\ :sub:`1`,r\ :sub:`0`,-,-,-,-,-,-,,-,-,-,-,-,-,-,-
- ``V4L2_PIX_FMT_ABGR32``,'AR24',,b\ :sub:`7`,b\ :sub:`6`,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,g\ :sub:`7`,g\ :sub:`6`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,,r\ :sub:`7`,r\ :sub:`6`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,,a\ :sub:`7`,a\ :sub:`6`,a\ :sub:`5`,a\ :sub:`4`,a\ :sub:`3`,a\ :sub:`2`,a\ :sub:`1`,a\ :sub:`0`
- ``V4L2_PIX_FMT_XBGR32``,'XR24',,b\ :sub:`7`,b\ :sub:`6`,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`,,g\ :sub:`7`,g\ :sub:`6`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,,r\ :sub:`7`,r\ :sub:`6`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,,-,-,-,-,-,-,-,-
- ``V4L2_PIX_FMT_ARGB32``,'BA24',,a\ :sub:`7`,a\ :sub:`6`,a\ :sub:`5`,a\ :sub:`4`,a\ :sub:`3`,a\ :sub:`2`,a\ :sub:`1`,a\ :sub:`0`,,r\ :sub:`7`,r\ :sub:`6`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,,g\ :sub:`7`,g\ :sub:`6`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,,b\ :sub:`7`,b\ :sub:`6`,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`
- ``V4L2_PIX_FMT_XRGB32``,'BX24',,-,-,-,-,-,-,-,-,,r\ :sub:`7`,r\ :sub:`6`,r\ :sub:`5`,r\ :sub:`4`,r\ :sub:`3`,r\ :sub:`2`,r\ :sub:`1`,r\ :sub:`0`,,g\ :sub:`7`,g\ :sub:`6`,g\ :sub:`5`,g\ :sub:`4`,g\ :sub:`3`,g\ :sub:`2`,g\ :sub:`1`,g\ :sub:`0`,,b\ :sub:`7`,b\ :sub:`6`,b\ :sub:`5`,b\ :sub:`4`,b\ :sub:`3`,b\ :sub:`2`,b\ :sub:`1`,b\ :sub:`0`
+ +-----------------------------+-----------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
+ | Identifier | Code | | Byte 0 in memory | Byte 1 | Byte 2 | Byte 3 |
+ | | +-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | | | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ +=============================+=======================+=====+====================+===============+===============+===============+===============+===============+===============+===============+=====+===============+===============+===============+===============+===============+===============+===============+===============+=====+===============+===============+===============+===============+===============+===============+===============+===============+=====+===============+===============+===============+===============+===============+===============+===============+===============+
+ | ``V4L2_PIX_FMT_RGB332`` | 'RGB1' | | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`1` | b\ :sub:`0` | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_ARGB444`` | 'AR12' | | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_XRGB444`` | 'XR12' | | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | \- | \- | \- | \- | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_ARGB555`` | 'AR15' | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | a | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_XRGB555`` | 'XR15' | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | \- | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_RGB565`` | 'RGBP' | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_ARGB555X`` | 'AR15' | (1 << 31) | | a | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_XRGB555X`` | 'XR15' | (1 << 31) | | \- | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_RGB565X`` | 'RGBR' | | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_BGR24`` | 'BGR3' | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_RGB24`` | 'RGB3' | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | | | | | | | | |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_BGR666`` | 'BGRH' | | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | g\ :sub:`5` | g\ :sub:`4` | | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | | r\ :sub:`1` | r\ :sub:`0` | \- | \- | \- | \- | \- | \- | | \- | \- | \- | \- | \- | \- | \- | \- |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_ABGR32`` | 'AR24' | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | a\ :sub:`7` | a\ :sub:`6` | a\ :sub:`5` | a\ :sub:`4` | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_XBGR32`` | 'XR24' | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | \- | \- | \- | \- | \- | \- | \- | \- |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_ARGB32`` | 'BA24' | | a\ :sub:`7` | a\ :sub:`6` | a\ :sub:`5` | a\ :sub:`4` | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_XRGB32`` | 'BX24' | | \- | \- | \- | \- | \- | \- | \- | \- | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` |
+ +-----------------------------+-----------------------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
Bit 7 is the most significant bit.
@@ -74,21 +95,24 @@ 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.
-+----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
-| Identifier | Code | | Byte 0 in memory | Byte 1 | Byte 2 | Byte 3 |
-+============================+==========+=====+====================+===============+===============+===============+===============+===============+===============+===============+====+===============+===============+===============+===============+===============+===============+===============+===============+====+===============+===============+===============+===============+===============+===============+===============+===============+====+===============+===============+===============+===============+===============+===============+===============+===============+
-| ``V4L2_PIX_FMT_RGB444`` | 'R444' | | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` |
-+----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
-| ``V4L2_PIX_FMT_RGB555`` | 'RGBO' | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | a | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` |
-+----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
-| ``V4L2_PIX_FMT_RGB555X`` | 'RGBQ' | | a | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` |
-+----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
-| ``V4L2_PIX_FMT_BGR32`` | 'BGR4' | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | a\ :sub:`7` | a\ :sub:`6` | a\ :sub:`5` | a\ :sub:`4` | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` |
-+----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
-| ``V4L2_PIX_FMT_RGB32`` | 'RGB4' | | a\ :sub:`7` | a\ :sub:`6` | a\ :sub:`5` | a\ :sub:`4` | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` |
-+----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+.. table:: Deprecated Packed RGB Image Formats
+ :class: noborder
-Table: Deprecated Packed RGB Image Formats
+ +----------------------------+----------+-----+------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
+ | Identifier | Code | | Byte 0 in memory | Byte 1 | Byte 2 | Byte 3 |
+ | | +-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | | | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+ +============================+==========+=====+====================+===============+===============+===============+===============+===============+===============+===============+=====+===============+===============+===============+===============+===============+===============+===============+===============+=====+===============+===============+===============+===============+===============+===============+===============+===============+=====+===============+===============+===============+===============+===============+===============+===============+===============+
+ | ``V4L2_PIX_FMT_RGB444`` | 'R444' | | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_RGB555`` | 'RGBO' | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | a | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | | | | | | | | | | | | | | | | | |
+ +----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_RGB555X`` | 'RGBQ' | | a | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | g\ :sub:`4` | g\ :sub:`3` | | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | | | | | | | | | | | | | | | | | |
+ +----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_BGR32`` | 'BGR4' | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | a\ :sub:`7` | a\ :sub:`6` | a\ :sub:`5` | a\ :sub:`4` | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` |
+ +----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
+ | ``V4L2_PIX_FMT_RGB32`` | 'RGB4' | | a\ :sub:`7` | a\ :sub:`6` | a\ :sub:`5` | a\ :sub:`4` | a\ :sub:`3` | a\ :sub:`2` | a\ :sub:`1` | a\ :sub:`0` | | r\ :sub:`7` | r\ :sub:`6` | r\ :sub:`5` | r\ :sub:`4` | r\ :sub:`3` | r\ :sub:`2` | r\ :sub:`1` | r\ :sub:`0` | | g\ :sub:`7` | g\ :sub:`6` | g\ :sub:`5` | g\ :sub:`4` | g\ :sub:`3` | g\ :sub:`2` | g\ :sub:`1` | g\ :sub:`0` | | b\ :sub:`7` | b\ :sub:`6` | b\ :sub:`5` | b\ :sub:`4` | b\ :sub:`3` | b\ :sub:`2` | b\ :sub:`1` | b\ :sub:`0` |
+ +----------------------------+----------+-----+--------------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+-----+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+
A test utility to determine which RGB formats a driver actually supports
is available from the LinuxTV v4l-dvb repository. See V4L-DVB for access
diff --git a/pixfmt-yuyv.rst b/pixfmt-yuyv.rst
index 9ec268d..9e4b6dd 100644
--- a/pixfmt-yuyv.rst
+++ b/pixfmt-yuyv.rst
@@ -11,7 +11,7 @@ In this format each four bytes is two pixels. Each four bytes is two
Y's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr
belong to both pixels. As you can see, the Cr and Cb components have
half the horizontal resolution of the Y component.
-``V4L2_PIX_FMT_YUYV `` is known in the Windows environment as YUY2.
+``V4L2_PIX_FMT_YUYV`` is known in the Windows environment as YUY2.
**Byte Order..**
diff --git a/v4l-table-within-table.rst b/v4l-table-within-table.rst
index d2a6079..c8e1b21 100644
--- a/v4l-table-within-table.rst
+++ b/v4l-table-within-table.rst
@@ -1,37 +1,41 @@
V4l2 CID table example
======================
-============================== ============== =========
-ID Type Definition
-============================== ============== =========
-V4L2_CID_COLOR_KILLER boolean Enable the color killer (i. e. force a black & white image in case of a weak video signal).
-V4L2_CID_COLORFX enum Selects a color effect. The following values are defined:
-
- ============================== =====================
- Value Definition
- ============================== =====================
- V4L2_COLORFX_NONE Color effect is disabled.
- V4L2_COLORFX_ANTIQUE An aging (old photo) effect.
- V4L2_COLORFX_ART_FREEZE Frost color effect.
- V4L2_COLORFX_AQUA Water color, cool tone.
- V4L2_COLORFX_BW Black and white.
- V4L2_COLORFX_EMBOSS Emboss, the highlights and shadows replace light/dark
- boundaries and low contrast areas are set to a gray background.
- V4L2_COLORFX_GRASS_GREEN Grass green.
- V4L2_COLORFX_NEGATIVE Negative.
- V4L2_COLORFX_SEPIA Sepia tone.
- V4L2_COLORFX_SKETCH Sketch.
- V4L2_COLORFX_SKIN_WHITEN Skin whiten.
- V4L2_COLORFX_SKY_BLUE Sky blue.
- V4L2_COLORFX_SOLARIZATION Solarization, the image is partially reversed in tone, only
- color values above or below a certain threshold are inverted.
- V4L2_COLORFX_SILHOUETTE Silhouette (outline).
- V4L2_COLORFX_VIVID Vivid colors.
- V4L2_COLORFX_SET_CBCR The Cb and Cr chroma components are replaced by fixed coefficients
- determined by V4L2_CID_COLORFX_CBCR control.
- ============================== =====================
-V4L2_CID_COLORFX_CBCR integer Determines the Cb and Cr coefficients for V4L2_COLORFX_SET_CBCR
- color effect. Bits [7:0] of the supplied 32 bit value are interpreted as
- Cr component, bits [15:8] as Cb component and bits [31:16] must be zero.
-V4L2_CID_AUTOBRIGHTNESS boolean Enable Automatic Brightness.
-============================== ============== =========
+.. tabularcolumns:: |l|l|p{20cm}|
+.. table::
+ :class: noborder
+
+ ============================== ============== =========
+ ID Type Definition
+ ============================== ============== =========
+ V4L2_CID_COLOR_KILLER boolean Enable the color killer (i. e. force a black & white image in case of a weak video signal).
+ V4L2_CID_COLORFX enum Selects a color effect. The following values are defined:
+
+ ============================== =====================
+ Value Definition
+ ============================== =====================
+ V4L2_COLORFX_NONE Color effect is disabled.
+ V4L2_COLORFX_ANTIQUE An aging (old photo) effect.
+ V4L2_COLORFX_ART_FREEZE Frost color effect.
+ V4L2_COLORFX_AQUA Water color, cool tone.
+ V4L2_COLORFX_BW Black and white.
+ V4L2_COLORFX_EMBOSS Emboss, the highlights and shadows replace light/dark
+ boundaries and low contrast areas are set to a gray background.
+ V4L2_COLORFX_GRASS_GREEN Grass green.
+ V4L2_COLORFX_NEGATIVE Negative.
+ V4L2_COLORFX_SEPIA Sepia tone.
+ V4L2_COLORFX_SKETCH Sketch.
+ V4L2_COLORFX_SKIN_WHITEN Skin whiten.
+ V4L2_COLORFX_SKY_BLUE Sky blue.
+ V4L2_COLORFX_SOLARIZATION Solarization, the image is partially reversed in tone, only
+ color values above or below a certain threshold are inverted.
+ V4L2_COLORFX_SILHOUETTE Silhouette (outline).
+ V4L2_COLORFX_VIVID Vivid colors.
+ V4L2_COLORFX_SET_CBCR The Cb and Cr chroma components are replaced by fixed coefficients
+ determined by V4L2_CID_COLORFX_CBCR control.
+ ============================== =====================
+ V4L2_CID_COLORFX_CBCR integer Determines the Cb and Cr coefficients for V4L2_COLORFX_SET_CBCR
+ color effect. Bits [7:0] of the supplied 32 bit value are interpreted as
+ Cr component, bits [15:8] as Cb component and bits [31:16] must be zero.
+ V4L2_CID_AUTOBRIGHTNESS boolean Enable Automatic Brightness.
+ ============================== ============== =========
--
2.7.0
next prev parent reply other threads:[~2016-03-06 23:29 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160213145317.247c63c7@lwn.net>
[not found] ` <86fuwwcdmd.fsf@hiro.keithp.com>
[not found] ` <CAKMK7uGeU_grgC7pRCdqw+iDGWQfXhHwvX+tkSgRmdimxMrthA@mail.gmail.com>
[not found] ` <20160217151401.3cb82f65@lwn.net>
[not found] ` <CAKMK7uEqbSrhc2nh0LjC1fztciM4eTjtKE9T_wMVCqAkkTnzkA@mail.gmail.com>
[not found] ` <874md6fkna.fsf@intel.com>
[not found] ` <CAKMK7uE72wFEFCyw1dHbt+f3-ex3fr_9MbjoGfnKFZkd5+9S2Q@mail.gmail.com>
2016-02-18 10:26 ` Kernel docs: muddying the waters a bit Mauro Carvalho Chehab
2016-02-18 11:23 ` Jani Nikula
2016-02-18 12:04 ` Mauro Carvalho Chehab
2016-02-18 12:07 ` Hans Verkuil
2016-02-18 12:44 ` Mauro Carvalho Chehab
2016-02-18 13:34 ` Patrick Boettcher
2016-03-03 14:03 ` Jani Nikula
2016-03-03 14:13 ` Jonathan Corbet
2016-03-03 14:34 ` One Thousand Gnomes
2016-03-03 15:17 ` Jonathan Corbet
2016-03-03 15:45 ` Daniel Vetter
2016-03-03 18:50 ` Mauro Carvalho Chehab
2016-03-03 23:23 ` Keith Packard
2016-03-04 1:19 ` Mauro Carvalho Chehab
2016-03-04 8:29 ` Jani Nikula
2016-03-04 8:59 ` Johannes Stezenbach
2016-03-04 12:59 ` Mauro Carvalho Chehab
2016-03-04 14:09 ` Johannes Stezenbach
2016-03-06 2:29 ` Mauro Carvalho Chehab
2016-03-06 23:29 ` Johannes Stezenbach [this message]
2016-03-07 8:48 ` Johannes Stezenbach
2016-03-07 12:15 ` Mauro Carvalho Chehab
2016-03-07 12:19 ` Mauro Carvalho Chehab
2016-03-04 7:28 ` Russel Winder
2016-03-04 7:46 ` Jani Nikula
2016-03-08 4:53 ` Russel Winder
[not found] ` <CAKeHnO6sSV1x2xh_HgbD5ddZ8rp+SVvbdjVhczhudc9iv_-UCQ@mail.gmail.com>
2016-03-08 9:49 ` Jani Nikula
2016-03-08 11:29 ` Mauro Carvalho Chehab
[not found] ` <CAKeHnO7R25knFH07+3trdi0ZotsrEE+5ZzDZXdx33+DUW=q2Ug@mail.gmail.com>
2016-03-08 13:39 ` Mauro Carvalho Chehab
2016-03-08 15:39 ` Mauro Carvalho Chehab
2016-03-09 21:27 ` Mauro Carvalho Chehab
2016-03-10 10:25 ` Jani Nikula
2016-03-10 15:21 ` Mauro Carvalho Chehab
2016-03-13 15:33 ` Markus Heiser
2016-04-08 15:12 ` Markus Heiser
2016-04-12 9:18 ` Hans Verkuil
2016-04-12 15:46 ` Jonathan Corbet
2016-04-18 9:49 ` Markus Heiser
2016-04-27 14:28 ` Grant Likely
2016-05-03 14:31 ` Daniel Vetter
2016-05-03 15:54 ` Keith Packard
2016-05-04 9:34 ` Markus Heiser
2016-05-04 9:58 ` Jani Nikula
2016-05-04 12:40 ` Markus Heiser
2016-05-04 13:41 ` Jani Nikula
2016-05-04 15:09 ` Jonathan Corbet
2016-05-04 13:43 ` Daniel Vetter
2016-05-04 14:18 ` Daniel Vetter
2016-05-04 14:57 ` Jonathan Corbet
2016-05-04 15:02 ` Daniel Vetter
2016-05-04 16:32 ` Daniel Vetter
2016-05-04 15:44 ` Jani Nikula
2016-05-04 16:38 ` Mauro Carvalho Chehab
2016-05-04 15:55 ` Markus Heiser
2016-05-04 16:13 ` Jani Nikula
2016-05-04 16:50 ` Mauro Carvalho Chehab
2016-05-04 16:59 ` Jonathan Corbet
2016-05-04 17:57 ` Mauro Carvalho Chehab
2016-05-05 13:02 ` Jonathan Corbet
2016-05-05 13:23 ` Mauro Carvalho Chehab
2016-05-06 11:23 ` Markus Heiser
2016-05-06 11:44 ` Markus Heiser
[not found] ` <20160506083529.31ad2fa0@recife.lan>
[not found] ` <BAE3C147-6C21-4242-BD3C-8989C1626E10@darmarit.de>
[not found] ` <20160506104210.12197832@recife.lan>
2016-05-06 14:27 ` Markus Heiser
2016-05-06 15:06 ` Jani Nikula
2016-05-06 15:23 ` Mauro Carvalho Chehab
2016-05-06 15:35 ` Markus Heiser
2016-05-06 15:52 ` Jani Nikula
2016-05-06 15:14 ` Mauro Carvalho Chehab
2016-05-04 16:15 ` Mauro Carvalho Chehab
2016-05-06 10:05 ` Markus Heiser
[not found] ` <20160506080304.56307066@recife.lan>
2016-05-06 16:26 ` Markus Heiser
2016-05-06 17:06 ` Mauro Carvalho Chehab
[not found] ` <20160412105850.50e02108@recife.lan>
2016-04-18 8:10 ` Markus Heiser
2016-04-18 11:16 ` Mauro Carvalho Chehab
[not found] ` <CAKeHnO7_7k8Qc5Jmu_x2OzAVT4YXxW8PSe_m6QUP-8V7XxbTVw@mail.gmail.com>
2016-03-08 13:30 ` Mauro Carvalho Chehab
2016-03-08 13:58 ` Jani Nikula
[not found] ` <CAKeHnO7e5Escm0Ndm50eFX-qUXf7Lg9n=iXvwUGjz2M4KHLMsQ@mail.gmail.com>
2016-03-09 8:57 ` Jani Nikula
2016-03-07 3:48 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160306232908.GA3732@linuxtv.org \
--to=js@linuxtv.org \
--cc=corbet@lwn.net \
--cc=daniel.vetter@ffwll.ch \
--cc=graham.whaley@linux.intel.com \
--cc=hverkuil@xs4all.nl \
--cc=jani.nikula@intel.com \
--cc=keithp@keithp.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).