]> git.baikalelectronics.ru Git - kernel.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)
commitc4c4ea340e7b64682ae96d0a51dde71e6add1b60
tree20159722c44c060221f94cc179adbd828dc0170a
parent64d9b4e7a33c75c0c96b09bd83d8a8978afedfa6
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]