media: amphion: only insert the first sequence startcode for vc1l format
authorMing Qian <ming.qian@nxp.com>
Fri, 8 Jul 2022 08:56:50 +0000 (09:56 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:18:49 +0000 (18:18 +0100)
commite670f5d672ef3d00b0b8c69eff09a019e6dd4ef9
tree64863f6a18dee347391b0f202ae20ecb91eb6dd4
parentd8f1eb105eab7aab36323c6b488dda479d5bd2da
media: amphion: only insert the first sequence startcode for vc1l format

For format V4L2_PIX_FMT_VC1_ANNEX_L,
the amphion vpu requires driver to help insert some custom startcode
before sequence and frame.
but only the first sequence startcode is needed,
the extra startcode will cause decoding error.
So after seek, we don't need to insert the sequence startcode.

In other words, for V4L2_PIX_FMT_VC1_ANNEX_L,
the vpu doesn't support dynamic resolution change.

Fixes: 145e936380edb ("media: amphion: implement malone decoder rpc interface")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vdec.c
drivers/media/platform/amphion/vpu.h
drivers/media/platform/amphion/vpu_malone.c
drivers/media/platform/amphion/vpu_rpc.h