Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: pixfmt-compressed.rst: improve H264/HEVC/MPEG1+2/VP8+9 documentation

The existing documentation was incorrect and did not correspond
to how actual codec drivers implemented this.

Update the documentation to explicitly specify what is actually
expected.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
d4e0f82a 051f8d2d

+30 -6
+30 -6
Documentation/media/uapi/v4l/pixfmt-compressed.rst
··· 41 41 42 42 - ``V4L2_PIX_FMT_H264`` 43 43 - 'H264' 44 - - H264 video elementary stream with start codes. 44 + - H264 Access Unit. 45 + The decoder expects one Access Unit per buffer. 46 + The encoder generates one Access Unit per buffer. 47 + If :ref:`VIDIOC_ENUM_FMT` reports ``V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM`` 48 + then the decoder has no requirements since it can parse all the 49 + information from the raw bytestream. 45 50 * .. _V4L2-PIX-FMT-H264-NO-SC: 46 51 47 52 - ``V4L2_PIX_FMT_H264_NO_SC`` ··· 94 89 95 90 - ``V4L2_PIX_FMT_MPEG1`` 96 91 - 'MPG1' 97 - - MPEG1 video elementary stream. 92 + - MPEG1 Picture. Each buffer starts with a Picture header, followed 93 + by other headers as needed and ending with the Picture data. 94 + If :ref:`VIDIOC_ENUM_FMT` reports ``V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM`` 95 + then the decoder has no requirements since it can parse all the 96 + information from the raw bytestream. 98 97 * .. _V4L2-PIX-FMT-MPEG2: 99 98 100 99 - ``V4L2_PIX_FMT_MPEG2`` 101 100 - 'MPG2' 102 - - MPEG2 video elementary stream. 101 + - MPEG2 Picture. Each buffer starts with a Picture header, followed 102 + by other headers as needed and ending with the Picture data. 103 + If :ref:`VIDIOC_ENUM_FMT` reports ``V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM`` 104 + then the decoder has no requirements since it can parse all the 105 + information from the raw bytestream. 103 106 * .. _V4L2-PIX-FMT-MPEG2-SLICE: 104 107 105 108 - ``V4L2_PIX_FMT_MPEG2_SLICE`` ··· 148 135 149 136 - ``V4L2_PIX_FMT_VP8`` 150 137 - 'VP80' 151 - - VP8 video elementary stream. 138 + - VP8 compressed video frame. The encoder generates one 139 + compressed frame per buffer, and the decoder requires one 140 + compressed frame per buffer. 152 141 * .. _V4L2-PIX-FMT-VP8-FRAME: 153 142 154 143 - ``V4L2_PIX_FMT_VP8_FRAME`` ··· 175 160 176 161 - ``V4L2_PIX_FMT_VP9`` 177 162 - 'VP90' 178 - - VP9 video elementary stream. 163 + - VP9 compressed video frame. The encoder generates one 164 + compressed frame per buffer, and the decoder requires one 165 + compressed frame per buffer. 179 166 * .. _V4L2-PIX-FMT-HEVC: 180 167 181 168 - ``V4L2_PIX_FMT_HEVC`` 182 169 - 'HEVC' 183 - - HEVC/H.265 video elementary stream. 170 + - HEVC/H.265 Access Unit. 171 + The decoder expects one Access Unit per buffer. 172 + The encoder generates one Access Unit per buffer. 173 + If :ref:`VIDIOC_ENUM_FMT` reports ``V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM`` 174 + then the decoder has no requirements since it can parse all the 175 + information from the raw bytestream. 184 176 * .. _V4L2-PIX-FMT-FWHT: 185 177 186 178 - ``V4L2_PIX_FMT_FWHT`` ··· 195 173 - Video elementary stream using a codec based on the Fast Walsh Hadamard 196 174 Transform. This codec is implemented by the vicodec ('Virtual Codec') 197 175 driver. See the codec-fwht.h header for more details. 176 + :ref:`VIDIOC_ENUM_FMT` reports ``V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM`` 177 + since the decoder can parse all the information from the raw bytestream. 198 178 * .. _V4L2-PIX-FMT-FWHT-STATELESS: 199 179 200 180 - ``V4L2_PIX_FMT_FWHT_STATELESS``