media: rkvdec: h264: Support High 10 and 4:2:2 profiles
authorJonas Karlman <jonas@kwiboo.se>
Thu, 1 May 2025 19:55:50 +0000 (15:55 -0400)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 15 May 2025 06:13:32 +0000 (08:13 +0200)
commit5e1ff2314797bf53636468a97719a8222deca9ae
tree4ac0547b0493b88e704087de52071f747137d608
parentd35c64eccf3b15a38a168a8c36096b960e8fbc1d
media: rkvdec: h264: Support High 10 and 4:2:2 profiles

Add support and enable decoding of H264 High 10 and 4:2:2 profiles.

Decoded CAPTURE buffer width is aligned to 64 pixels to accommodate HW
requirement of 10-bit format buffers, fixes decoding of all the 4:2:2
and 10bit 4:2:2 flusters tests except two stream that present some
visual artifacts.

- Hi422FREXT17_SONY_A
- Hi422FREXT19_SONY_A

The get_image_fmt() ops is implemented to select an image format
required for the provided SPS control, and returns RKVDEC_IMG_FMT_ANY
for other controls.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Tested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Tested-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/staging/media/rkvdec/rkvdec-h264.c
drivers/staging/media/rkvdec/rkvdec.c
drivers/staging/media/rkvdec/rkvdec.h