OSDN Git Service

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)
commit0d2517b3765aa331aee0a95f9b8072062d6bb7e5
tree1e0687ae448b2028049bd00d5decbd2ab8af649f
parentbe1b49f576a80167162707b90151d8a55bf567be
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