OSDN Git Service

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 0b80616..2b5edab 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 226fcfa..36e4c93 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;
 };