]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:31 +0000 (14:23 +0200)
commit621c02e362c80734f9f89e98afd201dbc4459e4d
tree8cfcb65b5891e6cf72bd867f700c6089a63f40c0
parentdbfe3179c661c367f4f4e649ec36f8dabee070ff
media: hantro: postproc: Fix motion vector space size

[ Upstream commit 00ba8014e457bcd327ddd171dab0d6784e07bce5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/hantro/hantro_postproc.c