]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: verisilicon: Store reference frames pixels format
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Thu, 12 Dec 2024 15:43:33 +0000 (15:43 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 Dec 2024 19:48:25 +0000 (19:48 +0000)
commitdb300ab0e9d38b1e1b0b561333b66a5beacb9994
tree487a5ed01b073f3fce9f2ab5b038b88c44d0b161
parent7f78c081d44ce0f9d73dcef3204df5936ddbfea7
media: verisilicon: Store reference frames pixels format

The Hantro decoder always produces tiled pixel-formats, but when the
post-processor is used, the destination pixel-format is a non-tiled
pixel-format. This causes an incorrect computation of the reference
frame size and offsets. Get and save the correct tiled pixel-format for
8 and 10 bit streams to solve these computation issues.

Fluster VP9 score increase to 166/305 (vs 145/305).
HEVC score is still 141/147.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/verisilicon/hantro.h
drivers/media/platform/verisilicon/hantro_g2.c
drivers/media/platform/verisilicon/hantro_postproc.c
drivers/media/platform/verisilicon/hantro_v4l2.c