[PATCH 0/2] media: verisilicon: fix reference padding issue
Benjamin Gaignard
benjamin.gaignard at collabora.com
Mon Nov 4 09:36:27 PST 2024
Hantro hardware is splited into two parts: the decoder which produce
tiled pixels formats and the post-processor which produce raster pixels
formats.
When post-processor is used the selected pixels format may not have the
some padding/stride than the decoder output pixels format. This led to
miscomputing chroma and motion vectors offsets so data are overlapping.
This series introduce a reference pixels format that decoder use to
compute the various needed offsets and size.
With this series Fluster for VP9 tests is now 207/305 vs 145/305.
HEVC test score isn't impacted by these patches (still 141/147).
Benjamin Gaignard (2):
media: verisilicon: Store reference frames pixels format
media: verisilicon: Fix IMX8 native pixels format steps values
drivers/media/platform/verisilicon/hantro.h | 2 ++
.../media/platform/verisilicon/hantro_g2.c | 2 +-
.../platform/verisilicon/hantro_postproc.c | 28 ++++++-------------
.../media/platform/verisilicon/hantro_v4l2.c | 21 ++++++++++++++
.../media/platform/verisilicon/imx8m_vpu_hw.c | 10 +++----
5 files changed, 38 insertions(+), 25 deletions(-)
--
2.43.0
More information about the Linux-rockchip
mailing list