media: cedrus: Specify H264 startcode and decoding mode
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 16 Aug 2019 16:01:28 +0000 (13:01 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 19 Aug 2019 16:26:56 +0000 (13:26 -0300)
commit341772b82a3b83e7a7a2c0605c8c728e81b38319
treeb1f6066e16f1296d5ca9ef6379720d7fcae50d09
parent3f715c64be6e6e1e1bb140fb1179ab0a712f94c3
media: cedrus: Specify H264 startcode and decoding mode

The cedrus VPU is slice-based and expects V4L2_PIX_FMT_H264_SLICE
buffers to contain H264 slices with no start code.

Expose this to userspace with the newly added menu control.

These two controls are specified as mandatory for applications,
but we mark them as non-required on the driver side for
backwards compatibility.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus.c