Skip to contentSkip to conversation

First part of LaTeX build fixes for the media book

PATCH In review Mauro Carvalho Chehab 1 participant 22 messages Aug 19, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover First part of LaTeX build fixes for the media book

This one fix most of the issues with LaTeX output for the media book at the V4L2 book, before "Function Reference". So, up to page 181 of a 969 pages document.

There are still some things that I was not able to fix on this set:

- the ".. notes::" tag inside a table column are getting the wrong size. This should be fixable by rewriting a LaTeX code at conf.py, but I was unable to do that, as I'm not familiar with LaTeX syntax. Tried some things, but gave up as it was taking a lot of time. So, I just moved on to other things;

- The Sphinx ReST tables are incomplete for LaTeX. There are several missing features:

1) All LaTeX tables with a line bigger than \columwidth require an extra tag to describe column widthes (.. tabularcolumns::). Without that, it will assume that all columns are the same. The :widths: parameter of flat-table is silently ignored;

2) LaTex tables bigger than one page explicitly require a tag (.. cssclass:: longtable). Without that, the table will avance 'till the end of the page;

3) Too wide tables require to use LaTeX adjustbox extension. As Sphinx doesn't have support for it, the code should add a hack (via .. raw::
latex)

4) I got two tables where the latex tag (.. raw:: latex) didn't work. No idea why.

5) Now, several tables have several tags to initialize a table:

	.. raw:: latex

	    \newline\newline\begin{adjustbox}{width=\columnwidth}

	.. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5

cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|

.. _v4l2-mbus-pixelcode-bayer:

.. cssclass: longtable

.. flat-table:: Bayer Formats
...

The order where those things happen matter. if the order gets wrong, the tag won't do what it was expected to do.

If I got it right, cssclass should happen just before flat-table. If the table has a tag, it should be after tabularcolumns. The raw::latex seems to happen before all other tags.

There are also some troubles with Sphinx build system related to PDF generation:

- It doesn't honour SPHINXDIRS when building PDF/LaTeX files;

- Sometimes, the flat-table extension crashes, when the ":widths:" or ".. tabularcolumns::" doesn't match the size of a table. When this happens, it produces an incomplete LaTeX file until removing the contents of Documentation/output.

I'll continue working on the LaTeX output fixups. I'll later check how to solve the huge amount of warnings it outputs.

-

That's said, IMHO, the LaTeX/PDF output is very nice, as we can have everything into a single file, and the output is great, IMHO.

Once the tables are resized with adjustbox, it is even easier to read than HTML, as we can see the entire table altogether without needing to scroll on the big ones.

Markus,

It would be great if you could look on the above issues for us and see what could be done to improve it.

Mauro Carvalho Chehab (20):
[media] docs-rst: re-generate typical_media_device.pdf [media] docs-rst: add tabularcolumns to all tables
[media] control.rst: Fix table width
[media] extended-controls.rst: fix table sizes
[media] docs-rst: add column hints for pixfmt-002 and pixfmt-006 [media] pixfmt-packed-rgb.rst: Fix cell spans
[media] pixfmt-packed-rgb.rst: adjust tables to fit in LaTeX [media] pixfmt-packed-yuv.rst: adjust tables to fit in LaTeX [media] docs-rst: remove width hints from pixfmt byte order tables [media] buffer.rst: Adjust table columns for LaTeX output [media] dev-overlay.rst: don't ident a note
[media] dev-raw-vbi.rst: add a footnote for the count limits [media] dev-raw-vbi.rst: adjust table columns for LaTeX output [media] docs-rst: re-generate vbi_525.pdf and vbi_625.pdf [media] dev-sliced-vbi.rst: use a footnote for VBI images [media] dev-sliced-vbi.rst: Adjust tables on LaTeX output [media] dev-rds.rst: adjust table dimentions for LaTeX [media] dev-subdev.rst: make table fully visible on LaTeX [media] subdev-formats.rst: adjust most of the tables to fill in page [media] diff-v4l.rst: Make capabilities table fit in LaTeX

 .../media/media_api_files/typical_media_device.pdf |  Bin 134268 -> 52895 bytes
 .../media/uapi/cec/cec-ioc-adap-g-caps.rst         |    4 +
 .../media/uapi/cec/cec-ioc-adap-g-log-addrs.rst    |   10 +
 Documentation/media/uapi/cec/cec-ioc-dqevent.rst   |   10 +
 Documentation/media/uapi/cec/cec-ioc-g-mode.rst    |    6 +
 Documentation/media/uapi/cec/cec-ioc-receive.rst   |    6 +
 .../media/uapi/dvb/fe-diseqc-recv-slave-reply.rst  |    2 +
 .../media/uapi/dvb/fe-diseqc-send-master-cmd.rst   |    2 +
 Documentation/media/uapi/dvb/fe-get-info.rst       |    2 +
 Documentation/media/uapi/dvb/fe-type-t.rst         |    2 +
 Documentation/media/uapi/gen-errors.rst            |    2 +
 .../media/uapi/mediactl/media-ioc-device-info.rst  |    2 +
 .../uapi/mediactl/media-ioc-enum-entities.rst      |    2 +
 .../media/uapi/mediactl/media-ioc-enum-links.rst   |    6 +
 .../media/uapi/mediactl/media-ioc-g-topology.rst   |   12 +
 Documentation/media/uapi/rc/rc-tables.rst          |    2 +
 Documentation/media/uapi/v4l/buffer.rst            |   28 +-
 Documentation/media/uapi/v4l/control.rst           |    4 +-
 Documentation/media/uapi/v4l/dev-overlay.rst       |   10 +-
 Documentation/media/uapi/v4l/dev-raw-vbi.rst       |   16 +-
 .../media/uapi/v4l/dev-raw-vbi_files/vbi_525.pdf   |  Bin 3395 -> 3706 bytes
 .../media/uapi/v4l/dev-raw-vbi_files/vbi_625.pdf   |  Bin 3683 -> 3996 bytes
 Documentation/media/uapi/v4l/dev-rds.rst           |    6 +
 Documentation/media/uapi/v4l/dev-sdr.rst           |    2 +
 Documentation/media/uapi/v4l/dev-sliced-vbi.rst    |   50 +-
 Documentation/media/uapi/v4l/dev-subdev.rst        |    9 +
 Documentation/media/uapi/v4l/diff-v4l.rst          |    4 +-
 Documentation/media/uapi/v4l/extended-controls.rst |   63 +-
 Documentation/media/uapi/v4l/field-order.rst       |    2 +
 Documentation/media/uapi/v4l/pixfmt-002.rst        |    4 +
 Documentation/media/uapi/v4l/pixfmt-003.rst        |    4 +
 Documentation/media/uapi/v4l/pixfmt-006.rst        |    5 +
 Documentation/media/uapi/v4l/pixfmt-007.rst        |   18 +
 Documentation/media/uapi/v4l/pixfmt-013.rst        |    2 +
 Documentation/media/uapi/v4l/pixfmt-grey.rst       |    5 -
 Documentation/media/uapi/v4l/pixfmt-m420.rst       |    4 -
 Documentation/media/uapi/v4l/pixfmt-nv12.rst       |    4 -
 Documentation/media/uapi/v4l/pixfmt-nv12m.rst      |    3 -
 Documentation/media/uapi/v4l/pixfmt-nv12mt.rst     |    2 -
 Documentation/media/uapi/v4l/pixfmt-nv16.rst       |    5 -
 Documentation/media/uapi/v4l/pixfmt-nv16m.rst      |    5 -
 Documentation/media/uapi/v4l/pixfmt-nv24.rst       |    5 -
 Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst |  115 +-
 Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst |   26 +-
 Documentation/media/uapi/v4l/pixfmt-reserved.rst   |    4 +
 Documentation/media/uapi/v4l/pixfmt-sbggr16.rst    |    6 -
 Documentation/media/uapi/v4l/pixfmt-sbggr8.rst     |    4 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst   |    5 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst |    5 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst   |    6 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst |    4 -
 Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst |    3 +-
 Documentation/media/uapi/v4l/pixfmt-sgbrg8.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-sgrbg8.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-srggb10.rst    |    3 +-
 .../media/uapi/v4l/pixfmt-srggb10alaw8.rst         |    2 -
 Documentation/media/uapi/v4l/pixfmt-srggb10p.rst   |   12 +-
 Documentation/media/uapi/v4l/pixfmt-srggb12.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-srggb8.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-uv8.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-uyvy.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-vyuy.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y10.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y10b.rst       |    6 -
 Documentation/media/uapi/v4l/pixfmt-y12.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y12i.rst       |    3 -
 Documentation/media/uapi/v4l/pixfmt-y16-be.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y16.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y41p.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y8i.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv410.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv411p.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv420.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv420m.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv422m.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv422p.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv444m.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuyv.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yvyu.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-z16.rst        |    3 +-
 Documentation/media/uapi/v4l/subdev-formats.rst    | 5577 ++++++++++----------
 .../media/uapi/v4l/vidioc-create-bufs.rst          |    2 +
 Documentation/media/uapi/v4l/vidioc-cropcap.rst    |    4 +
 .../media/uapi/v4l/vidioc-dbg-g-chip-info.rst      |    6 +
 .../media/uapi/v4l/vidioc-dbg-g-register.rst       |    4 +
 .../media/uapi/v4l/vidioc-decoder-cmd.rst          |    4 +
 Documentation/media/uapi/v4l/vidioc-dqevent.rst    |   18 +
 .../media/uapi/v4l/vidioc-dv-timings-cap.rst       |    4 +
 .../media/uapi/v4l/vidioc-encoder-cmd.rst          |    6 +
 .../media/uapi/v4l/vidioc-enum-dv-timings.rst      |    2 +
 Documentation/media/uapi/v4l/vidioc-enum-fmt.rst   |    4 +
 .../media/uapi/v4l/vidioc-enum-frameintervals.rst  |    4 +
 .../media/uapi/v4l/vidioc-enum-framesizes.rst      |    6 +
 .../media/uapi/v4l/vidioc-enum-freq-bands.rst      |    4 +
 Documentation/media/uapi/v4l/vidioc-enuminput.rst  |    6 +
 Documentation/media/uapi/v4l/vidioc-enumoutput.rst |    6 +
 Documentation/media/uapi/v4l/vidioc-enumstd.rst    |    6 +
 Documentation/media/uapi/v4l/vidioc-expbuf.rst     |    2 +
 Documentation/media/uapi/v4l/vidioc-g-audio.rst    |    6 +
 Documentation/media/uapi/v4l/vidioc-g-audioout.rst |    2 +
 Documentation/media/uapi/v4l/vidioc-g-crop.rst     |    2 +
 Documentation/media/uapi/v4l/vidioc-g-ctrl.rst     |    2 +
 .../media/uapi/v4l/vidioc-g-dv-timings.rst         |    6 +
 Documentation/media/uapi/v4l/vidioc-g-edid.rst     |    2 +
 .../media/uapi/v4l/vidioc-g-enc-index.rst          |    6 +
 .../media/uapi/v4l/vidioc-g-ext-ctrls.rst          |    6 +
 Documentation/media/uapi/v4l/vidioc-g-fbuf.rst     |    6 +
 .../media/uapi/v4l/vidioc-g-frequency.rst          |    2 +
 Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst |    4 +
 .../media/uapi/v4l/vidioc-g-modulator.rst          |    4 +
 Documentation/media/uapi/v4l/vidioc-g-parm.rst     |   10 +
 Documentation/media/uapi/v4l/vidioc-g-priority.rst |    2 +
 .../media/uapi/v4l/vidioc-g-selection.rst          |    2 +
 .../media/uapi/v4l/vidioc-g-sliced-vbi-cap.rst     |    4 +
 Documentation/media/uapi/v4l/vidioc-g-tuner.rst    |    8 +
 Documentation/media/uapi/v4l/vidioc-queryctrl.rst  |   10 +
 Documentation/media/uapi/v4l/vidioc-reqbufs.rst    |    2 +
 .../media/uapi/v4l/vidioc-s-hw-freq-seek.rst       |    2 +
 .../uapi/v4l/vidioc-subdev-enum-frame-interval.rst |    2 +
 .../uapi/v4l/vidioc-subdev-enum-frame-size.rst     |    2 +
 .../uapi/v4l/vidioc-subdev-enum-mbus-code.rst      |    2 +
 .../media/uapi/v4l/vidioc-subdev-g-crop.rst        |    2 +
 .../media/uapi/v4l/vidioc-subdev-g-fmt.rst         |    4 +
 .../uapi/v4l/vidioc-subdev-g-frame-interval.rst    |    2 +
 .../media/uapi/v4l/vidioc-subdev-g-selection.rst   |    2 +
 .../media/uapi/v4l/vidioc-subscribe-event.rst      |    4 +
 126 files changed, 3375 insertions(+), 3001 deletions(-)

--
2.7.4

#1 lore raw

Em Thu, 18 Aug 2016 13:15:29 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:

Quoted 47 lines

This one fix most of the issues with LaTeX output for the media book at the V4L2 book, before "Function Reference". So, up to page 181 of a 969 pages document.

There are still some things that I was not able to fix on this set:

- the ".. notes::" tag inside a table column are getting the wrong size. This should be fixable by rewriting a LaTeX code at conf.py, but I was unable to do that, as I'm not familiar with LaTeX syntax. Tried some things, but gave up as it was taking a lot of time. So, I just moved on to other things;

- The Sphinx ReST tables are incomplete for LaTeX. There are several missing features:

1) All LaTeX tables with a line bigger than \columwidth require an extra tag to describe column widthes (.. tabularcolumns::). Without that, it will assume that all columns are the same. The :widths: parameter of flat-table is silently ignored;

2) LaTex tables bigger than one page explicitly require a tag (.. cssclass:: longtable). Without that, the table will avance 'till the end of the page;

3) Too wide tables require to use LaTeX adjustbox extension. As Sphinx doesn't have support for it, the code should add a hack (via .. raw::
latex)

4) I got two tables where the latex tag (.. raw:: latex) didn't work. No idea why.

5) Now, several tables have several tags to initialize a table:

	.. raw:: latex

	    \newline\newline\begin{adjustbox}{width=\columnwidth}

	.. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5

cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|

.. _v4l2-mbus-pixelcode-bayer:

.. cssclass: longtable

.. flat-table:: Bayer Formats
...

Quoted 6 lines

The order where those things happen matter. if the order gets wrong, the tag won't do what it was expected to do.

If I got it right, cssclass should happen just before flat-table. If the table has a tag, it should be after tabularcolumns. The raw::latex seems to happen before all other tags.

There is one additional issue I forgot to mention: when cell spans are used, on the spanned cell, LaTeX does the wrong thing:
sometimes, it expects manual line breaks. Also, it doesn't justify the spanned columns.

Quoted 180 lines

There are also some troubles with Sphinx build system related to PDF generation:

- It doesn't honour SPHINXDIRS when building PDF/LaTeX files;

- Sometimes, the flat-table extension crashes, when the ":widths:" or ".. tabularcolumns::" doesn't match the size of a table. When this happens, it produces an incomplete LaTeX file until removing the contents of Documentation/output.

I'll continue working on the LaTeX output fixups. I'll later check how to solve the huge amount of warnings it outputs.

-

That's said, IMHO, the LaTeX/PDF output is very nice, as we can have everything into a single file, and the output is great, IMHO.

Once the tables are resized with adjustbox, it is even easier to read than HTML, as we can see the entire table altogether without needing to scroll on the big ones.

Markus,

It would be great if you could look on the above issues for us and see what could be done to improve it.

Mauro Carvalho Chehab (20):
[media] docs-rst: re-generate typical_media_device.pdf [media] docs-rst: add tabularcolumns to all tables
[media] control.rst: Fix table width
[media] extended-controls.rst: fix table sizes
[media] docs-rst: add column hints for pixfmt-002 and pixfmt-006 [media] pixfmt-packed-rgb.rst: Fix cell spans
[media] pixfmt-packed-rgb.rst: adjust tables to fit in LaTeX [media] pixfmt-packed-yuv.rst: adjust tables to fit in LaTeX [media] docs-rst: remove width hints from pixfmt byte order tables [media] buffer.rst: Adjust table columns for LaTeX output [media] dev-overlay.rst: don't ident a note
[media] dev-raw-vbi.rst: add a footnote for the count limits [media] dev-raw-vbi.rst: adjust table columns for LaTeX output [media] docs-rst: re-generate vbi_525.pdf and vbi_625.pdf [media] dev-sliced-vbi.rst: use a footnote for VBI images [media] dev-sliced-vbi.rst: Adjust tables on LaTeX output [media] dev-rds.rst: adjust table dimentions for LaTeX [media] dev-subdev.rst: make table fully visible on LaTeX [media] subdev-formats.rst: adjust most of the tables to fill in page [media] diff-v4l.rst: Make capabilities table fit in LaTeX

 .../media/media_api_files/typical_media_device.pdf |  Bin 134268 -> 52895 bytes
 .../media/uapi/cec/cec-ioc-adap-g-caps.rst         |    4 +
 .../media/uapi/cec/cec-ioc-adap-g-log-addrs.rst    |   10 +
 Documentation/media/uapi/cec/cec-ioc-dqevent.rst   |   10 +
 Documentation/media/uapi/cec/cec-ioc-g-mode.rst    |    6 +
 Documentation/media/uapi/cec/cec-ioc-receive.rst   |    6 +
 .../media/uapi/dvb/fe-diseqc-recv-slave-reply.rst  |    2 +
 .../media/uapi/dvb/fe-diseqc-send-master-cmd.rst   |    2 +
 Documentation/media/uapi/dvb/fe-get-info.rst       |    2 +
 Documentation/media/uapi/dvb/fe-type-t.rst         |    2 +
 Documentation/media/uapi/gen-errors.rst            |    2 +
 .../media/uapi/mediactl/media-ioc-device-info.rst  |    2 +
 .../uapi/mediactl/media-ioc-enum-entities.rst      |    2 +
 .../media/uapi/mediactl/media-ioc-enum-links.rst   |    6 +
 .../media/uapi/mediactl/media-ioc-g-topology.rst   |   12 +
 Documentation/media/uapi/rc/rc-tables.rst          |    2 +
 Documentation/media/uapi/v4l/buffer.rst            |   28 +-
 Documentation/media/uapi/v4l/control.rst           |    4 +-
 Documentation/media/uapi/v4l/dev-overlay.rst       |   10 +-
 Documentation/media/uapi/v4l/dev-raw-vbi.rst       |   16 +-
 .../media/uapi/v4l/dev-raw-vbi_files/vbi_525.pdf   |  Bin 3395 -> 3706 bytes
 .../media/uapi/v4l/dev-raw-vbi_files/vbi_625.pdf   |  Bin 3683 -> 3996 bytes
 Documentation/media/uapi/v4l/dev-rds.rst           |    6 +
 Documentation/media/uapi/v4l/dev-sdr.rst           |    2 +
 Documentation/media/uapi/v4l/dev-sliced-vbi.rst    |   50 +-
 Documentation/media/uapi/v4l/dev-subdev.rst        |    9 +
 Documentation/media/uapi/v4l/diff-v4l.rst          |    4 +-
 Documentation/media/uapi/v4l/extended-controls.rst |   63 +-
 Documentation/media/uapi/v4l/field-order.rst       |    2 +
 Documentation/media/uapi/v4l/pixfmt-002.rst        |    4 +
 Documentation/media/uapi/v4l/pixfmt-003.rst        |    4 +
 Documentation/media/uapi/v4l/pixfmt-006.rst        |    5 +
 Documentation/media/uapi/v4l/pixfmt-007.rst        |   18 +
 Documentation/media/uapi/v4l/pixfmt-013.rst        |    2 +
 Documentation/media/uapi/v4l/pixfmt-grey.rst       |    5 -
 Documentation/media/uapi/v4l/pixfmt-m420.rst       |    4 -
 Documentation/media/uapi/v4l/pixfmt-nv12.rst       |    4 -
 Documentation/media/uapi/v4l/pixfmt-nv12m.rst      |    3 -
 Documentation/media/uapi/v4l/pixfmt-nv12mt.rst     |    2 -
 Documentation/media/uapi/v4l/pixfmt-nv16.rst       |    5 -
 Documentation/media/uapi/v4l/pixfmt-nv16m.rst      |    5 -
 Documentation/media/uapi/v4l/pixfmt-nv24.rst       |    5 -
 Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst |  115 +-
 Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst |   26 +-
 Documentation/media/uapi/v4l/pixfmt-reserved.rst   |    4 +
 Documentation/media/uapi/v4l/pixfmt-sbggr16.rst    |    6 -
 Documentation/media/uapi/v4l/pixfmt-sbggr8.rst     |    4 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst   |    5 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst |    5 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst   |    6 -
 Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst |    4 -
 Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst |    3 +-
 Documentation/media/uapi/v4l/pixfmt-sgbrg8.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-sgrbg8.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-srggb10.rst    |    3 +-
 .../media/uapi/v4l/pixfmt-srggb10alaw8.rst         |    2 -
 Documentation/media/uapi/v4l/pixfmt-srggb10p.rst   |   12 +-
 Documentation/media/uapi/v4l/pixfmt-srggb12.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-srggb8.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-uv8.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-uyvy.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-vyuy.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y10.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y10b.rst       |    6 -
 Documentation/media/uapi/v4l/pixfmt-y12.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y12i.rst       |    3 -
 Documentation/media/uapi/v4l/pixfmt-y16-be.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y16.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y41p.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-y8i.rst        |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv410.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv411p.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv420.rst     |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv420m.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv422m.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv422p.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuv444m.rst    |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yuyv.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-yvyu.rst       |    3 +-
 Documentation/media/uapi/v4l/pixfmt-z16.rst        |    3 +-
 Documentation/media/uapi/v4l/subdev-formats.rst    | 5577 ++++++++++----------
 .../media/uapi/v4l/vidioc-create-bufs.rst          |    2 +
 Documentation/media/uapi/v4l/vidioc-cropcap.rst    |    4 +
 .../media/uapi/v4l/vidioc-dbg-g-chip-info.rst      |    6 +
 .../media/uapi/v4l/vidioc-dbg-g-register.rst       |    4 +
 .../media/uapi/v4l/vidioc-decoder-cmd.rst          |    4 +
 Documentation/media/uapi/v4l/vidioc-dqevent.rst    |   18 +
 .../media/uapi/v4l/vidioc-dv-timings-cap.rst       |    4 +
 .../media/uapi/v4l/vidioc-encoder-cmd.rst          |    6 +
 .../media/uapi/v4l/vidioc-enum-dv-timings.rst      |    2 +
 Documentation/media/uapi/v4l/vidioc-enum-fmt.rst   |    4 +
 .../media/uapi/v4l/vidioc-enum-frameintervals.rst  |    4 +
 .../media/uapi/v4l/vidioc-enum-framesizes.rst      |    6 +
 .../media/uapi/v4l/vidioc-enum-freq-bands.rst      |    4 +
 Documentation/media/uapi/v4l/vidioc-enuminput.rst  |    6 +
 Documentation/media/uapi/v4l/vidioc-enumoutput.rst |    6 +
 Documentation/media/uapi/v4l/vidioc-enumstd.rst    |    6 +
 Documentation/media/uapi/v4l/vidioc-expbuf.rst     |    2 +
 Documentation/media/uapi/v4l/vidioc-g-audio.rst    |    6 +
 Documentation/media/uapi/v4l/vidioc-g-audioout.rst |    2 +
 Documentation/media/uapi/v4l/vidioc-g-crop.rst     |    2 +
 Documentation/media/uapi/v4l/vidioc-g-ctrl.rst     |    2 +
 .../media/uapi/v4l/vidioc-g-dv-timings.rst         |    6 +
 Documentation/media/uapi/v4l/vidioc-g-edid.rst     |    2 +
 .../media/uapi/v4l/vidioc-g-enc-index.rst          |    6 +
 .../media/uapi/v4l/vidioc-g-ext-ctrls.rst          |    6 +
 Documentation/media/uapi/v4l/vidioc-g-fbuf.rst     |    6 +
 .../media/uapi/v4l/vidioc-g-frequency.rst          |    2 +
 Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst |    4 +
 .../media/uapi/v4l/vidioc-g-modulator.rst          |    4 +
 Documentation/media/uapi/v4l/vidioc-g-parm.rst     |   10 +
 Documentation/media/uapi/v4l/vidioc-g-priority.rst |    2 +
 .../media/uapi/v4l/vidioc-g-selection.rst          |    2 +
 .../media/uapi/v4l/vidioc-g-sliced-vbi-cap.rst     |    4 +
 Documentation/media/uapi/v4l/vidioc-g-tuner.rst    |    8 +
 Documentation/media/uapi/v4l/vidioc-queryctrl.rst  |   10 +
 Documentation/media/uapi/v4l/vidioc-reqbufs.rst    |    2 +
 .../media/uapi/v4l/vidioc-s-hw-freq-seek.rst       |    2 +
 .../uapi/v4l/vidioc-subdev-enum-frame-interval.rst |    2 +
 .../uapi/v4l/vidioc-subdev-enum-frame-size.rst     |    2 +
 .../uapi/v4l/vidioc-subdev-enum-mbus-code.rst      |    2 +
 .../media/uapi/v4l/vidioc-subdev-g-crop.rst        |    2 +
 .../media/uapi/v4l/vidioc-subdev-g-fmt.rst         |    4 +
 .../uapi/v4l/vidioc-subdev-g-frame-interval.rst    |    2 +
 .../media/uapi/v4l/vidioc-subdev-g-selection.rst   |    2 +
 .../media/uapi/v4l/vidioc-subscribe-event.rst      |    4 +
 126 files changed, 3375 insertions(+), 3001 deletions(-)
Quoted 4 lines

--
2.7.4

Thanks,
Mauro

#2 lore raw

PATCH 1/20 docs-rst: re-generate typical_media_device.pdf

In reply to Mauro Carvalho Chehab

There are some texts there on the wrong place. Re-generate it from the svg file.

---
 .../media/media_api_files/typical_media_device.pdf | Bin 134268 -> 52895 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
Documentation/media/media_api_files/typical_media_device.pdf binary +0 -0
index eb30458138157e452e701af0bce24d00dd2e17f6..d000d802b20f0b958a0f965ffa435cbb06a371f8 100644
GIT binary patch
Signature · 1 line
2.7.4
#3 lore raw

PATCH 2/20 docs-rst: add tabularcolumns to all tables

In reply to Mauro Carvalho Chehab

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;

---
 Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst   |  4 ++++
 .../media/uapi/cec/cec-ioc-adap-g-log-addrs.rst        | 10 ++++++++++
 Documentation/media/uapi/cec/cec-ioc-dqevent.rst       | 10 ++++++++++
 Documentation/media/uapi/cec/cec-ioc-g-mode.rst        |  6 ++++++
 Documentation/media/uapi/cec/cec-ioc-receive.rst       |  6 ++++++
 .../media/uapi/dvb/fe-diseqc-recv-slave-reply.rst      |  2 ++
 .../media/uapi/dvb/fe-diseqc-send-master-cmd.rst       |  2 ++
 Documentation/media/uapi/dvb/fe-get-info.rst           |  2 ++
 Documentation/media/uapi/dvb/fe-type-t.rst             |  2 ++
 Documentation/media/uapi/gen-errors.rst                |  2 ++
 .../media/uapi/mediactl/media-ioc-device-info.rst      |  2 ++
 .../media/uapi/mediactl/media-ioc-enum-entities.rst    |  2 ++
 .../media/uapi/mediactl/media-ioc-enum-links.rst       |  6 ++++++
 .../media/uapi/mediactl/media-ioc-g-topology.rst       | 12 ++++++++++++
 Documentation/media/uapi/rc/rc-tables.rst              |  2 ++
 Documentation/media/uapi/v4l/buffer.rst                | 16 ++++++++++++++++
 Documentation/media/uapi/v4l/dev-raw-vbi.rst           |  4 ++++
 Documentation/media/uapi/v4l/dev-rds.rst               |  6 ++++++
 Documentation/media/uapi/v4l/dev-sdr.rst               |  2 ++
 Documentation/media/uapi/v4l/dev-sliced-vbi.rst        | 18 ++++++++++++++++++
 Documentation/media/uapi/v4l/field-order.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-002.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-003.rst            |  4 ++++
 Documentation/media/uapi/v4l/pixfmt-007.rst            | 18 ++++++++++++++++++
 Documentation/media/uapi/v4l/pixfmt-013.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-grey.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-m420.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-nv12.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-nv12m.rst          |  2 ++
 Documentation/media/uapi/v4l/pixfmt-nv16.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-nv16m.rst          |  2 ++
 Documentation/media/uapi/v4l/pixfmt-nv24.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst     |  2 ++
 Documentation/media/uapi/v4l/pixfmt-reserved.rst       |  4 ++++
 Documentation/media/uapi/v4l/pixfmt-sbggr16.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sbggr8.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst       |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst     |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst       |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst     |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst     |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sgbrg8.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-sgrbg8.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-srggb10.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-srggb10p.rst       |  2 ++
 Documentation/media/uapi/v4l/pixfmt-srggb12.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-srggb8.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-uv8.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-uyvy.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-vyuy.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y10.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y10b.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y12.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y12i.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y16-be.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y16.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y41p.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-y8i.rst            |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv410.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv411p.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv420.rst         |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv420m.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv422m.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv422p.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuv444m.rst        |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yuyv.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-yvyu.rst           |  2 ++
 Documentation/media/uapi/v4l/pixfmt-z16.rst            |  2 ++
 Documentation/media/uapi/v4l/subdev-formats.rst        |  2 ++
 Documentation/media/uapi/v4l/vidioc-create-bufs.rst    |  2 ++
 Documentation/media/uapi/v4l/vidioc-cropcap.rst        |  4 ++++
 .../media/uapi/v4l/vidioc-dbg-g-chip-info.rst          |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-dbg-g-register.rst |  4 ++++
 Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst    |  4 ++++
 Documentation/media/uapi/v4l/vidioc-dqevent.rst        | 18 ++++++++++++++++++
 Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst |  4 ++++
 Documentation/media/uapi/v4l/vidioc-encoder-cmd.rst    |  6 ++++++
 .../media/uapi/v4l/vidioc-enum-dv-timings.rst          |  2 ++
 Documentation/media/uapi/v4l/vidioc-enum-fmt.rst       |  4 ++++
 .../media/uapi/v4l/vidioc-enum-frameintervals.rst      |  4 ++++
 .../media/uapi/v4l/vidioc-enum-framesizes.rst          |  6 ++++++
 .../media/uapi/v4l/vidioc-enum-freq-bands.rst          |  4 ++++
 Documentation/media/uapi/v4l/vidioc-enuminput.rst      |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-enumoutput.rst     |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-enumstd.rst        |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-expbuf.rst         |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-audio.rst        |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-g-audioout.rst     |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-crop.rst         |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-ctrl.rst         |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst   |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-g-edid.rst         |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-enc-index.rst    |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst    |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-g-fbuf.rst         |  6 ++++++
 Documentation/media/uapi/v4l/vidioc-g-frequency.rst    |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst     |  4 ++++
 Documentation/media/uapi/v4l/vidioc-g-modulator.rst    |  4 ++++
 Documentation/media/uapi/v4l/vidioc-g-parm.rst         | 10 ++++++++++
 Documentation/media/uapi/v4l/vidioc-g-priority.rst     |  2 ++
 Documentation/media/uapi/v4l/vidioc-g-selection.rst    |  2 ++
 .../media/uapi/v4l/vidioc-g-sliced-vbi-cap.rst         |  4 ++++
 Documentation/media/uapi/v4l/vidioc-g-tuner.rst        |  8 ++++++++
 Documentation/media/uapi/v4l/vidioc-queryctrl.rst      | 10 ++++++++++
 Documentation/media/uapi/v4l/vidioc-reqbufs.rst        |  2 ++
 Documentation/media/uapi/v4l/vidioc-s-hw-freq-seek.rst |  2 ++
 .../uapi/v4l/vidioc-subdev-enum-frame-interval.rst     |  2 ++
 .../media/uapi/v4l/vidioc-subdev-enum-frame-size.rst   |  2 ++
 .../media/uapi/v4l/vidioc-subdev-enum-mbus-code.rst    |  2 ++
 Documentation/media/uapi/v4l/vidioc-subdev-g-crop.rst  |  2 ++
 Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst   |  4 ++++
 .../media/uapi/v4l/vidioc-subdev-g-frame-interval.rst  |  2 ++
 .../media/uapi/v4l/vidioc-subdev-g-selection.rst       |  2 ++
 .../media/uapi/v4l/vidioc-subscribe-event.rst          |  4 ++++
 114 files changed, 430 insertions(+)
Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst +4 -0
index 2516d4c3a4c8..4e70eae7e6ab 100644
@@ -44,6 +44,8 @@ returns the information to the application. The ioctl never fails.
 
 .. _cec-caps:
 
+.. tabularcolumns:: |p{1.0cm}|p{1.0cm}|p{15.5cm}|
+
 .. flat-table:: struct cec_caps
     :header-rows:  0
     :stub-columns: 0
@@ -89,6 +91,8 @@ returns the information to the application. The ioctl never fails.
 
 .. _cec-capabilities:
 
+.. tabularcolumns:: |p{4.4cm}|p{1.5cm}|p{11.6cm}|
+
 .. flat-table:: CEC Capabilities Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/cec/cec-ioc-adap-g-log-addrs.rst +10 -0
index 359f7b3aa91a..11fac7e24554 100644
@@ -69,6 +69,8 @@ logical address types are already defined will return with error ``EBUSY``.
 
 .. _cec-log-addrs:
 
+.. tabularcolumns:: |p{1.0cm}|p{1.0cm}|p{15.5cm}|
+
 .. flat-table:: struct cec_log_addrs
     :header-rows:  0
     :stub-columns: 0
@@ -205,6 +207,8 @@ logical address types are already defined will return with error ``EBUSY``.
 
 .. _cec-versions:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: CEC Versions
     :header-rows:  0
     :stub-columns: 0
@@ -239,6 +243,8 @@ logical address types are already defined will return with error ``EBUSY``.
 
 .. _cec-prim-dev-types:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: CEC Primary Device Types
     :header-rows:  0
     :stub-columns: 0
@@ -305,6 +311,8 @@ logical address types are already defined will return with error ``EBUSY``.
 
 .. _cec-log-addr-types:
 
+.. tabularcolumns:: |p{2.6cm}|p{0.9cm}|p{14.0cm}|
+
 .. flat-table:: CEC Logical Address Types
     :header-rows:  0
     :stub-columns: 0
@@ -373,6 +381,8 @@ logical address types are already defined will return with error ``EBUSY``.
 
 .. _cec-all-dev-types-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: CEC All Device Types Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/cec/cec-ioc-dqevent.rst +10 -0
index 36eb4f907d30..b4c73ed50509 100644
@@ -54,6 +54,8 @@ it is guaranteed that the state did change in between the two events.
 
 .. _cec-event-state-change_s:
 
+.. tabularcolumns:: |p{1.8cm}|p{1.8cm}|p{13.9cm}|
+
 .. flat-table:: struct cec_event_state_change
     :header-rows:  0
     :stub-columns: 0
@@ -80,6 +82,8 @@ it is guaranteed that the state did change in between the two events.
 
 .. _cec-event-lost-msgs_s:
 
+.. tabularcolumns:: |p{1.0cm}|p{1.0cm}|p{15.5cm}|
+
 .. flat-table:: struct cec_event_lost_msgs
     :header-rows:  0
     :stub-columns: 0
@@ -106,6 +110,8 @@ it is guaranteed that the state did change in between the two events.
 
 .. _cec-event:
 
+.. tabularcolumns:: |p{1.6cm}|p{1.6cm}|p{1.6cm}|p{12.7cm}|
+
 .. flat-table:: struct cec_event
     :header-rows:  0
     :stub-columns: 0
@@ -177,6 +183,8 @@ it is guaranteed that the state did change in between the two events.
 
 .. _cec-events:
 
+.. tabularcolumns:: |p{2.6cm}|p{0.9cm}|p{14.0cm}|
+
 .. flat-table:: CEC Events Types
     :header-rows:  0
     :stub-columns: 0
@@ -206,6 +214,8 @@ it is guaranteed that the state did change in between the two events.
 
 .. _cec-event-flags:
 
+.. tabularcolumns:: |p{4.4cm}|p{1.5cm}|p{11.6cm}|
+
 .. flat-table:: CEC Event Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/cec/cec-ioc-g-mode.rst +6 -0
index c0e851f357d0..d213432eedd7 100644
@@ -76,6 +76,8 @@ Available initiator modes are:
 
 .. _cec-mode-initiator_e:
 
+.. tabularcolumns:: |p{2.6cm}|p{0.9cm}|p{14.0cm}|
+
 .. flat-table:: Initiator Modes
     :header-rows:  0
     :stub-columns: 0
@@ -119,6 +121,8 @@ Available follower modes are:
 
 .. _cec-mode-follower_e:
 
+.. tabularcolumns:: |p{2.6cm}|p{0.9cm}|p{14.0cm}|
+
 .. flat-table:: Follower Modes
     :header-rows:  0
     :stub-columns: 0
@@ -211,6 +215,8 @@ Core message processing details:
 
 .. _cec-core-processing:
 
+.. tabularcolumns:: |p{1.9cm}|p{15.6cm}|
+
 .. flat-table:: Core Message Processing
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/cec/cec-ioc-receive.rst +6 -0
index 7167a90209df..1a06c8d62ac9 100644
@@ -75,6 +75,8 @@ result.
 
 .. _cec-msg:
 
+.. tabularcolumns:: |p{1.0cm}|p{1.0cm}|p{15.5cm}|
+
 .. flat-table:: struct cec_msg
     :header-rows:  0
     :stub-columns: 0
@@ -252,6 +254,8 @@ result.
 
 .. _cec-tx-status:
 
+.. tabularcolumns:: |p{2.6cm}|p{0.9cm}|p{14.0cm}|
+
 .. flat-table:: CEC Transmit Status
     :header-rows:  0
     :stub-columns: 0
@@ -320,6 +324,8 @@ result.
 
 .. _cec-rx-status:
 
+.. tabularcolumns:: |p{2.6cm}|p{0.9cm}|p{14.0cm}|
+
 .. flat-table:: CEC Receive Status
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/dvb/fe-diseqc-recv-slave-reply.rst +2 -0
index 7bd02ac7bff4..7b32566b77a3 100644
@@ -42,6 +42,8 @@ Receives reply from a DiSEqC 2.0 command.
 struct dvb_diseqc_slave_reply
 -----------------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct dvb_diseqc_slave_reply
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/dvb/fe-diseqc-send-master-cmd.rst +2 -0
index 58a5e6ac10bd..865914bf4efe 100644
@@ -42,6 +42,8 @@ Sends a DiSEqC command to the antenna subsystem.
 struct dvb_diseqc_master_cmd
 ============================
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct dvb_diseqc_master_cmd
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/dvb/fe-get-info.rst +2 -0
index dfc7644f9dac..80644072087f 100644
@@ -47,6 +47,8 @@ returns an error.
 struct dvb_frontend_info
 ========================
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct dvb_frontend_info
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/dvb/fe-type-t.rst +2 -0
index 8ca762b42e4d..fa377fe9e104 100644
@@ -13,6 +13,8 @@ fe_type_t type, defined as:
 
 .. _fe-type:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Frontend types
     :header-rows:  1
     :stub-columns: 0
Documentation/media/uapi/gen-errors.rst +2 -0
index d6b0cfd00a3f..d37284d50e56 100644
@@ -9,6 +9,8 @@ Generic Error Codes
 
 .. _gen-errors:
 
+.. tabularcolumns:: |p{1.0cm}|p{16.5cm}|
+
 .. flat-table:: Generic error codes
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/mediactl/media-ioc-device-info.rst +2 -0
index 467d82cbb81e..567f5515a791 100644
@@ -42,6 +42,8 @@ ioctl never fails.
 
 .. _media-device-info:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct media_device_info
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/mediactl/media-ioc-enum-entities.rst +2 -0
index 12d4b25d5b94..a51c4cc9f6d3 100644
@@ -53,6 +53,8 @@ id's until they get an error.
 
 .. _media-entity-desc:
 
+.. tabularcolumns:: |p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{11.5cm}|
+
 .. flat-table:: struct media_entity_desc
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/mediactl/media-ioc-enum-links.rst +6 -0
index 87443b1ce42d..f4334f5765c6 100644
@@ -57,6 +57,8 @@ returned during the enumeration process.
 
 .. _media-links-enum:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct media_links_enum
     :header-rows:  0
     :stub-columns: 0
@@ -93,6 +95,8 @@ returned during the enumeration process.
 
 .. _media-pad-desc:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct media_pad_desc
     :header-rows:  0
     :stub-columns: 0
@@ -127,6 +131,8 @@ returned during the enumeration process.
 
 .. _media-link-desc:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct media_link_desc
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/mediactl/media-ioc-g-topology.rst +12 -0
index 2e382cc7762c..750dd11dbe03 100644
@@ -51,6 +51,8 @@ desired arrays with the media graph elements.
 
 .. _media-v2-topology:
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
+
 .. flat-table:: struct media_v2_topology
     :header-rows:  0
     :stub-columns: 0
@@ -145,6 +147,8 @@ desired arrays with the media graph elements.
 
 .. _media-v2-entity:
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
+
 .. flat-table:: struct media_v2_entity
     :header-rows:  0
     :stub-columns: 0
@@ -188,6 +192,8 @@ desired arrays with the media graph elements.
 
 .. _media-v2-interface:
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
+
 .. flat-table:: struct media_v2_interface
     :header-rows:  0
     :stub-columns: 0
@@ -239,6 +245,8 @@ desired arrays with the media graph elements.
 
 .. _media-v2-intf-devnode:
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
+
 .. flat-table:: struct media_v2_interface
     :header-rows:  0
     :stub-columns: 0
@@ -265,6 +273,8 @@ desired arrays with the media graph elements.
 
 .. _media-v2-pad:
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
+
 .. flat-table:: struct media_v2_pad
     :header-rows:  0
     :stub-columns: 0
@@ -308,6 +318,8 @@ desired arrays with the media graph elements.
 
 .. _media-v2-link:
 
+.. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
+
 .. flat-table:: struct media_v2_pad
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/rc/rc-tables.rst +2 -0
index 0bb16c4af27d..c8ae9479f842 100644
@@ -25,6 +25,8 @@ the remote via /dev/input/event devices.
 
 .. _rc_standard_keymap:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: IR default keymapping
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/buffer.rst +16 -0
index f75f959b960b..064bc03b7a1d 100644
@@ -39,6 +39,8 @@ buffer.
 struct v4l2_buffer
 ==================
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table:: struct v4l2_buffer
     :header-rows:  0
     :stub-columns: 0
@@ -282,6 +284,8 @@ struct v4l2_buffer
 struct v4l2_plane
 =================
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -399,6 +403,8 @@ struct v4l2_plane
 enum v4l2_buf_type
 ==================
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -513,6 +519,8 @@ enum v4l2_buf_type
 Buffer Flags
 ============
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -762,6 +770,8 @@ Buffer Flags
 enum v4l2_memory
 ================
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -816,6 +826,8 @@ The :ref:`struct v4l2_timecode <v4l2-timecode>` structure is designed to hold a
 struct v4l2_timecode
 --------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -886,6 +898,8 @@ struct v4l2_timecode
 Timecode Types
 --------------
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -939,6 +953,8 @@ Timecode Types
 Timecode Flags
 --------------
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/dev-raw-vbi.rst +4 -0
index d5a4b3530b69..95de08b8fbf2 100644
@@ -102,6 +102,8 @@ and always returns default parameters as :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` does
 
 .. _v4l2-vbi-format:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_vbi_format
     :header-rows:  0
     :stub-columns: 0
@@ -227,6 +229,8 @@ and always returns default parameters as :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` does
 
 .. _vbifmt-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Raw VBI Format Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/dev-rds.rst +6 -0
index fa32538d4c1f..35117414c86b 100644
@@ -95,6 +95,8 @@ RDS datastructures
 
 .. _v4l2-rds-data:
 
+.. tabularcolumns:: |p{2.5cm}|p{2.5cm}|p{12.5cm}|
+
 .. flat-table:: struct v4l2_rds_data
     :header-rows:  0
     :stub-columns: 0
@@ -129,6 +131,8 @@ RDS datastructures
 
 .. _v4l2-rds-block:
 
+.. tabularcolumns:: |p{2.9cm}|p{14.6cm}|
+
 .. flat-table:: Block description
     :header-rows:  0
     :stub-columns: 0
@@ -166,6 +170,8 @@ RDS datastructures
 
 .. _v4l2-rds-block-codes:
 
+.. tabularcolumns:: |p{2.2cm}|p{2.2cm}|p{2.2cm}|p{10.9cm}|
+
 .. flat-table:: Block defines
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/dev-sdr.rst +2 -0
index fc4053f957fb..3b6aa2a58430 100644
@@ -80,6 +80,8 @@ data transfer, set by the driver in order to inform application.
 
 .. _v4l2-sdr-format:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_sdr_format
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/dev-sliced-vbi.rst +18 -0
index ec52a825f4d6..9f59ba6847ec 100644
@@ -105,6 +105,8 @@ which may return ``EBUSY`` can be the
 struct v4l2_sliced_vbi_format
 -----------------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -250,6 +252,8 @@ struct v4l2_sliced_vbi_format
 Sliced VBI services
 -------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{2.2cm}|p{2.2cm}|p{4.4cm}|p{4.3cm}|
+
 .. flat-table::
     :header-rows:  1
     :stub-columns: 0
@@ -371,6 +375,8 @@ of one video frame. The ``id`` of unused
 struct v4l2_sliced_vbi_data
 ---------------------------
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -556,6 +562,8 @@ number).
 struct v4l2_mpeg_vbi_fmt_ivtv
 -----------------------------
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -611,6 +619,8 @@ struct v4l2_mpeg_vbi_fmt_ivtv
 Magic Constants for struct v4l2_mpeg_vbi_fmt_ivtv magic field
 -------------------------------------------------------------
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  1
     :stub-columns: 0
@@ -652,6 +662,8 @@ Magic Constants for struct v4l2_mpeg_vbi_fmt_ivtv magic field
 struct v4l2_mpeg_vbi_itv0
 -------------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -709,6 +721,8 @@ struct v4l2_mpeg_vbi_itv0
 struct v4l2_mpeg_vbi_ITV0
 -------------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -734,6 +748,8 @@ struct v4l2_mpeg_vbi_ITV0
 struct v4l2_mpeg_vbi_itv0_line
 ------------------------------
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -765,6 +781,8 @@ struct v4l2_mpeg_vbi_itv0_line
 Line Identifiers for struct v4l2_mpeg_vbi_itv0_line id field
 ------------------------------------------------------------
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  1
     :stub-columns: 0
Documentation/media/uapi/v4l/field-order.rst +2 -0
index 979fedbb2bda..95e9d2a41f1d 100644
@@ -57,6 +57,8 @@ should have the value ``V4L2_FIELD_ANY`` (0).
 enum v4l2_field
 ===============
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-002.rst +2 -0
index fae9b2d40a85..27d4e78760ba 100644
@@ -7,6 +7,8 @@ Single-planar format structure
 
 .. _v4l2-pix-format:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_pix_format
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-003.rst +4 -0
index 25c54872fbe1..8dc86b490451 100644
@@ -14,6 +14,8 @@ describing all planes of that format.
 
 .. _v4l2-plane-pix-format:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_plane_pix_format
     :header-rows:  0
     :stub-columns: 0
@@ -50,6 +52,8 @@ describing all planes of that format.
 
 .. _v4l2-pix-format-mplane:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_pix_format_mplane
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-007.rst +18 -0
index 8d4f1033663f..f097268ffc54 100644
@@ -19,6 +19,8 @@ are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: SMPTE 170M Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -123,6 +125,8 @@ and the white reference are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: Rec. 709 Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -262,6 +266,8 @@ The chromaticities of the primary colors and the white reference are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: sRGB Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -367,6 +373,8 @@ are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: Adobe RGB Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -457,6 +465,8 @@ of the primary colors and the white reference are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: BT.2020 Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -579,6 +589,8 @@ is ``V4L2_XFER_FUNC_DCI_P3``. The default Y'CbCr encoding is
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: DCI-P3 Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -656,6 +668,8 @@ and the white reference are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: SMPTE 240M Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -750,6 +764,8 @@ reference are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: NTSC 1953 Chromaticities
     :header-rows:  1
     :stub-columns: 0
@@ -852,6 +868,8 @@ are:
 
 
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: EBU Tech. 3213 Chromaticities
     :header-rows:  1
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-013.rst +2 -0
index 475f6e6fe785..bfef4f4ce6b1 100644
@@ -7,6 +7,8 @@ Compressed Formats
 
 .. _compressed-formats:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Compressed Image Formats
     :header-rows:  1
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-grey.rst +2 -0
index 761d783d4989..844fb67320be 100644
@@ -22,6 +22,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-m420.rst +2 -0
index 4c5b2969c039..ff0ed7abfef3 100644
@@ -33,6 +33,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-nv12.rst +2 -0
index cf59b28f75b7..a5b70b8a1273 100644
@@ -37,6 +37,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-nv12m.rst +2 -0
index a4e7eaeccea8..cdc24109fdf7 100644
@@ -47,6 +47,8 @@ many pad bytes after its rows.
 **Byte Order.**
 Each cell is one byte.
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-nv16.rst +2 -0
index 88aa7617f7cf..2cbdc1e6a36d 100644
@@ -36,6 +36,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-nv16m.rst +2 -0
index b7ee068f491c..98cc0550bf26 100644
@@ -39,6 +39,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-nv24.rst +2 -0
index db98f476446e..ebc27b772a38 100644
@@ -36,6 +36,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst +2 -0
index 9a909cd99361..8997b51ac230 100644
@@ -981,6 +981,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{2.5cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{0.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-reserved.rst +4 -0
index 9a5704baf9fe..d6938cd5e03e 100644
@@ -19,6 +19,8 @@ please make a proposal on the linux-media mailing list.
 
 .. _reserved-formats:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Reserved Image Formats
     :header-rows:  1
     :stub-columns: 0
@@ -341,6 +343,8 @@ please make a proposal on the linux-media mailing list.
 
 .. _format-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Format Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sbggr16.rst +2 -0
index 7f295b48748c..c2224c455e8a 100644
@@ -29,6 +29,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sbggr8.rst +2 -0
index db4c523f49a9..0a65450e017e 100644
@@ -26,6 +26,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst +2 -0
index 2736275d080f..48c2469ddd19 100644
@@ -24,6 +24,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{11.7cm}|p{5.8cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst +2 -0
index bfe5804bd84e..d8d7fd3f0ec2 100644
@@ -25,6 +25,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst +2 -0
index 68ad1717f6d7..1b7eaf652604 100644
@@ -24,6 +24,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{11.7cm}|p{5.8cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst +2 -0
index 2a1c0d4924a1..e12d267423c4 100644
@@ -24,6 +24,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst +2 -0
index 378581b27d4a..802aefe44b16 100644
@@ -23,6 +23,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sgbrg8.rst +2 -0
index 6345c24d86f3..faad9b19dadd 100644
@@ -26,6 +26,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-sgrbg8.rst +2 -0
index 51b7b8ef7519..33a7c4fdf046 100644
@@ -26,6 +26,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-srggb10.rst +2 -0
index 44a49563917c..6a32ecb7f9ad 100644
@@ -33,6 +33,8 @@ Each cell is one byte, high 6 bits in high bytes are 0.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-srggb10p.rst +2 -0
index d71368f69087..b577dbf09a8b 100644
@@ -36,6 +36,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.0cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-srggb12.rst +2 -0
index f5303ab9e79c..54355af154c8 100644
@@ -34,6 +34,8 @@ Each cell is one byte, high 6 bits in high bytes are 0.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-srggb8.rst +2 -0
index e88de4c48d47..1a6966b34c6f 100644
@@ -26,6 +26,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-uv8.rst +2 -0
index fa8f7ee9fee1..ab73e0b55d05 100644
@@ -21,6 +21,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-uyvy.rst +2 -0
index 87b0081d44ee..4c0c56003355 100644
@@ -23,6 +23,8 @@ half the horizontal resolution of the Y component.
 **Byte Order.**
 Each cell is one byte.
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-vyuy.rst +2 -0
index 5d8f99f173b6..cdebbd3a5ad2 100644
@@ -23,6 +23,8 @@ half the horizontal resolution of the Y component.
 **Byte Order.**
 Each cell is one byte.
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y10.rst +2 -0
index d22f77138289..887e6f052879 100644
@@ -23,6 +23,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y10b.rst +2 -0
index 5b50cd61e654..5f5219904a62 100644
@@ -26,6 +26,8 @@ pixels.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y12.rst +2 -0
index 7729bcbf3350..6148371909f8 100644
@@ -23,6 +23,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y12i.rst +2 -0
index 8967e8c33b47..70f2b2c1f57b 100644
@@ -29,6 +29,8 @@ these pixels can be deinterlaced using
 pixels cross the byte boundary and have a ratio of 3 bytes for each
 interleaved pixel.
 
+.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y16-be.rst +2 -0
index b16874951f0f..bc968c246ec5 100644
@@ -27,6 +27,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y16.rst +2 -0
index 10e2824da147..deb59e2a62a7 100644
@@ -27,6 +27,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y41p.rst +2 -0
index 4760174a4668..d160e3dc9115 100644
@@ -30,6 +30,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{2.5cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{0.7cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-y8i.rst +2 -0
index 7fa16ee85ab7..8b13c7476efb 100644
@@ -24,6 +24,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv410.rst +2 -0
index 8a5d1a2ee005..5d343d99922f 100644
@@ -37,6 +37,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv411p.rst +2 -0
index f85e3f388cbe..13a31d90bf11 100644
@@ -33,6 +33,8 @@ have ¼ as many pad bytes after their rows. In other words, four C x rows
 Each cell is one byte.
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv420.rst +2 -0
index b22e64c14f67..43bb676d5184 100644
@@ -38,6 +38,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv420m.rst +2 -0
index 4dab85090d7d..7f7a7dadd07d 100644
@@ -45,6 +45,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv422m.rst +2 -0
index ccb67284133a..5de85f987644 100644
@@ -44,6 +44,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv422p.rst +2 -0
index 9f34762adf18..6cdff74af7c9 100644
@@ -34,6 +34,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuv444m.rst +2 -0
index 04f34508b934..8ebef2ce0e85 100644
@@ -38,6 +38,8 @@ described in :ref:`planar-apis`.
 **Byte Order.**
 Each cell is one byte.
 
+.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yuyv.rst +2 -0
index 52917dfa9261..24fa9bbb67b6 100644
@@ -26,6 +26,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-yvyu.rst +2 -0
index e466052b68b2..346b003b23ba 100644
@@ -23,6 +23,8 @@ half the horizontal resolution of the Y component.
 **Byte Order.**
 Each cell is one byte.
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/pixfmt-z16.rst +2 -0
index 4ebc561d0480..dd9a11a6746b 100644
@@ -24,6 +24,8 @@ Each cell is one byte.
 
 
 
+.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/subdev-formats.rst +2 -0
index 6dbb27b09c34..265a6dc5fe92 100644
@@ -8,6 +8,8 @@ Media Bus Formats
 
 .. _v4l2-mbus-framefmt:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_mbus_framefmt
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-create-bufs.rst +2 -0
index abdc0b4d83d5..b4b16aebac98 100644
@@ -75,6 +75,8 @@ than the number requested.
 
 .. _v4l2-create-buffers:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_create_buffers
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-cropcap.rst +4 -0
index 8dcbe6d26219..e3d853356438 100644
@@ -54,6 +54,8 @@ overlay devices.
 
 .. _v4l2-cropcap:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_cropcap
     :header-rows:  0
     :stub-columns: 0
@@ -114,6 +116,8 @@ overlay devices.
 
 .. _v4l2-rect-crop:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_rect
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-dbg-g-chip-info.rst +6 -0
index f7e1b80af29e..b433132a7564 100644
@@ -80,6 +80,8 @@ instructions.
 
 .. _name-v4l2-dbg-match:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table:: struct v4l2_dbg_match
     :header-rows:  0
     :stub-columns: 0
@@ -124,6 +126,8 @@ instructions.
 
 .. _v4l2-dbg-chip-info:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_dbg_chip_info
     :header-rows:  0
     :stub-columns: 0
@@ -169,6 +173,8 @@ instructions.
 
 .. _name-chip-match-types:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Chip Match Types
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-dbg-g-register.rst +4 -0
index 09d2880e6170..28885cff682a 100644
@@ -88,6 +88,8 @@ instructions.
 
 .. _v4l2-dbg-match:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table:: struct v4l2_dbg_match
     :header-rows:  0
     :stub-columns: 0
@@ -173,6 +175,8 @@ instructions.
 
 .. _chip-match-types:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Chip Match Types
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst +4 -0
index 2a36e91b57b9..dad36acbb415 100644
@@ -58,6 +58,8 @@ introduced in Linux 3.3.
 
 .. _v4l2-decoder-cmd:
 
+.. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table:: struct v4l2_decoder_cmd
     :header-rows:  0
     :stub-columns: 0
@@ -187,6 +189,8 @@ introduced in Linux 3.3.
 
 .. _decoder-cmds:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Decoder Commands
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-dqevent.rst +18 -0
index 73c0d5be62ee..0a84f3a6ed92 100644
@@ -42,6 +42,8 @@ call.
 
 .. _v4l2-event:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
+
 .. flat-table:: struct v4l2_event
     :header-rows:  0
     :stub-columns: 0
@@ -177,6 +179,8 @@ call.
 
 .. _event-type:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Event Types
     :header-rows:  0
     :stub-columns: 0
@@ -304,6 +308,8 @@ call.
 
 .. _v4l2-event-vsync:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_event_vsync
     :header-rows:  0
     :stub-columns: 0
@@ -322,6 +328,8 @@ call.
 
 .. _v4l2-event-ctrl:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
+
 .. flat-table:: struct v4l2_event_ctrl
     :header-rows:  0
     :stub-columns: 0
@@ -429,6 +437,8 @@ call.
 
 .. _v4l2-event-frame-sync:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_event_frame_sync
     :header-rows:  0
     :stub-columns: 0
@@ -447,6 +457,8 @@ call.
 
 .. _v4l2-event-src-change:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_event_src_change
     :header-rows:  0
     :stub-columns: 0
@@ -466,6 +478,8 @@ call.
 
 .. _v4l2-event-motion-det:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_event_motion_det
     :header-rows:  0
     :stub-columns: 0
@@ -509,6 +523,8 @@ call.
 
 .. _ctrl-changes-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Control Changes
     :header-rows:  0
     :stub-columns: 0
@@ -548,6 +564,8 @@ call.
 
 .. _src-changes-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Source Changes
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-dv-timings-cap.rst +4 -0
index c390412d5aa9..e14e780eb0d1 100644
@@ -56,6 +56,8 @@ that doesn't support them will return an ``EINVAL`` error code.
 
 .. _v4l2-bt-timings-cap:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_bt_timings_cap
     :header-rows:  0
     :stub-columns: 0
@@ -141,6 +143,8 @@ that doesn't support them will return an ``EINVAL`` error code.
 
 .. _v4l2-dv-timings-cap:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
+
 .. flat-table:: struct v4l2_dv_timings_cap
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-encoder-cmd.rst +6 -0
index 69bd9b4e0e56..18e955ff917a 100644
@@ -66,6 +66,8 @@ introduced in Linux 2.6.21.
 
 .. _v4l2-encoder-cmd:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_encoder_cmd
     :header-rows:  0
     :stub-columns: 0
@@ -103,6 +105,8 @@ introduced in Linux 2.6.21.
 
 .. _encoder-cmds:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Encoder Commands
     :header-rows:  0
     :stub-columns: 0
@@ -164,6 +168,8 @@ introduced in Linux 2.6.21.
 
 .. _encoder-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Encoder Command Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enum-dv-timings.rst +2 -0
index 764d6cea601c..c386045885f2 100644
@@ -66,6 +66,8 @@ return an ``EINVAL`` error code.
 
 .. _v4l2-enum-dv-timings:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_enum_dv_timings
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enum-fmt.rst +4 -0
index 13d5b509a829..6bb30ade6aad 100644
@@ -48,6 +48,8 @@ one until ``EINVAL`` is returned.
 
 .. _v4l2-fmtdesc:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_fmtdesc
     :header-rows:  0
     :stub-columns: 0
@@ -129,6 +131,8 @@ one until ``EINVAL`` is returned.
 
 .. _fmtdesc-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Image Format Description Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enum-frameintervals.rst +4 -0
index 9c22a3a6938f..7541158e16d2 100644
@@ -105,6 +105,8 @@ application should zero out all members except for the *IN* fields.
 
 .. _v4l2-frmival-stepwise:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_frmival_stepwise
     :header-rows:  0
     :stub-columns: 0
@@ -233,6 +235,8 @@ Enums
 
 .. _v4l2-frmivaltypes:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: enum v4l2_frmivaltypes
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enum-framesizes.rst +6 -0
index 6e2adf6c23a3..1c23da3f26bc 100644
@@ -94,6 +94,8 @@ application should zero out all members except for the *IN* fields.
 
 .. _v4l2-frmsize-discrete:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_frmsize_discrete
     :header-rows:  0
     :stub-columns: 0
@@ -120,6 +122,8 @@ application should zero out all members except for the *IN* fields.
 
 .. _v4l2-frmsize-stepwise:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_frmsize_stepwise
     :header-rows:  0
     :stub-columns: 0
@@ -254,6 +258,8 @@ Enums
 
 .. _v4l2-frmsizetypes:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: enum v4l2_frmsizetypes
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enum-freq-bands.rst +4 -0
index ccf308bd9423..ea1ccfb43e6d 100644
@@ -45,6 +45,8 @@ of the corresponding tuner/modulator is set.
 
 .. _v4l2-frequency-band:
 
+.. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table:: struct v4l2_frequency_band
     :header-rows:  0
     :stub-columns: 0
@@ -151,6 +153,8 @@ of the corresponding tuner/modulator is set.
 
 .. _band-modulation:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Band Modulation Systems
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enuminput.rst +6 -0
index 5060f54e3d18..6b90a1a3506d 100644
@@ -43,6 +43,8 @@ at index zero, incrementing by one until the driver returns ``EINVAL``.
 
 .. _v4l2-input:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_input
     :header-rows:  0
     :stub-columns: 0
@@ -150,6 +152,8 @@ at index zero, incrementing by one until the driver returns ``EINVAL``.
 
 .. _input-type:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Input Types
     :header-rows:  0
     :stub-columns: 0
@@ -320,6 +324,8 @@ at index zero, incrementing by one until the driver returns ``EINVAL``.
 
 .. _input-capabilities:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Input capabilities
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enumoutput.rst +6 -0
index 82fc9d3b237f..13939d8d4358 100644
@@ -44,6 +44,8 @@ EINVAL.
 
 .. _v4l2-output:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_output
     :header-rows:  0
     :stub-columns: 0
@@ -140,6 +142,8 @@ EINVAL.
 
 .. _output-type:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Output Type
     :header-rows:  0
     :stub-columns: 0
@@ -175,6 +179,8 @@ EINVAL.
 
 .. _output-capabilities:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Output capabilities
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-enumstd.rst +6 -0
index f61f0c6b0723..9d7d77af0161 100644
@@ -46,6 +46,8 @@ or output. [#f1]_
 
 .. _v4l2-standard:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_standard
     :header-rows:  0
     :stub-columns: 0
@@ -114,6 +116,8 @@ or output. [#f1]_
 
 .. _v4l2-fract:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_fract
     :header-rows:  0
     :stub-columns: 0
@@ -140,6 +144,8 @@ or output. [#f1]_
 
 .. _v4l2-std-id:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: typedef v4l2_std_id
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-expbuf.rst +2 -0
index ded708e647fa..67f72ced2a00 100644
@@ -118,6 +118,8 @@ Examples
 
 .. _v4l2-exportbuffer:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_exportbuffer
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-audio.rst +6 -0
index cccbcdb8c463..21fa5571b647 100644
@@ -52,6 +52,8 @@ return the actual new audio mode.
 
 .. _v4l2-audio:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_audio
     :header-rows:  0
     :stub-columns: 0
@@ -106,6 +108,8 @@ return the actual new audio mode.
 
 .. _audio-capability:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Audio Capability Flags
     :header-rows:  0
     :stub-columns: 0
@@ -135,6 +139,8 @@ return the actual new audio mode.
 
 .. _audio-mode:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Audio Mode Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-audioout.rst +2 -0
index c9e9a550e86d..1420ddebefd0 100644
@@ -59,6 +59,8 @@ as ``VIDIOC_G_AUDOUT`` does.
 
 .. _v4l2-audioout:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_audioout
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-crop.rst +2 -0
index 6cf76497937c..08df93224a38 100644
@@ -78,6 +78,8 @@ When cropping is not supported then no parameters are changed and
 
 .. _v4l2-crop:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_crop
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-ctrl.rst +2 -0
index ee929f692ebe..e585b04b3f00 100644
@@ -56,6 +56,8 @@ These ioctls work only with user controls. For other control classes the
 
 .. _v4l2-control:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_control
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-dv-timings.rst +6 -0
index f7bf21f49092..d2ea3bf01fce 100644
@@ -70,6 +70,8 @@ EBUSY
 
 .. _v4l2-bt-timings:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_bt_timings
     :header-rows:  0
     :stub-columns: 0
@@ -223,6 +225,8 @@ EBUSY
 
 .. _v4l2-dv-timings:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
+
 .. flat-table:: struct v4l2_dv_timings
     :header-rows:  0
     :stub-columns: 0
@@ -267,6 +271,8 @@ EBUSY
 
 .. _dv-timing-types:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: DV Timing types
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-edid.rst +2 -0
index b881098b8964..721d17fc829e 100644
@@ -92,6 +92,8 @@ EDID is no longer available.
 
 .. _v4l2-edid:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_edid
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-enc-index.rst +6 -0
index f0f41ac56b80..cb094b589f0e 100644
@@ -59,6 +59,8 @@ video elementary streams.
 
 .. _v4l2-enc-idx:
 
+.. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table:: struct v4l2_enc_idx
     :header-rows:  0
     :stub-columns: 0
@@ -105,6 +107,8 @@ video elementary streams.
 
 .. _v4l2-enc-idx-entry:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_enc_idx_entry
     :header-rows:  0
     :stub-columns: 0
@@ -162,6 +166,8 @@ video elementary streams.
 
 .. _enc-idx-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Index Entry Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst +6 -0
index c91039b16d49..fee65debfee2 100644
@@ -97,6 +97,8 @@ still cause this situation.
 
 .. _v4l2-ext-control:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table:: struct v4l2_ext_control
     :header-rows:  0
     :stub-columns: 0
@@ -228,6 +230,8 @@ still cause this situation.
 
 .. _v4l2-ext-controls:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
+
 .. flat-table:: struct v4l2_ext_controls
     :header-rows:  0
     :stub-columns: 0
@@ -360,6 +364,8 @@ still cause this situation.
 
 .. _ctrl-class:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Control classes
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-fbuf.rst +6 -0
index d182d9f5a50d..dc762325be5e 100644
@@ -78,6 +78,8 @@ destructive video overlay.
 
 .. _v4l2-framebuffer:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table:: struct v4l2_framebuffer
     :header-rows:  0
     :stub-columns: 0
@@ -283,6 +285,8 @@ destructive video overlay.
 
 .. _framebuffer-cap:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Frame Buffer Capability Flags
     :header-rows:  0
     :stub-columns: 0
@@ -371,6 +375,8 @@ destructive video overlay.
 
 .. _framebuffer-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Frame Buffer Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-frequency.rst +2 -0
index a1fd2a870de4..bf0c1a13ddd7 100644
@@ -54,6 +54,8 @@ write-only ioctl, it does not return the actual new frequency.
 
 .. _v4l2-frequency:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_frequency
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst +4 -0
index f5bf8b7915ed..6f9ee18e005f 100644
@@ -57,6 +57,8 @@ encoding. You usually do want to add them.
 
 .. _v4l2-jpegcompression:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_jpegcompression
     :header-rows:  0
     :stub-columns: 0
@@ -129,6 +131,8 @@ encoding. You usually do want to add them.
 
 .. _jpeg-markers:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: JPEG Markers Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-modulator.rst +4 -0
index fcb2e4896d4d..eaa62b6bd931 100644
@@ -63,6 +63,8 @@ To change the radio frequency the
 
 .. _v4l2-modulator:
 
+.. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{3.0cm}|
+
 .. flat-table:: struct v4l2_modulator
     :header-rows:  0
     :stub-columns: 0
@@ -160,6 +162,8 @@ To change the radio frequency the
 
 .. _modulator-txsubchans:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Modulator Audio Transmission Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-parm.rst +10 -0
index 7116e0decddc..7c32fe94544a 100644
@@ -52,6 +52,8 @@ union holding separate parameters for input and output devices.
 
 .. _v4l2-streamparm:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+
 .. flat-table:: struct v4l2_streamparm
     :header-rows:  0
     :stub-columns: 0
@@ -111,6 +113,8 @@ union holding separate parameters for input and output devices.
 
 .. _v4l2-captureparm:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_captureparm
     :header-rows:  0
     :stub-columns: 0
@@ -192,6 +196,8 @@ union holding separate parameters for input and output devices.
 
 .. _v4l2-outputparm:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_outputparm
     :header-rows:  0
     :stub-columns: 0
@@ -280,6 +286,8 @@ union holding separate parameters for input and output devices.
 
 .. _parm-caps:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Streaming Parameters Capabilites
     :header-rows:  0
     :stub-columns: 0
@@ -299,6 +307,8 @@ union holding separate parameters for input and output devices.
 
 .. _parm-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Capture Parameters Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-priority.rst +2 -0
index 9f774ce400a4..3f021e6b9d0d 100644
@@ -47,6 +47,8 @@ with a pointer to this variable.
 
 .. _v4l2-priority:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: enum v4l2_priority
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-selection.rst +2 -0
index 953931fabd00..8e72f93a358e 100644
@@ -137,6 +137,8 @@ Selection targets and flags are documented in
 
 .. _v4l2-selection:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_selection
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-sliced-vbi-cap.rst +4 -0
index f3db6f677650..0d4b6b0044a0 100644
@@ -48,6 +48,8 @@ the sliced VBI API is unsupported or ``type`` is invalid.
 
 .. _v4l2-sliced-vbi-cap:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|
+
 .. flat-table:: struct v4l2_sliced_vbi_cap
     :header-rows:  0
     :stub-columns: 0
@@ -175,6 +177,8 @@ the sliced VBI API is unsupported or ``type`` is invalid.
 
 .. _vbi-services:
 
+.. tabularcolumns:: |p{4.4cm}|p{2.2cm}|p{2.2cm}|p{4.4cm}|p{4.3cm}|
+
 .. flat-table:: Sliced VBI services
     :header-rows:  1
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-g-tuner.rst +8 -0
index d209736d6a53..762918a1e58a 100644
@@ -255,6 +255,8 @@ To change the radio frequency the
 
 .. _v4l2-tuner-type:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: enum v4l2_tuner_type
     :header-rows:  0
     :stub-columns: 0
@@ -297,6 +299,8 @@ To change the radio frequency the
 
 .. _tuner-capability:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Tuner and Modulator Capability Flags
     :header-rows:  0
     :stub-columns: 0
@@ -455,6 +459,8 @@ To change the radio frequency the
 
 .. _tuner-rxsubchans:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Tuner Audio Reception Flags
     :header-rows:  0
     :stub-columns: 0
@@ -522,6 +528,8 @@ To change the radio frequency the
 
 .. _tuner-audmode:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Tuner Audio Modes
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-queryctrl.rst +10 -0
index 937ce9e32a79..b2dba5e0822b 100644
@@ -96,6 +96,8 @@ See also the examples in :ref:`control`.
 
 .. _v4l2-queryctrl:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_queryctrl
     :header-rows:  0
     :stub-columns: 0
@@ -216,6 +218,8 @@ See also the examples in :ref:`control`.
 
 .. _v4l2-query-ext-ctrl:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_query_ext_ctrl
     :header-rows:  0
     :stub-columns: 0
@@ -378,6 +382,8 @@ See also the examples in :ref:`control`.
 
 .. _v4l2-querymenu:
 
+.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{7.0cm}|p{3.5cm}|
+
 .. flat-table:: struct v4l2_querymenu
     :header-rows:  0
     :stub-columns: 0
@@ -446,6 +452,8 @@ See also the examples in :ref:`control`.
 
 .. _v4l2-ctrl-type:
 
+.. tabularcolumns:: |p{5.3cm}|p{0.9cm}|p{0.9cm}|p{0.9cm}|p{9.5cm}|
+
 .. flat-table:: enum v4l2_ctrl_type
     :header-rows:  1
     :stub-columns: 0
@@ -643,6 +651,8 @@ See also the examples in :ref:`control`.
 
 .. _control-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Control Flags
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-reqbufs.rst +2 -0
index 5d0bc6d31c07..8be9343802dc 100644
@@ -69,6 +69,8 @@ any DMA in progress, an implicit
 
 .. _v4l2-requestbuffers:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_requestbuffers
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-s-hw-freq-seek.rst +2 -0
index 5fd332a5bfee..3e4e1f12c56c 100644
@@ -63,6 +63,8 @@ error code is returned and no seek takes place.
 
 .. _v4l2-hw-freq-seek:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_hw_freq_seek
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-enum-frame-interval.rst +2 -0
index 0aa6482a91a6..1c853f3f5676 100644
@@ -64,6 +64,8 @@ multiple pads of the same sub-device is not defined.
 
 .. _v4l2-subdev-frame-interval-enum:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_frame_interval_enum
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-enum-frame-size.rst +2 -0
index 7a5811b71b68..e1bcc69f67db 100644
@@ -66,6 +66,8 @@ information about try formats.
 
 .. _v4l2-subdev-frame-size-enum:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_frame_size_enum
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-enum-mbus-code.rst +2 -0
index bc0531eb56fa..418d543ebbbf 100644
@@ -51,6 +51,8 @@ information about the try formats.
 
 .. _v4l2-subdev-mbus-code-enum:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_mbus_code_enum
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-g-crop.rst +2 -0
index ae802f1594e7..7caa04e1c2a8 100644
@@ -74,6 +74,8 @@ modified format should be as close as possible to the original request.
 
 .. _v4l2-subdev-crop:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_crop
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-g-fmt.rst +4 -0
index 90e2a6635ebc..a16b3dd4bd3c 100644
@@ -77,6 +77,8 @@ should be as close as possible to the original request.
 
 .. _v4l2-subdev-format:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_format
     :header-rows:  0
     :stub-columns: 0
@@ -122,6 +124,8 @@ should be as close as possible to the original request.
 
 .. _v4l2-subdev-format-whence:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: enum v4l2_subdev_format_whence
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-g-frame-interval.rst +2 -0
index d8a1cabbd272..2df2d8635f2b 100644
@@ -69,6 +69,8 @@ the same sub-device is not defined.
 
 .. _v4l2-subdev-frame-interval:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_frame_interval
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subdev-g-selection.rst +2 -0
index 50838a4a429e..c59a32e0cc20 100644
@@ -66,6 +66,8 @@ Selection targets and flags are documented in
 
 .. _v4l2-subdev-selection:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_subdev_selection
     :header-rows:  0
     :stub-columns: 0
Documentation/media/uapi/v4l/vidioc-subscribe-event.rst +4 -0
index 86b16faa41bb..7ae35af66123 100644
@@ -40,6 +40,8 @@ using the :ref:`VIDIOC_DQEVENT` ioctl.
 
 .. _v4l2-event-subscription:
 
+.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+
 .. flat-table:: struct v4l2_event_subscription
     :header-rows:  0
     :stub-columns: 0
@@ -91,6 +93,8 @@ using the :ref:`VIDIOC_DQEVENT` ioctl.
 
 .. _event-flags:
 
+.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+
 .. flat-table:: Event Flags
     :header-rows:  0
     :stub-columns: 0
Signature · 1 line
2.7.4
#4 lore raw

PATCH 3/20 control.rst: Fix table width

In reply to Mauro Carvalho Chehab

Manually adjust the table width for it to look nice on PDF output.

---
 Documentation/media/uapi/v4l/control.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/media/uapi/v4l/control.rst +3 -1
index 10ab53dd3163..e881cd1f30d6 100644
@@ -191,10 +191,12 @@ Control IDs
 
 
 
+.. tabularcolumns:: |p{5.5cm}|p{12cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-
+    :widths: 11 24
 
     -  .. row 1
 
Signature · 1 line
2.7.4
#5 lore raw

PATCH 4/20 extended-controls.rst: fix table sizes

In reply to Mauro Carvalho Chehab

Lots of tables at extended-controls.rst need explicit hints for LaTeX to adjust their widths. Provide that.

---
 Documentation/media/uapi/v4l/extended-controls.rst | 63 ++++++++++++----------
 1 file changed, 36 insertions(+), 27 deletions(-)
Documentation/media/uapi/v4l/extended-controls.rst +36 -27
index 782f7f3c2209..3f0f94a5eeed 100644
@@ -291,6 +291,8 @@ Codec Control IDs
 
 
 
+.. tabularcolumns:: |p{6 cm}|p{11.5cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -964,6 +966,8 @@ Codec Control IDs
 
 
 
+.. tabularcolumns:: |p{9.0cm}|p{8.5cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -1671,6 +1675,8 @@ Codec Control IDs
 
 
 
+.. tabularcolumns:: |p{5.5cm}|p{12.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -1715,11 +1721,12 @@ Codec Control IDs
 
 
 
+.. tabularcolumns:: |p{14.0cm}|p{3.5cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_MPEG_VIDEO_H264_LOOP_FILTER_MODE_ENABLED``
@@ -1918,6 +1925,8 @@ Codec Control IDs
 
 
 
+.. tabularcolumns:: |p{10.3cm}|p{7.2cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -1967,17 +1976,16 @@ Codec Control IDs
 
 .. _v4l2-mpeg-video-h264-sei-fp-arrangement-type:
 
-``V4L2_CID_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE (enum v4l2_mpeg_video_h264_sei_fp_arrangement_type)``
+``V4L2_CID_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE`` ``(enum v4l2_mpeg_video_h264_sei_fp_arrangement_type)``
     Frame packing arrangement type for H264 SEI. Applicable to the H264
     encoder. Possible values are:
 
-
+.. tabularcolumns:: |p{12cm}|p{5.5cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_CHEKERBOARD``
@@ -2023,18 +2031,17 @@ Codec Control IDs
 
 .. _v4l2-mpeg-video-h264-fmo-map-type:
 
-``V4L2_CID_MPEG_VIDEO_H264_FMO_MAP_TYPE (enum v4l2_mpeg_video_h264_fmo_map_type)``
+``V4L2_CID_MPEG_VIDEO_H264_FMO_MAP_TYPE`` ``(enum v4l2_mpeg_video_h264_fmo_map_type)``
     When using FMO, the map type divides the image in different scan
     patterns of macroblocks. Applicable to the H264 encoder. Possible
     values are:
 
-
+.. tabularcolumns:: |p{12.5cm}|p{5.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_MPEG_VIDEO_H264_FMO_MAP_TYPE_INTERLEAVED_SLICES``
@@ -2330,12 +2337,12 @@ MFC 5.1 Control IDs
     are:
 
 
+.. tabularcolumns:: |p{9.0cm}|p{8.5cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_MPEG_MFC51_FRAME_SKIP_MODE_DISABLED``
@@ -2455,6 +2462,8 @@ CX2341x Control IDs
 
 
 
+.. tabularcolumns:: |p{14.5cm}|p{3.0cm}|
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -2679,13 +2688,12 @@ VPX Control IDs
     The number of reference pictures for encoding P frames. Possible
     values are:
 
-
+.. tabularcolumns:: |p{7.9cm}|p{9.6cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_CID_MPEG_VIDEO_VPX_1_REF_FRAME``
@@ -2731,13 +2739,16 @@ VPX Control IDs
 ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_SEL (enum v4l2_vp8_golden_frame_sel)``
     Selects the golden frame for encoding. Possible values are:
 
+.. raw:: latex
 
+    \begin{adjustbox}{width=\columnwidth}
+
+.. tabularcolumns:: |p{11.0cm}|p{10.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_USE_PREV``
@@ -2750,9 +2761,12 @@ VPX Control IDs
        -  ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_USE_REF_PERIOD``
 
        -  Use the previous specific frame indicated by
-	  V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_REF_PERIOD as a
+	  ``V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_REF_PERIOD`` as a
 	  golden frame.
 
+.. raw:: latex
+
+    \end{adjustbox}
 
 
 ``V4L2_CID_MPEG_VIDEO_VPX_MIN_QP (integer)``
@@ -2862,13 +2876,12 @@ Camera Control IDs
     Determines how the camera measures the amount of light available for
     the frame exposure. Possible values are:
 
-
+.. tabularcolumns:: |p{8.5cm}|p{9.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_EXPOSURE_METERING_AVERAGE``
@@ -2970,13 +2983,12 @@ Camera Control IDs
     control may stop updates of the ``V4L2_CID_AUTO_FOCUS_STATUS``
     control value.
 
-
+.. tabularcolumns:: |p{6.5cm}|p{11.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_AUTO_FOCUS_STATUS_IDLE``
@@ -3009,7 +3021,7 @@ Camera Control IDs
 ``V4L2_CID_AUTO_FOCUS_RANGE (enum v4l2_auto_focus_range)``
     Determines auto focus distance range for which lens may be adjusted.
 
-
+.. tabularcolumns:: |p{6.5cm}|p{11.0cm}|
 
 .. flat-table::
     :header-rows:  0
@@ -3097,13 +3109,12 @@ Camera Control IDs
     representation. The following white balance presets are listed in
     order of increasing color temperature.
 
-
+.. tabularcolumns:: |p{7.0 cm}|p{10.5cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_WHITE_BALANCE_MANUAL``
@@ -3245,13 +3256,12 @@ Camera Control IDs
     to ``V4L2_SCENE_MODE_NONE`` to make sure the other possibly related
     controls are accessible. The following scene programs are defined:
 
-
+.. tabularcolumns:: |p{6.0cm}|p{11.5cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_SCENE_MODE_NONE``
@@ -3710,13 +3720,12 @@ Flash Control IDs
 ``V4L2_CID_FLASH_STROBE_SOURCE (menu)``
     Defines the source of the flash LED strobe.
 
-
+.. tabularcolumns:: |p{7.0cm}|p{10.5cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
 
-
     -  .. row 1
 
        -  ``V4L2_FLASH_STROBE_SOURCE_SOFTWARE``
@@ -3777,7 +3786,7 @@ Flash Control IDs
     an effect is chip dependent. Reading the faults resets the control
     and returns the chip to a usable state if possible.
 
-
+.. tabularcolumns:: |p{8.0cm}|p{9.5cm}|
 
 .. flat-table::
     :header-rows:  0
@@ -3888,7 +3897,7 @@ JPEG Control IDs
     how Cb and Cr components are downsampled after coverting an input
     image from RGB to Y'CbCr color space.
 
-
+.. tabularcolumns:: |p{7.0cm}|p{10.5cm}|
 
 .. flat-table::
     :header-rows:  0
@@ -4190,7 +4199,7 @@ Digital Video Control IDs
     or an analog source. The enum v4l2_dv_it_content_type defines
     the possible content types:
 
-
+.. tabularcolumns:: |p{7.0cm}|p{10.5cm}|
 
 .. flat-table::
     :header-rows:  0
@@ -4384,7 +4393,7 @@ Detect Control IDs
 ``V4L2_CID_DETECT_MD_MODE (menu)``
     Sets the motion detection mode.
 
-
+.. tabularcolumns:: |p{7.5cm}|p{10.0cm}|
 
 .. flat-table::
     :header-rows:  0
Signature · 1 line
2.7.4
#6 lore raw

PATCH 5/20 docs-rst: add column hints for pixfmt-002 and pixfmt-006

In reply to Mauro Carvalho Chehab

Add column hints for LaTeX to format columns on the tables inside pixfmt-002.rst and pixfmt-006.rst.

---
 Documentation/media/uapi/v4l/pixfmt-002.rst | 4 +++-
 Documentation/media/uapi/v4l/pixfmt-006.rst | 5 +++++
 2 files changed, 8 insertions(+), 1 deletion(-)
Documentation/media/uapi/v4l/pixfmt-002.rst +3 -1
index 27d4e78760ba..368da55e5f07 100644
@@ -7,7 +7,9 @@ Single-planar format structure
 
 .. _v4l2-pix-format:
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+.. tabularcolumns:: |p{4.0cm}|p{2.5cm}|p{11.0cm}|
+
+.. cssclass:: longtable
 
 .. flat-table:: struct v4l2_pix_format
     :header-rows:  0
Documentation/media/uapi/v4l/pixfmt-006.rst +5 -0
index 1c8321f9b1fb..56b691300158 100644
@@ -25,6 +25,7 @@ needs to be filled in.
    colorspaces except for BT.2020 which uses limited range R'G'B'
    quantization.
 
+.. tabularcolumns:: |p{6.0cm}|p{11.5cm}|
 
 .. _v4l2-colorspace:
 
@@ -183,6 +184,8 @@ needs to be filled in.
 
 .. _v4l2-ycbcr-encoding:
 
+.. tabularcolumns:: |p{6.5cm}|p{11.0cm}|
+
 .. flat-table:: V4L2 Y'CbCr Encodings
     :header-rows:  1
     :stub-columns: 0
@@ -252,6 +255,8 @@ needs to be filled in.
 
 .. _v4l2-quantization:
 
+.. tabularcolumns:: |p{6.5cm}|p{11.0cm}|
+
 .. flat-table:: V4L2 Quantization Methods
     :header-rows:  1
     :stub-columns: 0
Signature · 1 line
2.7.4
#7 lore raw

PATCH 6/20 pixfmt-packed-rgb.rst: Fix cell spans

In reply to Mauro Carvalho Chehab

There is an extra column just before eack pack of bits, to improve table reading, but the header file didn't take this into account.

Fix it.

---
 Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst | 78 ++++++++++++----------
 1 file changed, 42 insertions(+), 36 deletions(-)
Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst +42 -36
index 8997b51ac230..3a7133fbec80 100644
@@ -39,10 +39,13 @@ next to each other in memory.
        -
        -  :cspan:`7` Byte 0 in memory
 
+       -
        -  :cspan:`7` Byte 1
 
+       -
        -  :cspan:`7` Byte 2
 
+       -
        -  :cspan:`7` Byte 3
 
     -  .. row 2
@@ -205,13 +208,13 @@ next to each other in memory.
        -  b\ :sub:`0`
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`3`
 
@@ -285,7 +288,7 @@ next to each other in memory.
        -  b\ :sub:`0`
 
        -
-       -  -
+       -
 
        -  r\ :sub:`4`
 
@@ -388,7 +391,7 @@ next to each other in memory.
        -  'XR15' | (1 << 31)
 
        -
-       -  -
+       -
 
        -  r\ :sub:`4`
 
@@ -620,34 +623,34 @@ next to each other in memory.
 
        -  r\ :sub:`0`
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
     -  .. _V4L2-PIX-FMT-ABGR32:
 
@@ -781,21 +784,21 @@ next to each other in memory.
        -  r\ :sub:`0`
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
     -  .. _V4L2-PIX-FMT-ARGB32:
 
@@ -878,21 +881,21 @@ next to each other in memory.
        -  'BX24'
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -
        -  r\ :sub:`7`
@@ -1124,10 +1127,13 @@ either the corresponding ARGB or XRGB format, depending on the driver.
        -
        -  :cspan:`7` Byte 0 in memory
 
+       -
        -  :cspan:`7` Byte 1
 
+       -
        -  :cspan:`7` Byte 2
 
+       -
        -  :cspan:`7` Byte 3
 
     -  .. row 2
Signature · 1 line
2.7.4
#8 lore raw

PATCH 7/20 pixfmt-packed-rgb.rst: adjust tables to fit in LaTeX

In reply to Mauro Carvalho Chehab

Adjust the tables to fit at the LaTeX and PDF outputs.

Previously, we were displaying the long table in landscape, but it makes harder to read on displays.

This time, let's use the adjustbox to shrink the size of those long tables, as the table size can still be visible on screen, and it is a way better to read in horizontal position and visible if printed.

---
 Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst | 37 ++++++++++++++--------
 1 file changed, 24 insertions(+), 13 deletions(-)
Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst +24 -13
index 3a7133fbec80..f7245f5e0854 100644
@@ -6,11 +6,6 @@
 Packed RGB formats
 ******************
 
-*man Packed RGB formats(2)*
-
-Packed RGB formats
-
-
 Description
 ===========
 
@@ -21,11 +16,12 @@ next to each other in memory.
 
 .. raw:: latex
 
-    \begin{landscape}
-    \begin{adjustbox}{width=\columnwidth}
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
 
 .. _rgb-formats:
 
+.. 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}|
+
 .. flat-table:: Packed RGB Image Formats
     :header-rows:  2
     :stub-columns: 0
@@ -950,10 +946,9 @@ next to each other in memory.
 
 .. raw:: latex
 
-    \end{adjustbox}
-    \end{landscape}
+    \end{adjustbox}\newline\newline
 
-Bit 7 is the most significant bit.
+.. note:: Bit 7 is the most significant bit.
 
 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
@@ -983,13 +978,16 @@ devices and drivers must ignore those bits, for both
 Each cell is one byte.
 
 
+.. raw:: latex
 
-.. tabularcolumns:: |p{2.5cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{0.7cm}|
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
 
-.. flat-table::
+.. 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
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1 1 1 1 1
+    :widths:       11 3 3 3 3 3 3 3 3 3 3 3 3
 
 
     -  .. row 1
@@ -1104,6 +1102,9 @@ Each cell is one byte.
 
        -  R\ :sub:`33`
 
+.. raw:: latex
+
+    \end{adjustbox}\newline\newline
 
 Formats defined in :ref:`rgb-formats-deprecated` are deprecated and
 must not be used by new drivers. They are documented here for reference.
@@ -1113,6 +1114,13 @@ either the corresponding ARGB or XRGB format, depending on the driver.
 
 .. _rgb-formats-deprecated:
 
+.. 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}|
+
 .. flat-table:: Deprecated Packed RGB Image Formats
     :header-rows:  2
     :stub-columns: 0
@@ -1477,6 +1485,9 @@ either the corresponding ARGB or XRGB format, depending on the driver.
 
        -  b\ :sub:`0`
 
+.. raw:: latex
+
+    \end{adjustbox}\newline\newline
 
 A test utility to determine which RGB formats a driver actually supports
 is available from the LinuxTV v4l-dvb repository. See
Signature · 1 line
2.7.4
#9 lore raw

PATCH 8/20 pixfmt-packed-yuv.rst: adjust tables to fit in LaTeX

In reply to Mauro Carvalho Chehab

Adjust the table to fit at the LaTeX and PDF outputs, just like what was done with pixfmt-packed-rgb.rst.

---
 Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst | 26 ++++++++++++++--------
 1 file changed, 17 insertions(+), 9 deletions(-)
Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst +17 -9
index 54716455f453..2ffcee5b383b 100644
@@ -6,18 +6,19 @@
 Packed YUV formats
 ******************
 
-*man Packed YUV formats(2)*
-
-Packed YUV formats
-
-
 Description
 ===========
 
 Similar to the packed RGB formats these formats store the Y, Cb and Cr
 component of each pixel in one 16 or 32 bit word.
 
+.. raw:: latex
 
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
+
+.. _rgb-formats:
+
+.. 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}|
 
 .. flat-table:: Packed YUV Image Formats
     :header-rows:  2
@@ -309,8 +310,15 @@ component of each pixel in one 16 or 32 bit word.
 
        -  Cr\ :sub:`0`
 
+.. raw:: latex
 
-Bit 7 is the most significant bit. The value of a = alpha bits is
-undefined when reading from the driver, ignored when writing to the
-driver, except when alpha blending has been negotiated for a
-:ref:`Video Overlay <overlay>` or :ref:`Video Output Overlay <osd>`.
+    \end{adjustbox}\newline\newline
+
+.. note::
+
+    #) Bit 7 is the most significant bit;
+
+    #) The value of a = alpha bits is undefined when reading from the driver,
+       ignored when writing to the driver, except when alpha blending has
+       been negotiated for a :ref:`Video Overlay <overlay>` or
+       :ref:`Video Output Overlay <osd>`.
Signature · 1 line
2.7.4
#10 lore raw

PATCH 9/20 docs-rst: remove width hints from pixfmt byte order tables

In reply to Mauro Carvalho Chehab

Those hints are wrong, and doesn't really improve the look of those tables. So, keep them only when they're useful.

---
 Documentation/media/uapi/v4l/pixfmt-grey.rst         |  7 -------
 Documentation/media/uapi/v4l/pixfmt-m420.rst         |  6 ------
 Documentation/media/uapi/v4l/pixfmt-nv12.rst         |  6 ------
 Documentation/media/uapi/v4l/pixfmt-nv12m.rst        |  5 -----
 Documentation/media/uapi/v4l/pixfmt-nv12mt.rst       |  2 --
 Documentation/media/uapi/v4l/pixfmt-nv16.rst         |  7 -------
 Documentation/media/uapi/v4l/pixfmt-nv16m.rst        |  7 -------
 Documentation/media/uapi/v4l/pixfmt-nv24.rst         |  7 -------
 Documentation/media/uapi/v4l/pixfmt-sbggr16.rst      |  8 --------
 Documentation/media/uapi/v4l/pixfmt-sbggr8.rst       |  6 ------
 Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst     |  7 -------
 Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst   |  7 -------
 Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst     |  8 --------
 Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst   |  6 ------
 Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst   |  3 ---
 Documentation/media/uapi/v4l/pixfmt-sgbrg8.rst       |  3 ---
 Documentation/media/uapi/v4l/pixfmt-sgrbg8.rst       |  3 ---
 Documentation/media/uapi/v4l/pixfmt-srggb10.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-srggb10alaw8.rst |  2 --
 Documentation/media/uapi/v4l/pixfmt-srggb10p.rst     | 12 ++++++++----
 Documentation/media/uapi/v4l/pixfmt-srggb12.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-srggb8.rst       |  3 ---
 Documentation/media/uapi/v4l/pixfmt-uv8.rst          |  3 ---
 Documentation/media/uapi/v4l/pixfmt-uyvy.rst         |  3 ---
 Documentation/media/uapi/v4l/pixfmt-vyuy.rst         |  3 ---
 Documentation/media/uapi/v4l/pixfmt-y10.rst          |  3 ---
 Documentation/media/uapi/v4l/pixfmt-y10b.rst         |  8 --------
 Documentation/media/uapi/v4l/pixfmt-y12.rst          |  3 ---
 Documentation/media/uapi/v4l/pixfmt-y12i.rst         |  5 -----
 Documentation/media/uapi/v4l/pixfmt-y16-be.rst       |  3 ---
 Documentation/media/uapi/v4l/pixfmt-y16.rst          |  3 ---
 Documentation/media/uapi/v4l/pixfmt-y41p.rst         |  3 ---
 Documentation/media/uapi/v4l/pixfmt-y8i.rst          |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv410.rst       |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv411p.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv420.rst       |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv420m.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv422m.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv422p.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuv444m.rst      |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yuyv.rst         |  3 ---
 Documentation/media/uapi/v4l/pixfmt-yvyu.rst         |  3 ---
 Documentation/media/uapi/v4l/pixfmt-z16.rst          |  3 ---
 43 files changed, 8 insertions(+), 183 deletions(-)
Documentation/media/uapi/v4l/pixfmt-grey.rst +0 -7
index 844fb67320be..fef58ca50f66 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_GREY ('GREY')
 **************************
 
-*man V4L2_PIX_FMT_GREY(2)*
-
 Grey-scale image
 
 
@@ -20,14 +18,9 @@ which simply contains no Cb or Cr data.
 **Byte Order.**
 Each cell is one byte.
 
-
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-m420.rst +0 -6
index ff0ed7abfef3..f4a21a8a6dcc 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_M420 ('M420')
 **************************
 
-*man V4L2_PIX_FMT_M420(2)*
-
 Format with ½ horizontal and vertical chroma resolution, also known as
 YUV 4:2:0. Hybrid plane line-interleaved layout.
 
@@ -32,13 +30,9 @@ the CbCr lines.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-nv12.rst +0 -6
index a5b70b8a1273..6bbdc01362af 100644
@@ -7,7 +7,6 @@
 V4L2_PIX_FMT_NV12 ('NV12'), V4L2_PIX_FMT_NV21 ('NV21')
 ******************************************************
 
-*man V4L2_PIX_FMT_NV12(2)*
 
 V4L2_PIX_FMT_NV21
 Formats with ½ horizontal and vertical chroma resolution, also known as
@@ -36,14 +35,9 @@ many pad bytes after its rows.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-nv12m.rst +0 -5
index cdc24109fdf7..5c2e0648204b 100644
@@ -8,7 +8,6 @@
 V4L2_PIX_FMT_NV12M ('NM12'), V4L2_PIX_FMT_NV21M ('NM21'), V4L2_PIX_FMT_NV12MT_16X16
 ***********************************************************************************
 
-*man V4L2_PIX_FMT_NV12M(2)*
 
 V4L2_PIX_FMT_NV21M
 V4L2_PIX_FMT_NV12MT_16X16
@@ -47,13 +46,9 @@ many pad bytes after its rows.
 **Byte Order.**
 Each cell is one byte.
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-nv12mt.rst +0 -2
index 1e6fdf0194f5..9f250a1df2f6 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_NV12MT ('TM12')
 ****************************
 
-*man V4L2_PIX_FMT_NV12MT(2)*
-
 Formats with ½ horizontal and vertical chroma resolution. This format
 has two planes - one for luminance and one for chrominance. Chroma
 samples are interleaved. The difference to ``V4L2_PIX_FMT_NV12`` is the
Documentation/media/uapi/v4l/pixfmt-nv16.rst +0 -7
index 2cbdc1e6a36d..e2ea0fcdccc7 100644
@@ -7,8 +7,6 @@
 V4L2_PIX_FMT_NV16 ('NV16'), V4L2_PIX_FMT_NV61 ('NV61')
 ******************************************************
 
-*man V4L2_PIX_FMT_NV16(2)*
-
 V4L2_PIX_FMT_NV61
 Formats with ½ horizontal chroma resolution, also known as YUV 4:2:2.
 One luminance and one chrominance plane with alternating chroma samples
@@ -35,14 +33,9 @@ many pad bytes after its rows.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-nv16m.rst +0 -7
index 98cc0550bf26..5908b0437697 100644
@@ -7,8 +7,6 @@
 V4L2_PIX_FMT_NV16M ('NM16'), V4L2_PIX_FMT_NV61M ('NM61')
 ********************************************************
 
-*man V4L2_PIX_FMT_NV16M(2)*
-
 V4L2_PIX_FMT_NV61M
 Variation of ``V4L2_PIX_FMT_NV16`` and ``V4L2_PIX_FMT_NV61`` with planes
 non contiguous in memory.
@@ -38,14 +36,9 @@ described in :ref:`planar-apis`.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-nv24.rst +0 -7
index ebc27b772a38..67f3c53ac48d 100644
@@ -7,8 +7,6 @@
 V4L2_PIX_FMT_NV24 ('NV24'), V4L2_PIX_FMT_NV42 ('NV42')
 ******************************************************
 
-*man V4L2_PIX_FMT_NV24(2)*
-
 V4L2_PIX_FMT_NV42
 Formats with full horizontal and vertical chroma resolutions, also known
 as YUV 4:4:4. One luminance and one chrominance plane with alternating
@@ -35,14 +33,9 @@ twice as many pad bytes after its rows.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-sbggr16.rst +0 -8
index c2224c455e8a..58238c06f11e 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_SBGGR16 ('BYR2')
 *****************************
 
-*man V4L2_PIX_FMT_SBGGR16(2)*
-
 Bayer RGB format
 
 
@@ -27,15 +25,9 @@ memory addresses (little-endian).
 **Byte Order.**
 Each cell is one byte.
 
-
-
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-sbggr8.rst +0 -6
index 0a65450e017e..e880ba09379c 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_SBGGR8 ('BA81')
 ****************************
 
-*man V4L2_PIX_FMT_SBGGR8(2)*
-
 Bayer RGB format
 
 
@@ -25,13 +23,9 @@ scheme repeats to the right and down for every two columns and rows.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst +0 -7
index 48c2469ddd19..82b9995155fa 100644
@@ -6,8 +6,6 @@
 V4L2_SDR_FMT_CS8 ('CS08')
 *************************
 
-*man V4L2_SDR_FMT_CS8(2)*
-
 Complex signed 8-bit IQ sample
 
 
@@ -22,14 +20,9 @@ Q value after that.
 **Byte Order.**
 Each cell is one byte.
 
-
-
-.. tabularcolumns:: |p{11.7cm}|p{5.8cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst +0 -7
index d8d7fd3f0ec2..f06cbeb15dc2 100644
@@ -6,8 +6,6 @@
 V4L2_SDR_FMT_CS14LE ('CS14')
 ****************************
 
-*man V4L2_SDR_FMT_CS14LE(2)*
-
 Complex signed 14-bit little endian IQ sample
 
 
@@ -24,14 +22,9 @@ space with unused high bits padded with 0.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst +0 -8
index 1b7eaf652604..bd81eb2e0549 100644
@@ -6,8 +6,6 @@
 V4L2_SDR_FMT_CU8 ('CU08')
 *************************
 
-*man V4L2_SDR_FMT_CU8(2)*
-
 Complex unsigned 8-bit IQ sample
 
 
@@ -22,15 +20,9 @@ and Q value after that.
 **Byte Order.**
 Each cell is one byte.
 
-
-
-.. tabularcolumns:: |p{11.7cm}|p{5.8cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst +0 -6
index e12d267423c4..c72587de4a8d 100644
@@ -6,7 +6,6 @@
 V4L2_SDR_FMT_CU16LE ('CU16')
 ****************************
 
-*man V4L2_SDR_FMT_CU16LE(2)*
 
 Complex unsigned 16-bit little endian IQ sample
 
@@ -23,14 +22,9 @@ comes first and Q value after that.
 Each cell is one byte.
 
 
-
-.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst +0 -3
index 802aefe44b16..b5f0ca0f0c45 100644
@@ -6,7 +6,6 @@
 V4L2_SDR_FMT_RU12LE ('RU12')
 ****************************
 
-*man V4L2_SDR_FMT_RU12LE(2)*
 
 Real unsigned 12-bit little endian sample
 
@@ -23,12 +22,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-sgbrg8.rst +0 -3
index faad9b19dadd..5cd40d611d68 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_SGBRG8 ('GBRG')
 ****************************
 
-*man V4L2_PIX_FMT_SGBRG8(2)*
 
 Bayer RGB format
 
@@ -26,12 +25,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-sgrbg8.rst +0 -3
index 33a7c4fdf046..05a09dbac494 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_SGRBG8 ('GRBG')
 ****************************
 
-*man V4L2_PIX_FMT_SGRBG8(2)*
 
 Bayer RGB format
 
@@ -26,12 +25,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-srggb10.rst +0 -3
index 6a32ecb7f9ad..8af756944fd4 100644
@@ -9,7 +9,6 @@
 V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),
 ***************************************************************************************************************************
 
-*man V4L2_PIX_FMT_SRGGB10(2)*
 
 V4L2_PIX_FMT_SGRBG10
 V4L2_PIX_FMT_SGBRG10
@@ -33,12 +32,10 @@ Each cell is one byte, high 6 bits in high bytes are 0.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-srggb10alaw8.rst +0 -2
index 68bae0cb764c..c44e093514de 100644
@@ -9,8 +9,6 @@
 V4L2_PIX_FMT_SBGGR10ALAW8 ('aBA8'), V4L2_PIX_FMT_SGBRG10ALAW8 ('aGA8'), V4L2_PIX_FMT_SGRBG10ALAW8 ('agA8'), V4L2_PIX_FMT_SRGGB10ALAW8 ('aRA8'),
 ***********************************************************************************************************************************************
 
-*man V4L2_PIX_FMT_SBGGR10ALAW8(2)*
-
 V4L2_PIX_FMT_SGBRG10ALAW8
 V4L2_PIX_FMT_SGRBG10ALAW8
 V4L2_PIX_FMT_SRGGB10ALAW8
Documentation/media/uapi/v4l/pixfmt-srggb10p.rst +8 -4
index b577dbf09a8b..a5752b9063e3 100644
@@ -9,7 +9,6 @@
 V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),
 *******************************************************************************************************************************
 
-*man V4L2_PIX_FMT_SRGGB10P(2)*
 
 V4L2_PIX_FMT_SGRBG10P
 V4L2_PIX_FMT_SGBRG10P
@@ -34,15 +33,16 @@ of one of these formats:
 **Byte Order.**
 Each cell is one byte.
 
+.. raw:: latex
 
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
 
-.. tabularcolumns:: |p{5.0cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|
+.. tabularcolumns:: |p{2.0cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{10.9cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1
-
+    :widths: 12 8 8 8 8 68
 
     -  .. row 1
 
@@ -103,3 +103,7 @@ Each cell is one byte.
 
        -  G\ :sub:`30low`\ (bits 7--6) R\ :sub:`31low`\ (bits 5--4)
 	  G\ :sub:`32low`\ (bits 3--2) R\ :sub:`33low`\ (bits 1--0)
+
+.. raw:: latex
+
+    \end{adjustbox}\newline\newline
Documentation/media/uapi/v4l/pixfmt-srggb12.rst +0 -3
index 54355af154c8..109772fd0f23 100644
@@ -10,7 +10,6 @@
 V4L2_PIX_FMT_SRGGB12 ('RG12'), V4L2_PIX_FMT_SGRBG12 ('BA12'), V4L2_PIX_FMT_SGBRG12 ('GB12'), V4L2_PIX_FMT_SBGGR12 ('BG12'),
 ***************************************************************************************************************************
 
-*man V4L2_PIX_FMT_SRGGB12(2)*
 
 V4L2_PIX_FMT_SGRBG12
 V4L2_PIX_FMT_SGBRG12
@@ -34,12 +33,10 @@ Each cell is one byte, high 6 bits in high bytes are 0.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-srggb8.rst +0 -3
index 1a6966b34c6f..41851bbde2cd 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_SRGGB8 ('RGGB')
 ****************************
 
-*man V4L2_PIX_FMT_SRGGB8(2)*
 
 Bayer RGB format
 
@@ -26,12 +25,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-uv8.rst +0 -3
index ab73e0b55d05..8c4ebbf79ca0 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_UV8 ('UV8')
 ************************
 
-*man V4L2_PIX_FMT_UV8(2)*
 
 UV plane interleaved
 
@@ -21,12 +20,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-uyvy.rst +0 -3
index 4c0c56003355..ed8ccf52b1db 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_UYVY ('UYVY')
 **************************
 
-*man V4L2_PIX_FMT_UYVY(2)*
 
 Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in
 memory
@@ -23,12 +22,10 @@ half the horizontal resolution of the Y component.
 **Byte Order.**
 Each cell is one byte.
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-vyuy.rst +0 -3
index cdebbd3a5ad2..d62c1ac4ed08 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_VYUY ('VYUY')
 **************************
 
-*man V4L2_PIX_FMT_VYUY(2)*
 
 Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in
 memory
@@ -23,12 +22,10 @@ half the horizontal resolution of the Y component.
 **Byte Order.**
 Each cell is one byte.
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y10.rst +0 -3
index 887e6f052879..cb78e365a84c 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Y10 ('Y10 ')
 *************************
 
-*man V4L2_PIX_FMT_Y10(2)*
 
 Grey-scale image
 
@@ -23,12 +22,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y10b.rst +0 -8
index 5f5219904a62..e89850bfef58 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_Y10BPACK ('Y10B')
 ******************************
 
-*man V4L2_PIX_FMT_Y10BPACK(2)*
-
 Grey-scale image as a bit-packed array
 
 
@@ -24,15 +22,9 @@ first from the left.
 pixels cross the byte boundary and have a ratio of 5 bytes for each 4
 pixels.
 
-
-
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
-
 
     -  .. row 1
 
Documentation/media/uapi/v4l/pixfmt-y12.rst +0 -3
index 6148371909f8..0958e87b6d22 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Y12 ('Y12 ')
 *************************
 
-*man V4L2_PIX_FMT_Y12(2)*
 
 Grey-scale image
 
@@ -23,12 +22,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y12i.rst +0 -5
index 70f2b2c1f57b..e66d8bcdb410 100644
@@ -6,8 +6,6 @@
 V4L2_PIX_FMT_Y12I ('Y12I')
 **************************
 
-*man V4L2_PIX_FMT_Y12I(2)*
-
 Interleaved grey-scale image, e.g. from a stereo-pair
 
 
@@ -29,12 +27,9 @@ these pixels can be deinterlaced using
 pixels cross the byte boundary and have a ratio of 3 bytes for each
 interleaved pixel.
 
-.. tabularcolumns:: |p{8.8cm}|p{4.4cm}|p{4.3cm}|
-
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y16-be.rst +0 -3
index bc968c246ec5..fc23c6b12193 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Y16_BE ('Y16 ' | (1 << 31))
 ****************************************
 
-*man V4L2_PIX_FMT_Y16_BE(2)*
 
 Grey-scale image
 
@@ -27,12 +26,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y16.rst +0 -3
index deb59e2a62a7..6b4edc4e34e5 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Y16 ('Y16 ')
 *************************
 
-*man V4L2_PIX_FMT_Y16(2)*
 
 Grey-scale image
 
@@ -27,12 +26,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y41p.rst +0 -3
index d160e3dc9115..9c3194bbf77e 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Y41P ('Y41P')
 **************************
 
-*man V4L2_PIX_FMT_Y41P(2)*
 
 Format with ¼ horizontal chroma resolution, also known as YUV 4:1:1
 
@@ -30,12 +29,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{2.5cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{0.7cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-y8i.rst +0 -3
index 8b13c7476efb..16bdfbbe6915 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Y8I ('Y8I ')
 *************************
 
-*man V4L2_PIX_FMT_Y8I(2)*
 
 Interleaved grey-scale image, e.g. from a stereo-pair
 
@@ -24,12 +23,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv410.rst +0 -3
index 5d343d99922f..54909839b0d1 100644
@@ -7,7 +7,6 @@
 V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')
 **********************************************************
 
-*man V4L2_PIX_FMT_YVU410(2)*
 
 V4L2_PIX_FMT_YUV410
 Planar formats with ¼ horizontal and vertical chroma resolution, also
@@ -37,12 +36,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv411p.rst +0 -3
index 13a31d90bf11..913f68fe2536 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_YUV411P ('411P')
 *****************************
 
-*man V4L2_PIX_FMT_YUV411P(2)*
 
 Format with ¼ horizontal chroma resolution, also known as YUV 4:1:1.
 Planar layout as opposed to ``V4L2_PIX_FMT_Y41P``
@@ -33,12 +32,10 @@ have ¼ as many pad bytes after their rows. In other words, four C x rows
 Each cell is one byte.
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv420.rst +0 -3
index 43bb676d5184..a7f17e40b59e 100644
@@ -7,7 +7,6 @@
 V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')
 **********************************************************
 
-*man V4L2_PIX_FMT_YVU420(2)*
 
 V4L2_PIX_FMT_YUV420
 Planar formats with ½ horizontal and vertical chroma resolution, also
@@ -38,12 +37,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv420m.rst +0 -3
index 7f7a7dadd07d..588784512944 100644
@@ -7,7 +7,6 @@
 V4L2_PIX_FMT_YUV420M ('YM12'), V4L2_PIX_FMT_YVU420M ('YM21')
 ************************************************************
 
-*man V4L2_PIX_FMT_YUV420M(2)*
 
 V4L2_PIX_FMT_YVU420M
 Variation of ``V4L2_PIX_FMT_YUV420`` and ``V4L2_PIX_FMT_YVU420`` with
@@ -45,12 +44,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv422m.rst +0 -3
index 5de85f987644..0c0a462c4dde 100644
@@ -7,7 +7,6 @@
 V4L2_PIX_FMT_YUV422M ('YM16'), V4L2_PIX_FMT_YVU422M ('YM61')
 ************************************************************
 
-*man V4L2_PIX_FMT_YUV422M(2)*
 
 V4L2_PIX_FMT_YVU422M
 Planar formats with ½ horizontal resolution, also known as YUV and YVU
@@ -44,12 +43,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv422p.rst +0 -3
index 6cdff74af7c9..9618f0d24265 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_YUV422P ('422P')
 *****************************
 
-*man V4L2_PIX_FMT_YUV422P(2)*
 
 Format with ½ horizontal chroma resolution, also known as YUV 4:2:2.
 Planar layout as opposed to ``V4L2_PIX_FMT_YUYV``
@@ -34,12 +33,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuv444m.rst +0 -3
index 8ebef2ce0e85..5985d45efb2c 100644
@@ -7,7 +7,6 @@
 V4L2_PIX_FMT_YUV444M ('YM24'), V4L2_PIX_FMT_YVU444M ('YM42')
 ************************************************************
 
-*man V4L2_PIX_FMT_YUV444M(2)*
 
 V4L2_PIX_FMT_YVU444M
 Planar formats with full horizontal resolution, also known as YUV and
@@ -38,12 +37,10 @@ described in :ref:`planar-apis`.
 **Byte Order.**
 Each cell is one byte.
 
-.. tabularcolumns:: |p{5.8cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|p{3.0cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yuyv.rst +0 -3
index 24fa9bbb67b6..10deab080d51 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_YUYV ('YUYV')
 **************************
 
-*man V4L2_PIX_FMT_YUYV(2)*
 
 Packed format with ½ horizontal chroma resolution, also known as YUV
 4:2:2
@@ -26,12 +25,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-yvyu.rst +0 -3
index 346b003b23ba..d126f08c1adc 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_YVYU ('YVYU')
 **************************
 
-*man V4L2_PIX_FMT_YVYU(2)*
 
 Variation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in
 memory
@@ -23,12 +22,10 @@ half the horizontal resolution of the Y component.
 **Byte Order.**
 Each cell is one byte.
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Documentation/media/uapi/v4l/pixfmt-z16.rst +0 -3
index dd9a11a6746b..97fe1483a481 100644
@@ -6,7 +6,6 @@
 V4L2_PIX_FMT_Z16 ('Z16 ')
 *************************
 
-*man V4L2_PIX_FMT_Z16(2)*
 
 16-bit depth data with distance values at each pixel
 
@@ -24,12 +23,10 @@ Each cell is one byte.
 
 
 
-.. tabularcolumns:: |p{3.5cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|p{1.4cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       2 1 1 1 1 1 1 1 1
 
 
     -  .. row 1
Signature · 1 line
2.7.4
#11 lore raw

PATCH 10/20 buffer.rst: Adjust table columns for LaTeX output

In reply to Mauro Carvalho Chehab

The table columns are not properly displayed. Also, some tables are too big to fit into just one page. So, fix them, in order to better display the tables.

---
 Documentation/media/uapi/v4l/buffer.rst | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
Documentation/media/uapi/v4l/buffer.rst +14 -6
index 064bc03b7a1d..4d315b01c2a4 100644
@@ -39,12 +39,14 @@ buffer.
 struct v4l2_buffer
 ==================
 
-.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+.. tabularcolumns:: |p{1.3cm}|p{2.5cm}|p{1.3cm}|p{12.0cm}|
+
+.. cssclass:: longtable
 
 .. flat-table:: struct v4l2_buffer
     :header-rows:  0
     :stub-columns: 0
-    :widths:       1 1 1 2
+    :widths:       1 2 1 10
 
 
     -  .. row 1
@@ -286,6 +288,8 @@ struct v4l2_plane
 
 .. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
 
+.. cssclass:: longtable
+
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
@@ -403,12 +407,14 @@ struct v4l2_plane
 enum v4l2_buf_type
 ==================
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+.. cssclass:: longtable
+
+.. tabularcolumns:: |p{7.2cm}|p{0.6cm}|p{9.7cm}|
 
 .. flat-table::
     :header-rows:  0
     :stub-columns: 0
-    :widths:       3 1 4
+    :widths:       4 1 9
 
 
     -  .. row 1
@@ -519,7 +525,9 @@ enum v4l2_buf_type
 Buffer Flags
 ============
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+.. tabularcolumns:: |p{7.0cm}|p{2.2cm}|p{8.3cm}|
+
+.. cssclass:: longtable
 
 .. flat-table::
     :header-rows:  0
@@ -953,7 +961,7 @@ Timecode Types
 Timecode Flags
 --------------
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+.. tabularcolumns:: |p{6.6cm}|p{1.4cm}|p{9.5cm}|
 
 .. flat-table::
     :header-rows:  0
Signature · 1 line
2.7.4
#12 lore raw

PATCH 11/20 dev-overlay.rst: don't ident a note

In reply to Mauro Carvalho Chehab

There's one note there that it is indented for no good reason. Fix it.

---
 Documentation/media/uapi/v4l/dev-overlay.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/media/uapi/v4l/dev-overlay.rst +5 -5
index d47a6bbc2e98..50e2d52fcae6 100644
@@ -238,12 +238,12 @@ exceeded are undefined. [#f3]_
     :ref:`VIDIOC_S_FBUF <VIDIOC_G_FBUF>`,
     :ref:`framebuffer-flags`).
 
-    .. note::
+.. note::
 
-       This field was added in Linux 2.6.23, extending the
-       structure. However the :ref:`VIDIOC_[G|S|TRY]_FMT <VIDIOC_G_FMT>`
-       ioctls, which take a pointer to a :ref:`v4l2_format <v4l2-format>`
-       parent structure with padding bytes at the end, are not affected.
+   This field was added in Linux 2.6.23, extending the
+   structure. However the :ref:`VIDIOC_[G|S|TRY]_FMT <VIDIOC_G_FMT>`
+   ioctls, which take a pointer to a :ref:`v4l2_format <v4l2-format>`
+   parent structure with padding bytes at the end, are not affected.
 
 
 .. _v4l2-clip:
Signature · 1 line
2.7.4
#13 lore raw

PATCH 12/20 dev-raw-vbi.rst: add a footnote for the count limits

In reply to Mauro Carvalho Chehab

There's a bug with LaTeX output on flat-tables with Sphinx 1.4.5 that prevents references at a cell span to be broken. As the text is indeed too long, it makes sense to place the reference to the pictures showing the VBI limits as a footnote.

That makes the text easier to read and also solves the issue with LaTeX output.

---
 Documentation/media/uapi/v4l/dev-raw-vbi.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
Documentation/media/uapi/v4l/dev-raw-vbi.rst +6 -4
index 95de08b8fbf2..859b5bc8abbb 100644
@@ -196,10 +196,9 @@ and always returns default parameters as :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` does
 	  driver. Anyway, drivers may not support single field capturing and
 	  return both count values non-zero.
 
-	  Both ``count`` values set to zero, or line numbers outside the
-	  bounds depicted in :ref:`vbi-525` and :ref:`vbi-625`, or a
-	  field image covering lines of two fields, are invalid and shall
-	  not be returned by the driver.
+	  Both ``count`` values set to zero, or line numbers are outside the
+	  bounds depicted\ [#f4]_, or a field image covering lines of two
+	  fields, are invalid and shall not be returned by the driver.
 
 	  To initialize the ``start`` and ``count`` fields, applications
 	  must first determine the current video standard selection. The
@@ -352,3 +351,6 @@ another process.
    Most VBI services transmit on both fields, but some have different
    semantics depending on the field number. These cannot be reliable
    decoded or encoded when ``V4L2_VBI_UNSYNC`` is set.
+
+.. [#f4]
+   The valid values ar shown at :ref:`vbi-525` and :ref:`vbi-625`.
Signature · 1 line
2.7.4
#14 lore raw

PATCH 13/20 dev-raw-vbi.rst: adjust table columns for LaTeX output

In reply to Mauro Carvalho Chehab

Add the needed tags to fix LaTeX output of the tables there.

---
 Documentation/media/uapi/v4l/dev-raw-vbi.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/media/uapi/v4l/dev-raw-vbi.rst +4 -2
index 859b5bc8abbb..1b59239c7fb7 100644
@@ -102,7 +102,9 @@ and always returns default parameters as :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` does
 
 .. _v4l2-vbi-format:
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+.. tabularcolumns:: |p{2.4cm}|p{4.4cm}|p{10.7cm}|
+
+.. cssclass:: longtable
 
 .. flat-table:: struct v4l2_vbi_format
     :header-rows:  0
@@ -228,7 +230,7 @@ and always returns default parameters as :ref:`VIDIOC_G_FMT <VIDIOC_G_FMT>` does
 
 .. _vbifmt-flags:
 
-.. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
+.. tabularcolumns:: |p{4.0cm}|p{1.5cm}|p{12.0cm}|
 
 .. flat-table:: Raw VBI Format Flags
     :header-rows:  0
Signature · 1 line
2.7.4
#15 lore raw

PATCH 14/20 docs-rst: re-generate vbi_525.pdf and vbi_625.pdf

In reply to Mauro Carvalho Chehab

Originally, each image were one page big, causing them to be displayed on separate pages at the PDF output. Re-generate them from the gif files.

---
 .../media/uapi/v4l/dev-raw-vbi_files/vbi_525.pdf      | Bin 3395 -> 3706 bytes
 .../media/uapi/v4l/dev-raw-vbi_files/vbi_625.pdf      | Bin 3683 -> 3996 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)
Documentation/media/uapi/v4l/dev-raw-vbi_files/vbi_525.pdf binary +0 -0
index 9e72c25b208db6c7844ed85fe9742324602c0a5c..0bae28385dfa119b6d3718e2e6cf6dc411ad0f67 100644
GIT binary patch
Documentation/media/uapi/v4l/dev-raw-vbi_files/vbi_625.pdf binary +0 -0
index 765235e33a4de256a0b3fbf64ffe52946190cac4..bf29b95dcd0800b4f7d05389ad60cf3e82569b00 100644
GIT binary patch
Signature · 1 line
2.7.4
#16 lore raw

PATCH 15/20 dev-sliced-vbi.rst: use a footnote for VBI images

In reply to Mauro Carvalho Chehab

Just like on dvb-raw-vbi.rst, the LaTeX output doesn't work well with cell spans. Also, this is actually a note, so, move it to a footnote.

---
 Documentation/media/uapi/v4l/dev-sliced-vbi.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/media/uapi/v4l/dev-sliced-vbi.rst +4 -2
index 9f59ba6847ec..9f348e164782 100644
@@ -155,8 +155,7 @@ struct v4l2_sliced_vbi_format
 	  service the driver chooses.
 
 	  Data services are defined in :ref:`vbi-services2`. Array indices
-	  map to ITU-R line numbers (see also :ref:`vbi-525` and
-	  :ref:`vbi-625`) as follows:
+	  map to ITU-R line numbers\ [#f2]_ as follows:
 
     -  .. row 3
 
@@ -838,3 +837,6 @@ Line Identifiers for struct v4l2_mpeg_vbi_itv0_line id field
 .. [#f1]
    According to :ref:`ETS 300 706 <ets300706>` lines 6-22 of the first
    field and lines 5-22 of the second field may carry Teletext data.
+
+.. [#f2]
+   See also :ref:`vbi-525` and :ref:`vbi-625`.
Signature · 1 line
2.7.4
#17 lore raw

PATCH 16/20 dev-sliced-vbi.rst: Adjust tables on LaTeX output

In reply to Mauro Carvalho Chehab

Better format the tables in a way that will fit inside the page.

---
 Documentation/media/uapi/v4l/dev-sliced-vbi.rst | 34 +++++++++++++++++--------
 1 file changed, 24 insertions(+), 10 deletions(-)
Documentation/media/uapi/v4l/dev-sliced-vbi.rst +24 -10
index 9f348e164782..074aa3798152 100644
@@ -105,7 +105,9 @@ which may return ``EBUSY`` can be the
 struct v4l2_sliced_vbi_format
 -----------------------------
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{2.9cm}|p{2.9cm}|p{2.9cm}|
+.. tabularcolumns:: |p{1.0cm}|p{4.5cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|
+
+.. cssclass:: longtable
 
 .. flat-table::
     :header-rows:  0
@@ -242,16 +244,20 @@ struct v4l2_sliced_vbi_format
        -  ``reserved``\ [2]
 
        -  :cspan:`2` This array is reserved for future extensions.
+
 	  Applications and drivers must set it to zero.
 
 
-
 .. _vbi-services2:
 
 Sliced VBI services
 -------------------
 
-.. tabularcolumns:: |p{4.4cm}|p{2.2cm}|p{2.2cm}|p{4.4cm}|p{4.3cm}|
+.. raw:: latex
+
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
+
+.. tabularcolumns:: |p{5.0cm}|p{1.4cm}|p{3.0cm}|p{2.5cm}|p{9.0cm}|
 
 .. flat-table::
     :header-rows:  1
@@ -277,7 +283,9 @@ Sliced VBI services
 
        -  0x0001
 
-       -  :ref:`ets300706`, :ref:`itu653`
+       -  :ref:`ets300706`,
+
+	  :ref:`itu653`
 
        -  PAL/SECAM line 7-22, 320-335 (second field 7-22)
 
@@ -316,7 +324,9 @@ Sliced VBI services
 
        -  0x4000
 
-       -  :ref:`itu1119`, :ref:`en300294`
+       -  :ref:`itu1119`,
+
+	  :ref:`en300294`
 
        -  PAL/SECAM line 23
 
@@ -344,6 +354,10 @@ Sliced VBI services
 
        -  :cspan:`2` Set of services applicable to 625 line systems.
 
+.. raw:: latex
+
+    \end{adjustbox}\newline\newline
+
 
 Drivers may return an ``EINVAL`` error code when applications attempt to
 read or write data without prior format negotiation, after switching the
@@ -561,7 +575,7 @@ number).
 struct v4l2_mpeg_vbi_fmt_ivtv
 -----------------------------
 
-.. tabularcolumns:: |p{3.5cm}|p{3.5cm}|p{3.5cm}|p{7.0cm}|
+.. tabularcolumns:: |p{1.0cm}|p{3.5cm}|p{1.0cm}|p{11.5cm}|
 
 .. flat-table::
     :header-rows:  0
@@ -661,7 +675,7 @@ Magic Constants for struct v4l2_mpeg_vbi_fmt_ivtv magic field
 struct v4l2_mpeg_vbi_itv0
 -------------------------
 
-.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
+.. tabularcolumns:: |p{4.4cm}|p{2.4cm}|p{10.7cm}|
 
 .. flat-table::
     :header-rows:  0
@@ -687,9 +701,9 @@ struct v4l2_mpeg_vbi_itv0
 	  ::
 
 	      linemask[0] b0:     line  6     first field
-	      linemask[0] b17:        line 23     first field
-	      linemask[0] b18:        line  6     second field
-	      linemask[0] b31:        line 19     second field
+	      linemask[0] b17:    line 23     first field
+	      linemask[0] b18:    line  6     second field
+	      linemask[0] b31:    line 19     second field
 	      linemask[1] b0:     line 20     second field
 	      linemask[1] b3:     line 23     second field
 	      linemask[1] b4-b31: unused and set to 0
Signature · 1 line
2.7.4
#18 lore raw

PATCH 17/20 dev-rds.rst: adjust table dimentions for LaTeX

In reply to Mauro Carvalho Chehab

One of the tables has wrong column dimentions. Fix it.

---
 Documentation/media/uapi/v4l/dev-rds.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/media/uapi/v4l/dev-rds.rst +1 -1
index 35117414c86b..841761a3ea59 100644
@@ -170,7 +170,7 @@ RDS datastructures
 
 .. _v4l2-rds-block-codes:
 
-.. tabularcolumns:: |p{2.2cm}|p{2.2cm}|p{2.2cm}|p{10.9cm}|
+.. tabularcolumns:: |p{5.6cm}|p{2.0cm}|p{1.5cm}|p{7.0cm}|
 
 .. flat-table:: Block defines
     :header-rows:  0
Signature · 1 line
2.7.4
#19 lore raw

PATCH 18/20 dev-subdev.rst: make table fully visible on LaTeX

In reply to Mauro Carvalho Chehab

The table there is too big and doesn't have format hints for LaTeX output.

Fix it.

---
 Documentation/media/uapi/v4l/dev-subdev.rst | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/media/uapi/v4l/dev-subdev.rst +9 -0
index 5a112eb7a245..b1aed4541bca 100644
@@ -204,9 +204,16 @@ list entity names and pad numbers).
 
 .. _sample-pipeline-config:
 
+.. raw:: latex
+
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
+
+.. tabularcolumns:: |p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|
+
 .. flat-table:: Sample Pipeline Configuration
     :header-rows:  1
     :stub-columns: 0
+    :widths: 5 5 5 5 5 5 5
 
 
     -  .. row 1
@@ -288,7 +295,9 @@ list entity names and pad numbers).
 
        -  *1280x960/SGRBG8_1X8*
 
+.. raw:: latex
 
+    \end{adjustbox}\newline\newline
 
 1. Initial state. The sensor source pad format is set to its native 3MP
    size and V4L2_MBUS_FMT_SGRBG8_1X8 media bus code. Formats on the
Signature · 1 line
2.7.4
#20 lore raw

PATCH 19/20 subdev-formats.rst: adjust most of the tables to fill in page

In reply to Mauro Carvalho Chehab

Fix mosto fo the tables there in order to make them fit at the page size.

There are, however, two exceptions: RGB and YUV big tables, where adding the raw latex adjustbox caused the tables to not be properly formatted. I suspect that the problem is because those are long tables, but not really sure.

The thing is that Sphinx lacks an "adjustbox" tag that would avoid the raw latex hacks.

---
 Documentation/media/uapi/v4l/subdev-formats.rst | 5575 ++++++++++++-----------
 1 file changed, 2806 insertions(+), 2769 deletions(-)
Documentation/media/uapi/v4l/subdev-formats.rst +2806 -2769
index 265a6dc5fe92..7d9b55dd6e91 100644
@@ -155,12 +155,16 @@ half of the green value) transferred first will be named
 
 The following tables list existing packed RGB formats.
 
+.. FIXME: I was unable to find a way to use adjustbox or landscape for this table!
+
+.. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{-1.0cm}|
 
 .. _v4l2-mbus-pixelcode-rgb:
 
 .. flat-table:: RGB formats
     :header-rows:  2
     :stub-columns: 0
+    :widths: 36 7 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
 
 
     -  .. row 1
@@ -249,45 +253,45 @@ The following tables list existing packed RGB formats.
        -  0x1016
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`3`
 
@@ -320,53 +324,53 @@ The following tables list existing packed RGB formats.
        -  0x1001
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -389,53 +393,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`3`
 
@@ -460,53 +464,53 @@ The following tables list existing packed RGB formats.
        -  0x1002
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`3`
 
@@ -529,53 +533,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -600,53 +604,53 @@ The following tables list existing packed RGB formats.
        -  0x1003
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -669,53 +673,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`2`
 
@@ -740,53 +744,53 @@ The following tables list existing packed RGB formats.
        -  0x1004
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`2`
 
@@ -809,53 +813,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -880,37 +884,37 @@ The following tables list existing packed RGB formats.
        -  0x1017
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`4`
 
@@ -951,53 +955,53 @@ The following tables list existing packed RGB formats.
        -  0x1005
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`4`
 
@@ -1020,53 +1024,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`2`
 
@@ -1091,53 +1095,53 @@ The following tables list existing packed RGB formats.
        -  0x1006
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`2`
 
@@ -1160,53 +1164,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`4`
 
@@ -1231,53 +1235,53 @@ The following tables list existing packed RGB formats.
        -  0x1007
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`4`
 
@@ -1300,53 +1304,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`2`
 
@@ -1371,53 +1375,53 @@ The following tables list existing packed RGB formats.
        -  0x1008
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`2`
 
@@ -1440,53 +1444,53 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`4`
 
@@ -1511,33 +1515,33 @@ The following tables list existing packed RGB formats.
        -  0x1009
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`5`
 
@@ -1582,21 +1586,21 @@ The following tables list existing packed RGB formats.
        -  0x100e
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -1653,21 +1657,21 @@ The following tables list existing packed RGB formats.
        -  0x1015
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -1724,21 +1728,21 @@ The following tables list existing packed RGB formats.
        -  0x1013
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`7`
 
@@ -1795,21 +1799,21 @@ The following tables list existing packed RGB formats.
        -  0x1014
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -1866,21 +1870,21 @@ The following tables list existing packed RGB formats.
        -  0x100a
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -1937,45 +1941,45 @@ The following tables list existing packed RGB formats.
        -  0x100b
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -2006,45 +2010,45 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`3`
 
@@ -2077,45 +2081,45 @@ The following tables list existing packed RGB formats.
        -  0x100c
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`3`
 
@@ -2146,45 +2150,45 @@ The following tables list existing packed RGB formats.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -2352,7 +2356,6 @@ The following tables list existing packed RGB formats.
 
        -  b\ :sub:`0`
 
-
 On LVDS buses, usually each sample is transferred serialized in seven
 time slots per pixel clock, on three (18-bit) or four (24-bit)
 differential data pairs at the same time. The remaining bits are used
@@ -2361,6 +2364,9 @@ for control signals as defined by SPWG/PSWG/VESA or JEIDA standards. The
 JEIDA defined bit mapping will be named
 ``MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA``, for example.
 
+.. raw:: latex
+
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
 
 .. _v4l2-mbus-pixelcode-rgb-lvds:
 
@@ -2404,7 +2410,7 @@ JEIDA defined bit mapping will be named
        -  0
 
        -
-       -  -
+       -
 
        -  d
 
@@ -2419,7 +2425,7 @@ JEIDA defined bit mapping will be named
        -  1
 
        -
-       -  -
+       -
 
        -  d
 
@@ -2434,7 +2440,7 @@ JEIDA defined bit mapping will be named
        -  2
 
        -
-       -  -
+       -
 
        -  d
 
@@ -2449,7 +2455,7 @@ JEIDA defined bit mapping will be named
        -  3
 
        -
-       -  -
+       -
 
        -  b\ :sub:`5`
 
@@ -2464,7 +2470,7 @@ JEIDA defined bit mapping will be named
        -  4
 
        -
-       -  -
+       -
 
        -  b\ :sub:`4`
 
@@ -2479,7 +2485,7 @@ JEIDA defined bit mapping will be named
        -  5
 
        -
-       -  -
+       -
 
        -  b\ :sub:`3`
 
@@ -2494,7 +2500,7 @@ JEIDA defined bit mapping will be named
        -  6
 
        -
-       -  -
+       -
 
        -  b\ :sub:`2`
 
@@ -2716,6 +2722,9 @@ JEIDA defined bit mapping will be named
 
        -  r\ :sub:`2`
 
+.. raw:: latex
+
+    \end{adjustbox}\newline\newline
 
 
 Bayer Formats
@@ -2770,8 +2779,16 @@ The following table lists existing packed Bayer formats. The data
 organization is given as an example for the first pixel only.
 
 
+.. raw:: latex
+
+    \newline\newline\begin{adjustbox}{width=\columnwidth}
+
+.. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|
+
 .. _v4l2-mbus-pixelcode-bayer:
 
+.. cssclass: longtable
+
 .. flat-table:: Bayer Formats
     :header-rows:  2
     :stub-columns: 0
@@ -2823,13 +2840,13 @@ organization is given as an example for the first pixel only.
        -  0x3001
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`7`
 
@@ -2854,13 +2871,13 @@ organization is given as an example for the first pixel only.
        -  0x3013
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -2885,13 +2902,13 @@ organization is given as an example for the first pixel only.
        -  0x3002
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -2916,13 +2933,13 @@ organization is given as an example for the first pixel only.
        -  0x3014
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -2947,13 +2964,13 @@ organization is given as an example for the first pixel only.
        -  0x3015
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`7`
 
@@ -2978,13 +2995,13 @@ organization is given as an example for the first pixel only.
        -  0x3016
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -3009,13 +3026,13 @@ organization is given as an example for the first pixel only.
        -  0x3017
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -3040,13 +3057,13 @@ organization is given as an example for the first pixel only.
        -  0x3018
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -3071,13 +3088,13 @@ organization is given as an example for the first pixel only.
        -  0x300b
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`7`
 
@@ -3102,13 +3119,13 @@ organization is given as an example for the first pixel only.
        -  0x300c
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -3133,13 +3150,13 @@ organization is given as an example for the first pixel only.
        -  0x3009
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`7`
 
@@ -3164,13 +3181,13 @@ organization is given as an example for the first pixel only.
        -  0x300d
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`7`
 
@@ -3195,13 +3212,13 @@ organization is given as an example for the first pixel only.
        -  0x3003
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -3224,13 +3241,13 @@ organization is given as an example for the first pixel only.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`7`
 
@@ -3255,13 +3272,13 @@ organization is given as an example for the first pixel only.
        -  0x3004
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`7`
 
@@ -3284,13 +3301,13 @@ organization is given as an example for the first pixel only.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  0
 
@@ -3315,13 +3332,13 @@ organization is given as an example for the first pixel only.
        -  0x3005
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`9`
 
@@ -3344,13 +3361,13 @@ organization is given as an example for the first pixel only.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`1`
 
@@ -3375,13 +3392,13 @@ organization is given as an example for the first pixel only.
        -  0x3006
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`1`
 
@@ -3404,13 +3421,13 @@ organization is given as an example for the first pixel only.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`9`
 
@@ -3435,9 +3452,9 @@ organization is given as an example for the first pixel only.
        -  0x3007
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
        -  b\ :sub:`9`
 
@@ -3466,9 +3483,9 @@ organization is given as an example for the first pixel only.
        -  0x300e
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`9`
 
@@ -3497,9 +3514,9 @@ organization is given as an example for the first pixel only.
        -  0x300a
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
        -  g\ :sub:`9`
 
@@ -3528,9 +3545,9 @@ organization is given as an example for the first pixel only.
        -  0x300f
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
        -  r\ :sub:`9`
 
@@ -3676,6 +3693,9 @@ organization is given as an example for the first pixel only.
 
        -  r\ :sub:`0`
 
+.. raw:: latex
+
+    \end{adjustbox}\newline\newline
 
 
 Packed YUV Formats
@@ -3728,17 +3748,22 @@ the following codes.
 
 -  a\ :sub:`x` for alpha component bit number x
 
--  - for non-available bits (for positions higher than the bus width)
+- for non-available bits (for positions higher than the bus width)
 
 -  d for dummy bits
 
+.. FIXME: I was unable to find a way to use adjustbox or landscape for this table!
+
+.. tabularcolumns:: |p{7.6cm}|p{1.6cm}|p{0.7cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{-1.0cm}|
 
 .. _v4l2-mbus-pixelcode-yuv8:
 
+.. cssclass: longtable
+
 .. flat-table:: YUV Formats
     :header-rows:  2
     :stub-columns: 0
-
+    :widths: 36 7 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
 
     -  .. row 1
 
@@ -3826,53 +3851,53 @@ the following codes.
        -  0x2001
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  y\ :sub:`7`
 
@@ -3897,53 +3922,53 @@ the following codes.
        -  0x2015
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  u\ :sub:`7`
 
@@ -3966,53 +3991,53 @@ the following codes.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  v\ :sub:`7`
 
@@ -4037,53 +4062,53 @@ the following codes.
        -  0x2002
 
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  u\ :sub:`7`
 
@@ -4106,53 +4131,53 @@ the following codes.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  y\ :sub:`7`
 
@@ -4175,53 +4200,53 @@ the following codes.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  y\ :sub:`7`
 
@@ -4244,53 +4269,53 @@ the following codes.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  v\ :sub:`7`
 
@@ -4313,53 +4338,53 @@ the following codes.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
        -  y\ :sub:`7`
 
@@ -4382,53 +4407,53 @@ the following codes.
        -
        -
        -
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
+       -
 
-       -  -
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.7.4

Part of the diff is not shown here. View the raw message.

#21 lore raw

PATCH 20/20 diff-v4l.rst: Make capabilities table fit in LaTeX

In reply to Mauro Carvalho Chehab

This table has several troubles:
- a duplicated "struct" on its name;
- a reference to a V4L version 1 struct that will never point to something (as we got rid of V4L1 API a long time ago);
- misses hints for LaTeX output (column size and longtable style).

Fix them.

It should be noticed that the first column of this table is not aligned with the rest. I suspect that this is a bug at the flat-table extension.

---
 Documentation/media/uapi/v4l/diff-v4l.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/media/uapi/v4l/diff-v4l.rst +3 -1
index e1e034df514c..93263e477127 100644
@@ -95,7 +95,9 @@ and radio devices supporting a set of related functions like video
 capturing, video overlay and VBI capturing. See :ref:`open` for an
 introduction.
 
+.. tabularcolumns:: |p{5.5cm}|p{6.5cm}|p{5.5cm}
 
+.. cssclass:: longtable
 
 .. flat-table::
     :header-rows:  1
@@ -104,7 +106,7 @@ introduction.
 
     -  .. row 1
 
-       -  struct :c:type:`struct video_capability` ``type``
+       -  ``struct video_capability`` ``type``
 
        -  struct :ref:`v4l2_capability <v4l2-capability>`
 	  ``capabilities`` flags
Signature · 1 line
2.7.4