1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
15 .. _compressed-formats:
17 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
19 .. flat-table:: Compressed Image Formats
27 * .. _V4L2-PIX-FMT-JPEG:
29 - ``V4L2_PIX_FMT_JPEG``
31 - TBD. See also :ref:`VIDIOC_G_JPEGCOMP <VIDIOC_G_JPEGCOMP>`,
32 :ref:`VIDIOC_S_JPEGCOMP <VIDIOC_G_JPEGCOMP>`.
33 * .. _V4L2-PIX-FMT-MPEG:
35 - ``V4L2_PIX_FMT_MPEG``
37 - MPEG multiplexed stream. The actual format is determined by
38 extended control ``V4L2_CID_MPEG_STREAM_TYPE``, see
39 :ref:`mpeg-control-id`.
40 * .. _V4L2-PIX-FMT-H264:
42 - ``V4L2_PIX_FMT_H264``
44 - H264 video elementary stream with start codes.
45 * .. _V4L2-PIX-FMT-H264-NO-SC:
47 - ``V4L2_PIX_FMT_H264_NO_SC``
49 - H264 video elementary stream without start codes.
50 * .. _V4L2-PIX-FMT-H264-MVC:
52 - ``V4L2_PIX_FMT_H264_MVC``
54 - H264 MVC video elementary stream.
55 * .. _V4L2-PIX-FMT-H263:
57 - ``V4L2_PIX_FMT_H263``
59 - H263 video elementary stream.
60 * .. _V4L2-PIX-FMT-MPEG1:
62 - ``V4L2_PIX_FMT_MPEG1``
64 - MPEG1 video elementary stream.
65 * .. _V4L2-PIX-FMT-MPEG2:
67 - ``V4L2_PIX_FMT_MPEG2``
69 - MPEG2 video elementary stream.
70 * .. _V4L2-PIX-FMT-MPEG2-SLICE:
72 - ``V4L2_PIX_FMT_MPEG2_SLICE``
74 - MPEG-2 parsed slice data, as extracted from the MPEG-2 bitstream.
75 This format is adapted for stateless video decoders that implement a
76 MPEG-2 pipeline (using the :ref:`codec` and :ref:`media-request-api`).
77 Metadata associated with the frame to decode is required to be passed
78 through the ``V4L2_CID_MPEG_VIDEO_MPEG2_SLICE_PARAMS`` control and
79 quantization matrices can optionally be specified through the
80 ``V4L2_CID_MPEG_VIDEO_MPEG2_QUANTIZATION`` control.
81 See the :ref:`associated Codec Control IDs <v4l2-mpeg-mpeg2>`.
82 Exactly one output and one capture buffer must be provided for use with
83 this pixel format. The output buffer must contain the appropriate number
84 of macroblocks to decode a full corresponding frame to the matching
86 * .. _V4L2-PIX-FMT-MPEG4:
88 - ``V4L2_PIX_FMT_MPEG4``
90 - MPEG4 video elementary stream.
91 * .. _V4L2-PIX-FMT-XVID:
93 - ``V4L2_PIX_FMT_XVID``
95 - Xvid video elementary stream.
96 * .. _V4L2-PIX-FMT-VC1-ANNEX-G:
98 - ``V4L2_PIX_FMT_VC1_ANNEX_G``
100 - VC1, SMPTE 421M Annex G compliant stream.
101 * .. _V4L2-PIX-FMT-VC1-ANNEX-L:
103 - ``V4L2_PIX_FMT_VC1_ANNEX_L``
105 - VC1, SMPTE 421M Annex L compliant stream.
106 * .. _V4L2-PIX-FMT-VP8:
108 - ``V4L2_PIX_FMT_VP8``
110 - VP8 video elementary stream.
111 * .. _V4L2-PIX-FMT-VP9:
113 - ``V4L2_PIX_FMT_VP9``
115 - VP9 video elementary stream.
116 * .. _V4L2-PIX-FMT-HEVC:
118 - ``V4L2_PIX_FMT_HEVC``
120 - HEVC/H.265 video elementary stream.
121 * .. _V4L2-PIX-FMT-FWHT:
123 - ``V4L2_PIX_FMT_FWHT``
125 - Video elementary stream using a codec based on the Fast Walsh Hadamard
126 Transform. This codec is implemented by the vicodec ('Virtual Codec')
127 driver. See the codec-fwht.h header for more details.