]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
media: v4l2-ctrl: Add H264 profile and levels
authorMaheshwar Ajja <majja@codeaurora.org>
Mon, 16 Mar 2020 22:42:30 +0000 (23:42 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 11:26:26 +0000 (13:26 +0200)
Add H264 profile "Contrained High" and H264 levels "5.2",
"6.0", "6.1" and "6.2".

Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c
include/uapi/linux/v4l2-controls.h

index 93d33d1db4e83e89d77f0b75c25d13f276505634..0186ba85aac7e10625d8d5c8e9f9b66eff7b9e2e 100644 (file)
@@ -336,6 +336,10 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
                "4.2",
                "5",
                "5.1",
+               "5.2",
+               "6.0",
+               "6.1",
+               "6.2",
                NULL,
        };
        static const char * const h264_loop_filter[] = {
@@ -362,6 +366,7 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
                "Scalable High Intra",
                "Stereo High",
                "Multiview High",
+               "Constrained High",
                NULL,
        };
        static const char * const vui_sar_idc[] = {
index 1a58d7cc4ccc98a94c78f96b631bd5be3b38c8db..0ba1005c965191bdfb9e1e1f9bffb30a32661230 100644 (file)
@@ -473,6 +473,10 @@ enum v4l2_mpeg_video_h264_level {
        V4L2_MPEG_VIDEO_H264_LEVEL_4_2  = 13,
        V4L2_MPEG_VIDEO_H264_LEVEL_5_0  = 14,
        V4L2_MPEG_VIDEO_H264_LEVEL_5_1  = 15,
+       V4L2_MPEG_VIDEO_H264_LEVEL_5_2  = 16,
+       V4L2_MPEG_VIDEO_H264_LEVEL_6_0  = 17,
+       V4L2_MPEG_VIDEO_H264_LEVEL_6_1  = 18,
+       V4L2_MPEG_VIDEO_H264_LEVEL_6_2  = 19,
 };
 #define V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_ALPHA     (V4L2_CID_MPEG_BASE+360)
 #define V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_BETA      (V4L2_CID_MPEG_BASE+361)
@@ -501,6 +505,7 @@ enum v4l2_mpeg_video_h264_profile {
        V4L2_MPEG_VIDEO_H264_PROFILE_SCALABLE_HIGH_INTRA        = 14,
        V4L2_MPEG_VIDEO_H264_PROFILE_STEREO_HIGH                = 15,
        V4L2_MPEG_VIDEO_H264_PROFILE_MULTIVIEW_HIGH             = 16,
+       V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH           = 17,
 };
 #define V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_HEIGHT    (V4L2_CID_MPEG_BASE+364)
 #define V4L2_CID_MPEG_VIDEO_H264_VUI_EXT_SAR_WIDTH     (V4L2_CID_MPEG_BASE+365)