]> git.baikalelectronics.ru Git - kernel.git/commit
media: h264: Use v4l2_h264_reference for reflist
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 13 May 2022 20:29:03 +0000 (22:29 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:58:42 +0000 (09:58 +0200)
commitf616fd8098edb206d2fafaf41962969aa1a7e7a2
treee935576ca7043801ab8bc5aa3ea856720501f0f7
parent44ab85170342c67b5f46fbaa18915e0477b96e60
media: h264: Use v4l2_h264_reference for reflist

In preparation for adding field decoding support, convert the byte arrays
for reflist into array of struct v4l2_h264_reference. That struct will
allow us to mark which field of the reference picture is being referenced.

[hverkuil: top_field_order_cnt -> pic_order_count]

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_common.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_common.h
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_multi_if.c
drivers/media/platform/nvidia/tegra-vde/h264.c
drivers/media/v4l2-core/v4l2-h264.c
drivers/staging/media/hantro/hantro_g1_h264_dec.c
drivers/staging/media/hantro/hantro_hw.h
drivers/staging/media/hantro/rockchip_vpu2_hw_h264_dec.c
drivers/staging/media/rkvdec/rkvdec-h264.c
include/media/v4l2-h264.h