]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: insert picture startcode after seek for vc1g format
authorMing Qian <ming.qian@nxp.com>
Fri, 15 Jul 2022 07:15:49 +0000 (09:15 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 12:49:47 +0000 (14:49 +0200)
commit66db83b5088d74bff87b1fde9bffe6c30133d706
tree885800c4fa8d1c16eebb525683eaf735398f2849
parent22551b6a9f46d8541a66397977b81e7736c502f2
media: amphion: insert picture startcode after seek for vc1g format

For format vc1, the amphion vpu requires driver to
help insert some custom startcode before sequence and frame.
the startcode is different for vc1l and vc1g format.

But the sequence startcode is only needed at the beginning,
and it's not expected after seek.
driver need to treat the codec header and the first frame after seek
as a normal frame, and insert picture startcode for it.

In previous patch, I just fix it for vc1l format,
and should fix the similar issue for vc1g too.

Fixes: 1b763186eaec (media: amphion: only insert the first sequence startcode for vc1l format)
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/vpu_malone.c