]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-ctrls: Add hevc_ext_sps_[ls]t_rps controls
authorDetlev Casanova <detlev.casanova@collabora.com>
Fri, 9 Jan 2026 16:15:18 +0000 (11:15 -0500)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 21 Jan 2026 13:43:09 +0000 (14:43 +0100)
commitfa05705107a40131a8335ad37817153709261738
treea00cb6f98106796335f22df9a7b12aed787e1bb0
parent8a5586d4ffb10751b869a02d757482fe0b3739f3
media: v4l2-ctrls: Add hevc_ext_sps_[ls]t_rps controls

The vdpu381 decoder found on newer Rockchip SoC need the information
from the long term and short term ref pic sets from the SPS.

So far, it wasn't included in the v4l2 API, so add it with new dynamic
sized controls.

Each element of the hevc_ext_sps_lt_rps array contains the long term ref
pic set at that index.
Each element of the hevc_ext_sps_st_rps contains the short term ref pic
set at that index, as the raw data.
It is the role of the drivers to calculate the reference sets values.

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls-core.c
drivers/media/v4l2-core/v4l2-ctrls-defs.c
include/uapi/linux/v4l2-controls.h
include/uapi/linux/videodev2.h