5bd4bb7817
LaTeX doesn't handle too well auto-width on tables, and ReST markup requires an special tag to give it the needed hints. As we're using A4 paper, we have 17cm of useful spaces. As most media tables have widths, let's use it to generate the needed via the following perl script: my ($line_size, $table_header, $has_cols) = (17.5, 0, 0); my $out; my $header = ""; my @widths = (); sub round { $_[0] > 0 ? int($_[0] + .5) : -int(-$_[0] + .5) } while (<>) { if (!$table_header) { $has_cols = 1 if (m/..\s+tabularcolumns::/); if (m/..\s+flat-table::/) { $table_header = 1; $header = $_; next; } $out .= $_; next; } $header .= $_; @widths = split(/ /, $1) if (m/:widths:\s+(.*)/); if (m/^\n$/) { if (!$has_cols && @widths) { my ($tot, $t, $i) = (0, 0, 0); foreach my $v(@widths) { $tot += $v; }; $out .= ".. tabularcolumns:: |"; for ($i = 0; $i < scalar @widths - 1; $i++) { my $v = $widths[$i]; my $w = round(10 * ($v * $line_size) / $tot) / 10; $out .= sprintf "p{%.1fcm}|", $w; $t += $w; } my $w = $line_size - $t; $out .= sprintf "p{%.1fcm}|\n\n", $w; } $out .= $header; $table_header = 0; $has_cols = 0; $header = ""; @widths = (); } } print $out; Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
132 lines
2.2 KiB
ReStructuredText
132 lines
2.2 KiB
ReStructuredText
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
******************
|
|
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
|
|
:widths: 3 1 4
|
|
|
|
|
|
- .. row 1
|
|
|
|
- Identifier
|
|
|
|
- Code
|
|
|
|
- Details
|
|
|
|
- .. _V4L2-PIX-FMT-JPEG:
|
|
|
|
- ``V4L2_PIX_FMT_JPEG``
|
|
|
|
- 'JPEG'
|
|
|
|
- TBD. See also :ref:`VIDIOC_G_JPEGCOMP <VIDIOC_G_JPEGCOMP>`,
|
|
:ref:`VIDIOC_S_JPEGCOMP <VIDIOC_G_JPEGCOMP>`.
|
|
|
|
- .. _V4L2-PIX-FMT-MPEG:
|
|
|
|
- ``V4L2_PIX_FMT_MPEG``
|
|
|
|
- 'MPEG'
|
|
|
|
- MPEG multiplexed stream. The actual format is determined by
|
|
extended control ``V4L2_CID_MPEG_STREAM_TYPE``, see
|
|
:ref:`mpeg-control-id`.
|
|
|
|
- .. _V4L2-PIX-FMT-H264:
|
|
|
|
- ``V4L2_PIX_FMT_H264``
|
|
|
|
- 'H264'
|
|
|
|
- H264 video elementary stream with start codes.
|
|
|
|
- .. _V4L2-PIX-FMT-H264-NO-SC:
|
|
|
|
- ``V4L2_PIX_FMT_H264_NO_SC``
|
|
|
|
- 'AVC1'
|
|
|
|
- H264 video elementary stream without start codes.
|
|
|
|
- .. _V4L2-PIX-FMT-H264-MVC:
|
|
|
|
- ``V4L2_PIX_FMT_H264_MVC``
|
|
|
|
- 'M264'
|
|
|
|
- H264 MVC video elementary stream.
|
|
|
|
- .. _V4L2-PIX-FMT-H263:
|
|
|
|
- ``V4L2_PIX_FMT_H263``
|
|
|
|
- 'H263'
|
|
|
|
- H263 video elementary stream.
|
|
|
|
- .. _V4L2-PIX-FMT-MPEG1:
|
|
|
|
- ``V4L2_PIX_FMT_MPEG1``
|
|
|
|
- 'MPG1'
|
|
|
|
- MPEG1 video elementary stream.
|
|
|
|
- .. _V4L2-PIX-FMT-MPEG2:
|
|
|
|
- ``V4L2_PIX_FMT_MPEG2``
|
|
|
|
- 'MPG2'
|
|
|
|
- MPEG2 video elementary stream.
|
|
|
|
- .. _V4L2-PIX-FMT-MPEG4:
|
|
|
|
- ``V4L2_PIX_FMT_MPEG4``
|
|
|
|
- 'MPG4'
|
|
|
|
- MPEG4 video elementary stream.
|
|
|
|
- .. _V4L2-PIX-FMT-XVID:
|
|
|
|
- ``V4L2_PIX_FMT_XVID``
|
|
|
|
- 'XVID'
|
|
|
|
- Xvid video elementary stream.
|
|
|
|
- .. _V4L2-PIX-FMT-VC1-ANNEX-G:
|
|
|
|
- ``V4L2_PIX_FMT_VC1_ANNEX_G``
|
|
|
|
- 'VC1G'
|
|
|
|
- VC1, SMPTE 421M Annex G compliant stream.
|
|
|
|
- .. _V4L2-PIX-FMT-VC1-ANNEX-L:
|
|
|
|
- ``V4L2_PIX_FMT_VC1_ANNEX_L``
|
|
|
|
- 'VC1L'
|
|
|
|
- VC1, SMPTE 421M Annex L compliant stream.
|
|
|
|
- .. _V4L2-PIX-FMT-VP8:
|
|
|
|
- ``V4L2_PIX_FMT_VP8``
|
|
|
|
- 'VP80'
|
|
|
|
- VP8 video elementary stream.
|