media: hevc: Add sps_max_sub_layers_minus1 to v4l2_ctrl_hevc_sps
authorJohn Cox <jc@kynesim.co.uk>
Fri, 30 Apr 2021 16:48:13 +0000 (18:48 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jun 2021 10:14:57 +0000 (12:14 +0200)
sps_max_sub_layers_minus1 is needed if the driver wishes to determine
whether or not a frame might be used for reference.

Signed-off-by: John Cox <jc@kynesim.co.uk>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
include/media/hevc-ctrls.h

index 0b8061666c57c67a4eb135e1f9987f535d23b9e2..2b5edab55bb4ee2683037d793decd3fc636f50cd 100644 (file)
@@ -2707,6 +2707,9 @@ enum v4l2_mpeg_video_hevc_size_of_length_field -
     * - __u8
       - ``chroma_format_idc``
       -
+    * - __u8
+      - ``sps_max_sub_layers_minus1``
+      -
     * - __u64
       - ``flags``
       - See :ref:`Sequence Parameter Set Flags <hevc_sps_flags>`
index 226fcfa0e0261eca7074cfb114ae5e851366a36d..36e4c93707ae57b57d89671c9685cb3dbd7bf50c 100644 (file)
@@ -75,8 +75,7 @@ struct v4l2_ctrl_hevc_sps {
        __u8    num_short_term_ref_pic_sets;
        __u8    num_long_term_ref_pics_sps;
        __u8    chroma_format_idc;
-
-       __u8    padding;
+       __u8    sps_max_sub_layers_minus1;
 
        __u64   flags;
 };