]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: postproc: Fix motion vector space size
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 16 Nov 2021 14:38:31 +0000 (14:38 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 07:40:06 +0000 (07:40 +0000)
commit74fb6768f0782d45d704c629003c800e1b7ad2b0
tree8275edf6d413a1a19db89197805371f105ac6a27
parent8597328f58dc5b5cd60caa1e37d003f316942d84
media: hantro: postproc: Fix motion vector space size

When the post-processor hardware block is enabled, the driver
allocates an internal queue of buffers for the decoder enginer,
and uses the vb2 queue for the post-processor engine.

For instance, on a G1 core, the decoder engine produces NV12 buffers
and the post-processor engine can produce YUY2 buffers. The decoder
engine expects motion vectors to be appended to the NV12 buffers,
but this is only required for CODECs that need motion vectors,
such as H.264.

Fix the post-processor logic accordingly.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_postproc.c