]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: Support NV12 on the G2 core
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Tue, 16 Nov 2021 14:38:42 +0000 (14:38 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 07:53:37 +0000 (07:53 +0000)
commitcdd5ccd77f58360929d584c58956757ce775ba4f
tree1e0687ae448b2028049bd00d5decbd2ab8af649f
parent48f5ec9f0870ba729e6684ba5c3e73602add722d
media: hantro: Support NV12 on the G2 core

The G2 decoder block produces NV12 4x4 tiled format (NV12_4L4).
Enable the G2 post-processor block, in order to produce regular NV12.

The logic in hantro_postproc.c is leveraged to take care of allocating
the extra buffers and configure the post-processor, which is
significantly simpler than the one on the G1.

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_g2_vp9_dec.c
drivers/staging/media/hantro/hantro_hw.h
drivers/staging/media/hantro/hantro_postproc.c
drivers/staging/media/hantro/imx8m_vpu_hw.c