Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70b074df authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: fix pdf build with Spinx 1.6



Sphinx 1.6 generates some LaTeX code before each table,
starting its own environment before calling tabulary,
apparently to improve table layout.

The problem is that such environment is incompatible with
adjustbox. While, in thesis, it should be possible to override
it or to redefine tabulary, I was unable to produce such patch.

Also, that would likely break on some future Sphinx version.

So, instead, let's just change the font size on bigger tables,
in order for them to fit into the page size. That is not as
good as adjustbox, and require some manual work, but it should
be less sensitive to Sphinx changes.

While here, adjust a few other tables whose text is exceeding
the cell boundaries.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 6e893ca2
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -42,6 +42,8 @@ the :c:type:`v4l2_format` structure to 0.


.. _v4l2-meta-format:
.. _v4l2-meta-format:


.. tabularcolumns:: |p{1.4cm}|p{2.2cm}|p{13.9cm}|

.. flat-table:: struct v4l2_meta_format
.. flat-table:: struct v4l2_meta_format
    :header-rows:  0
    :header-rows:  0
    :stub-columns: 0
    :stub-columns: 0
+15 −8
Original line number Original line Diff line number Diff line
@@ -105,7 +105,13 @@ which may return ``EBUSY`` can be the
struct v4l2_sliced_vbi_format
struct v4l2_sliced_vbi_format
-----------------------------
-----------------------------


.. tabularcolumns:: |p{1.0cm}|p{4.5cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|
.. raw:: latex

    \begingroup
    \scriptsize
    \setlength{\tabcolsep}{2pt}

.. tabularcolumns:: |p{.75cm}|p{3.3cm}|p{3.4cm}|p{3.4cm}|p{3.4cm}|


.. cssclass:: longtable
.. cssclass:: longtable


@@ -199,6 +205,8 @@ struct v4l2_sliced_vbi_format


	Applications and drivers must set it to zero.
	Applications and drivers must set it to zero.


.. raw:: latex
    \endgroup


.. _vbi-services2:
.. _vbi-services2:


@@ -206,10 +214,9 @@ Sliced VBI services
-------------------
-------------------


.. raw:: latex
.. raw:: latex
    \footnotesize


    \begin{adjustbox}{width=\columnwidth}
.. tabularcolumns:: |p{4.1cm}|p{1.1cm}|p{2.4cm}|p{2.0cm}|p{7.3cm}|

.. tabularcolumns:: |p{5.0cm}|p{1.4cm}|p{3.0cm}|p{2.5cm}|p{9.0cm}|


.. flat-table::
.. flat-table::
    :header-rows:  1
    :header-rows:  1
@@ -263,7 +270,7 @@ Sliced VBI services


.. raw:: latex
.. raw:: latex


    \end{adjustbox}\newline\newline
    \normalsize




Drivers may return an ``EINVAL`` error code when applications attempt to
Drivers may return an ``EINVAL`` error code when applications attempt to
@@ -457,7 +464,7 @@ number).
struct v4l2_mpeg_vbi_fmt_ivtv
struct v4l2_mpeg_vbi_fmt_ivtv
-----------------------------
-----------------------------


.. tabularcolumns:: |p{1.0cm}|p{3.5cm}|p{1.0cm}|p{11.5cm}|
.. tabularcolumns:: |p{1.0cm}|p{3.8cm}|p{1.0cm}|p{11.2cm}|


.. flat-table::
.. flat-table::
    :header-rows:  0
    :header-rows:  0
@@ -525,7 +532,7 @@ Magic Constants for struct v4l2_mpeg_vbi_fmt_ivtv magic field
structs v4l2_mpeg_vbi_itv0 and v4l2_mpeg_vbi_ITV0
structs v4l2_mpeg_vbi_itv0 and v4l2_mpeg_vbi_ITV0
-------------------------------------------------
-------------------------------------------------


.. tabularcolumns:: |p{4.4cm}|p{2.4cm}|p{10.7cm}|
.. tabularcolumns:: |p{4.9cm}|p{2.4cm}|p{10.2cm}|


.. flat-table::
.. flat-table::
    :header-rows:  0
    :header-rows:  0
@@ -574,7 +581,7 @@ structs v4l2_mpeg_vbi_itv0 and v4l2_mpeg_vbi_ITV0
struct v4l2_mpeg_vbi_ITV0
struct v4l2_mpeg_vbi_ITV0
-------------------------
-------------------------


.. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
.. tabularcolumns:: |p{4.9cm}|p{4.4cm}|p{8.2cm}|


.. flat-table::
.. flat-table::
    :header-rows:  0
    :header-rows:  0
+3 −3
Original line number Original line Diff line number Diff line
@@ -204,9 +204,9 @@ list entity names and pad numbers).


.. raw:: latex
.. raw:: latex


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


.. tabularcolumns:: |p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|p{4.5cm}|
.. tabularcolumns:: |p{2.0cm}|p{2.3cm}|p{2.3cm}|p{2.3cm}|p{2.3cm}|p{2.3cm}|p{2.3cm}|


.. _sample-pipeline-config:
.. _sample-pipeline-config:


@@ -253,7 +253,7 @@ list entity names and pad numbers).


.. raw:: latex
.. raw:: latex


    \end{adjustbox}\newline\newline
    \normalsize


1. Initial state. The sensor source pad format is set to its native 3MP
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
   size and V4L2_MBUS_FMT_SGRBG8_1X8 media bus code. Formats on the
+3 −3
Original line number Original line Diff line number Diff line
@@ -1922,9 +1922,9 @@ enum v4l2_vp8_golden_frame_sel -


.. raw:: latex
.. raw:: latex


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


.. tabularcolumns:: |p{11.0cm}|p{10.0cm}|
.. tabularcolumns:: |p{9.0cm}|p{8.0cm}|


.. flat-table::
.. flat-table::
    :header-rows:  0
    :header-rows:  0
@@ -1940,7 +1940,7 @@ enum v4l2_vp8_golden_frame_sel -


.. raw:: latex
.. raw:: latex


    \end{adjustbox}
    \normalsize




``V4L2_CID_MPEG_VIDEO_VPX_MIN_QP (integer)``
``V4L2_CID_MPEG_VIDEO_VPX_MIN_QP (integer)``
+4 −3
Original line number Original line Diff line number Diff line
@@ -34,11 +34,12 @@ The second plane provides 16-bit per-pixel Depth data arranged in
Each cell is a 16-bit word with more significant data stored at higher
Each cell is a 16-bit word with more significant data stored at higher
memory address (byte order is little-endian).
memory address (byte order is little-endian).



.. raw:: latex
.. raw:: latex


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


.. tabularcolumns:: |p{4.0cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|
.. tabularcolumns:: |p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|


.. flat-table::
.. flat-table::
    :header-rows:  0
    :header-rows:  0
@@ -78,4 +79,4 @@ memory address (byte order is little-endian).


.. raw:: latex
.. raw:: latex


    \end{adjustbox}\newline\newline
    \normalsize
Loading