]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b763186eaec1e6bf802469865228fe2bb53e009
tree64863f6a18dee347391b0f202ae20ecb91eb6dd4
parent6ba7da5cf5ed06bb91ce86d27c4fd950074b8d60
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: dbbb58a9eb026 ("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