OSDN Git Service

media: uapi: h264: Add the concept of decoding mode
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 16 Aug 2019 16:01:24 +0000 (13:01 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 19 Aug 2019 16:21:51 +0000 (13:21 -0300)
commit5604be66a56867a784e162299a48c214921ffa1b
treeaac87abd8c1fbbe92907035b5b9750f1806ad7e1
parent7bb3c32abd7bafd346f667cccb7dfe9686f14ddd
media: uapi: h264: Add the concept of decoding mode

Some stateless decoders don't support per-slice decoding granularity
(or at least not in a way that would make them efficient or easy to use).

Expose a menu to control the supported decoding modes. Drivers are
allowed to support only one decoding but they can support both too.

To fully specify the decoding operation, we need to introduce
a start_byte_offset, to indicate where slices start.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.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