Benjamin Gaignard 579846ec52 media: hantro: HEVC: Fix output frame chroma offset
Hantro decoder doesn't take care of the requested and aligned size
of the capture buffer.
Stop using the bitstream width/height and use capture frame size
stored in the context to get the correct values.

hantro_hevc_chroma_offset() and hantro_hevc_motion_vectors_offset()
are only used in hantro_g2_hevc_dec.c so take the opportunity
to move them here.

fluster HEVC score goes up from 77 to 85 successful tests (over 147)
with this patch.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-05-13 11:02:22 +02:00
..
2022-03-28 12:50:50 -07:00
2021-07-27 12:17:21 +02:00
2022-02-21 19:33:05 +00:00
2022-03-28 12:50:50 -07:00
2021-11-04 07:56:22 -07:00
2022-03-28 12:50:50 -07:00
2022-03-28 12:50:50 -07:00
2022-03-07 11:40:40 +00:00
2022-03-16 15:10:23 +01:00
2022-03-16 15:10:23 +01:00