* [PATCH v2 0/2] media: verisilicon: fix reference padding issue
@ 2024-12-12 15:43 Benjamin Gaignard
2024-12-12 16:10 ` Fabio Estevam
0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Gaignard @ 2024-12-12 15:43 UTC (permalink / raw)
To: p.zabel, mchehab, shawnguo, s.hauer, kernel, festevam
Cc: linux-media, linux-rockchip, linux-kernel, imx, linux-arm-kernel,
kernel, Benjamin Gaignard
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).
Version 2:
- rebased on top of media-commiter/next
- Add reviewed-by tags
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 | 32 +++++++------------
.../media/platform/verisilicon/hantro_v4l2.c | 21 ++++++++++++
.../media/platform/verisilicon/imx8m_vpu_hw.c | 10 +++---
5 files changed, 40 insertions(+), 27 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 0/2] media: verisilicon: fix reference padding issue
2024-12-12 15:43 [PATCH v2 0/2] media: verisilicon: fix reference padding issue Benjamin Gaignard
@ 2024-12-12 16:10 ` Fabio Estevam
2024-12-12 16:15 ` Benjamin Gaignard
0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2024-12-12 16:10 UTC (permalink / raw)
To: Benjamin Gaignard
Cc: p.zabel, mchehab, shawnguo, s.hauer, kernel, linux-media,
linux-rockchip, linux-kernel, imx, linux-arm-kernel, kernel
On Thu, Dec 12, 2024 at 12:43 PM Benjamin Gaignard
<benjamin.gaignard@collabora.com> wrote:
>
> 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).
>
> Version 2:
> - rebased on top of media-commiter/next
> - Add reviewed-by tags
>
> Benjamin Gaignard (2):
> media: verisilicon: Store reference frames pixels format
> media: verisilicon: Fix IMX8 native pixels format steps values
Do both patches deserve a Fixes tag?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 0/2] media: verisilicon: fix reference padding issue
2024-12-12 16:10 ` Fabio Estevam
@ 2024-12-12 16:15 ` Benjamin Gaignard
0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Gaignard @ 2024-12-12 16:15 UTC (permalink / raw)
To: Fabio Estevam
Cc: p.zabel, mchehab, shawnguo, s.hauer, kernel, linux-media,
linux-rockchip, linux-kernel, imx, linux-arm-kernel, kernel
Le 12/12/2024 à 17:10, Fabio Estevam a écrit :
> On Thu, Dec 12, 2024 at 12:43 PM Benjamin Gaignard
> <benjamin.gaignard@collabora.com> wrote:
>> 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).
>>
>> Version 2:
>> - rebased on top of media-commiter/next
>> - Add reviewed-by tags
>>
>> Benjamin Gaignard (2):
>> media: verisilicon: Store reference frames pixels format
>> media: verisilicon: Fix IMX8 native pixels format steps values
> Do both patches deserve a Fixes tag?
There is dependency in around hevc compress feature in post-proc code.
I don't think it could be applied on stable kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-12 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-12 15:43 [PATCH v2 0/2] media: verisilicon: fix reference padding issue Benjamin Gaignard
2024-12-12 16:10 ` Fabio Estevam
2024-12-12 16:15 ` Benjamin Gaignard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®