]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: v4l2-core: Add helpers to build the H264 P/B0/B1 reflists
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 3 Apr 2020 22:13:41 +0000 (00:13 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 11:46:40 +0000 (13:46 +0200)
commit624922a2739b96b83aaf1655d0519b41d30140f7
tree20159722c44c060221f94cc179adbd828dc0170a
parent45776c540f7fee193ab5a419d5e188cd220ce226
media: v4l2-core: Add helpers to build the H264 P/B0/B1 reflists

Building those list is a standard procedure described in section
'8.2.4 Decoding process for reference picture lists construction' of
the H264 specification.

We already have 2 drivers needing the same logic (hantro and rkvdec) and
I suspect we will soon have more.

Let's provide generic helpers to create those lists.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/Kconfig
drivers/media/v4l2-core/Makefile
drivers/media/v4l2-core/v4l2-h264.c [new file with mode: 0644]
include/media/h264-ctrls.h
include/media/v4l2-h264.h [new file with mode: 0644]