linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: v4l2-ctrl: Add H264 profile and levels
@ 2020-03-16 22:42 Maheshwar Ajja
  2020-03-30 11:20 ` Hans Verkuil
  0 siblings, 1 reply; 3+ messages in thread
From: Maheshwar Ajja @ 2020-03-16 22:42 UTC (permalink / raw)
  To: mchehab; +Cc: Maheshwar Ajja, linux-media, linux-kernel

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>
---
 drivers/media/v4l2-core/v4l2-ctrls.c | 5 +++++
 include/uapi/linux/v4l2-controls.h   | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c
index 2928c5e..67ce711 100644
--- a/drivers/media/v4l2-core/v4l2-ctrls.c
+++ b/drivers/media/v4l2-core/v4l2-ctrls.c
@@ -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[] = {
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
index 5a7bede..fbe3f82d 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -467,6 +467,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)
@@ -495,6 +499,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)
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] media: v4l2-ctrl: Add H264 profile and levels
  2020-03-16 22:42 [PATCH] media: v4l2-ctrl: Add H264 profile and levels Maheshwar Ajja
@ 2020-03-30 11:20 ` Hans Verkuil
  2020-04-07 22:07   ` majja
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2020-03-30 11:20 UTC (permalink / raw)
  To: Maheshwar Ajja, mchehab; +Cc: linux-media, linux-kernel

Hi Maheshwar,

The patch looks good, but you also need to update the documentation
in Documentation/media/uapi/v4l/ext-ctrls-codec.rst, adding the new
profile/levels.

You can just post a separate patch for that, and I'll take them both.

Regards,

	Hans

On 3/16/20 11:42 PM, Maheshwar Ajja wrote:
> 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>
> ---
>  drivers/media/v4l2-core/v4l2-ctrls.c | 5 +++++
>  include/uapi/linux/v4l2-controls.h   | 5 +++++
>  2 files changed, 10 insertions(+)
> 
> diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c
> index 2928c5e..67ce711 100644
> --- a/drivers/media/v4l2-core/v4l2-ctrls.c
> +++ b/drivers/media/v4l2-core/v4l2-ctrls.c
> @@ -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[] = {
> diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
> index 5a7bede..fbe3f82d 100644
> --- a/include/uapi/linux/v4l2-controls.h
> +++ b/include/uapi/linux/v4l2-controls.h
> @@ -467,6 +467,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)
> @@ -495,6 +499,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)
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] media: v4l2-ctrl: Add H264 profile and levels
  2020-03-30 11:20 ` Hans Verkuil
@ 2020-04-07 22:07   ` majja
  0 siblings, 0 replies; 3+ messages in thread
From: majja @ 2020-04-07 22:07 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: mchehab, linux-media, linux-kernel

Hi Hans,

Thank you, I have posted a patch with below subject to update the 
documentation.
[PATCH] media: uapi: h264: Add new profile and levels

Regards,
     Maheshwar

On 2020-03-30 04:20, Hans Verkuil wrote:
> Hi Maheshwar,
> 
> The patch looks good, but you also need to update the documentation
> in Documentation/media/uapi/v4l/ext-ctrls-codec.rst, adding the new
> profile/levels.
> 
> You can just post a separate patch for that, and I'll take them both.
> 
> Regards,
> 
> 	Hans
> 
> On 3/16/20 11:42 PM, Maheshwar Ajja wrote:
>> 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>
>> ---
>>  drivers/media/v4l2-core/v4l2-ctrls.c | 5 +++++
>>  include/uapi/linux/v4l2-controls.h   | 5 +++++
>>  2 files changed, 10 insertions(+)
>> 
>> diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c 
>> b/drivers/media/v4l2-core/v4l2-ctrls.c
>> index 2928c5e..67ce711 100644
>> --- a/drivers/media/v4l2-core/v4l2-ctrls.c
>> +++ b/drivers/media/v4l2-core/v4l2-ctrls.c
>> @@ -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[] = {
>> diff --git a/include/uapi/linux/v4l2-controls.h 
>> b/include/uapi/linux/v4l2-controls.h
>> index 5a7bede..fbe3f82d 100644
>> --- a/include/uapi/linux/v4l2-controls.h
>> +++ b/include/uapi/linux/v4l2-controls.h
>> @@ -467,6 +467,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)
>> @@ -495,6 +499,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)
>> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-07 22:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16 22:42 [PATCH] media: v4l2-ctrl: Add H264 profile and levels Maheshwar Ajja
2020-03-30 11:20 ` Hans Verkuil
2020-04-07 22:07   ` majja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).