media: uapi: h264: Add the concept of start code
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 16 Aug 2019 16:01:25 +0000 (13:01 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 19 Aug 2019 16:23:12 +0000 (13:23 -0300)
commit8cae93e090113e46bd29a99c1727d8f13ea12fdf
tree14bd89209cf54424272a7b1100f6765985ed7dca
parent5604be66a56867a784e162299a48c214921ffa1b
media: uapi: h264: Add the concept of start code

Stateless decoders have different expectations about the
start code that is prepended on H264 slices. Add a
menu control to express the supported start code types
(including no start code).

Drivers are allowed to support only one start code type,
but they can support both too.

Note that this is independent of the H264 decoding mode,
which specifies the granularity of the decoding operations.
Either in frame-based or slice-based mode, this new control
will allow to define the start code expected on H264 slices.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/uapi/v4l/ext-ctrls-codec.rst
Documentation/media/uapi/v4l/pixfmt-compressed.rst
drivers/media/v4l2-core/v4l2-ctrls.c
include/media/h264-ctrls.h