All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc
@ 2022-08-23  7:26 Dikshita Agarwal
  2022-08-24 12:06 ` Hans Verkuil
  0 siblings, 1 reply; 4+ messages in thread
From: Dikshita Agarwal @ 2022-08-23  7:26 UTC (permalink / raw)
  To: linux-media, linux-kernel, hverkuil-cisco, ezequiel
  Cc: stanimir.varbanov, linux-arm-msm, quic_vgarodia, quic_majja,
	quic_jdas, Dikshita Agarwal

Add main 10 still picture profile for HEVC encoder.

Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
---
 Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 2 ++
 include/uapi/linux/v4l2-controls.h                        | 1 +
 2 files changed, 3 insertions(+)

diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
index 2a165ae..5b2da84 100644
--- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
+++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
@@ -2424,6 +2424,8 @@ enum v4l2_mpeg_video_hevc_profile -
       - Main still picture profile.
     * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10``
       - Main 10 profile.
+    * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE``
+      - Main 10 still picture profile.
 
 .. raw:: latex
 
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
index 5f46bf4..1159337 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -743,6 +743,7 @@ enum v4l2_mpeg_video_hevc_profile {
 	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN = 0,
 	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE = 1,
 	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10 = 2,
+	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE = 3,
 };
 #define V4L2_CID_MPEG_VIDEO_HEVC_LEVEL		(V4L2_CID_CODEC_BASE + 616)
 enum v4l2_mpeg_video_hevc_level {
-- 
2.7.4


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

* Re: [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc
  2022-08-23  7:26 [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc Dikshita Agarwal
@ 2022-08-24 12:06 ` Hans Verkuil
  2022-08-26  6:34   ` Dikshita Agarwal (QUIC)
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Verkuil @ 2022-08-24 12:06 UTC (permalink / raw)
  To: Dikshita Agarwal, linux-media, linux-kernel, ezequiel
  Cc: stanimir.varbanov, linux-arm-msm, quic_vgarodia, quic_majja, quic_jdas

Hi Dikshita,

On 23/08/2022 09:26, Dikshita Agarwal wrote:
> Add main 10 still picture profile for HEVC encoder.

Hmm, is this the same as the "Main 4:4:4 Still Picture" profile mentioned here:

https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Version_2_profiles

If not, where it is defined? I would also prefer to have this patch merged together
with a driver that uses it.

Regards,

	Hans

> 
> Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
> ---
>  Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 2 ++
>  include/uapi/linux/v4l2-controls.h                        | 1 +
>  2 files changed, 3 insertions(+)
> 
> diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
> index 2a165ae..5b2da84 100644
> --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
> +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
> @@ -2424,6 +2424,8 @@ enum v4l2_mpeg_video_hevc_profile -
>        - Main still picture profile.
>      * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10``
>        - Main 10 profile.
> +    * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE``
> +      - Main 10 still picture profile.
>  
>  .. raw:: latex
>  
> diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
> index 5f46bf4..1159337 100644
> --- a/include/uapi/linux/v4l2-controls.h
> +++ b/include/uapi/linux/v4l2-controls.h
> @@ -743,6 +743,7 @@ enum v4l2_mpeg_video_hevc_profile {
>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN = 0,
>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE = 1,
>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10 = 2,
> +	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE = 3,
>  };
>  #define V4L2_CID_MPEG_VIDEO_HEVC_LEVEL		(V4L2_CID_CODEC_BASE + 616)
>  enum v4l2_mpeg_video_hevc_level {

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

* RE: [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc
  2022-08-24 12:06 ` Hans Verkuil
@ 2022-08-26  6:34   ` Dikshita Agarwal (QUIC)
  2022-11-24 10:56     ` Hans Verkuil
  0 siblings, 1 reply; 4+ messages in thread
From: Dikshita Agarwal (QUIC) @ 2022-08-26  6:34 UTC (permalink / raw)
  To: Hans Verkuil, Dikshita Agarwal (QUIC),
	linux-media, linux-kernel, ezequiel
  Cc: stanimir.varbanov, linux-arm-msm, Vikash Garodia (QUIC),
	Maheshwar Ajja (QUIC),
	quic_jdas

Hi Hans,

-----Original Message-----
From: Hans Verkuil <hverkuil-cisco@xs4all.nl> 
Sent: Wednesday, August 24, 2022 5:36 PM
To: Dikshita Agarwal (QUIC) <quic_dikshita@quicinc.com>; linux-media@vger.kernel.org; linux-kernel@vger.kernel.org; ezequiel@collabora.com
Cc: stanimir.varbanov@linaro.org; linux-arm-msm@vger.kernel.org; Vikash Garodia (QUIC) <quic_vgarodia@quicinc.com>; Maheshwar Ajja (QUIC) <quic_majja@quicinc.com>; quic_jdas <quic_jdas@quicinc.com>
Subject: Re: [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc

Hi Dikshita,

On 23/08/2022 09:26, Dikshita Agarwal wrote:
> Add main 10 still picture profile for HEVC encoder.

Hmm, is this the same as the "Main 4:4:4 Still Picture" profile mentioned here:

https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Version_2_profiles

If not, where it is defined? I would also prefer to have this patch merged together with a driver that uses it.

It is different and definition can be found in Latest HEVC spec, Annex A, A.3.3 Main 10 and Main 10 Still Picture profiles.
https://www.itu.int/rec/dologin_pub.asp?lang=s&id=T-REC-H.265-201906-S!!PDF-E&type=items

Thanks,
Dikshita

Regards,

	Hans

> 
> Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
> ---
>  Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 2 ++
>  include/uapi/linux/v4l2-controls.h                        | 1 +
>  2 files changed, 3 insertions(+)
> 
> diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst 
> b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
> index 2a165ae..5b2da84 100644
> --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
> +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
> @@ -2424,6 +2424,8 @@ enum v4l2_mpeg_video_hevc_profile -
>        - Main still picture profile.
>      * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10``
>        - Main 10 profile.
> +    * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE``
> +      - Main 10 still picture profile.
>  
>  .. raw:: latex
>  
> diff --git a/include/uapi/linux/v4l2-controls.h 
> b/include/uapi/linux/v4l2-controls.h
> index 5f46bf4..1159337 100644
> --- a/include/uapi/linux/v4l2-controls.h
> +++ b/include/uapi/linux/v4l2-controls.h
> @@ -743,6 +743,7 @@ enum v4l2_mpeg_video_hevc_profile {
>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN = 0,
>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE = 1,
>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10 = 2,
> +	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE = 3,
>  };
>  #define V4L2_CID_MPEG_VIDEO_HEVC_LEVEL		(V4L2_CID_CODEC_BASE + 616)
>  enum v4l2_mpeg_video_hevc_level {

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

* Re: [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc
  2022-08-26  6:34   ` Dikshita Agarwal (QUIC)
@ 2022-11-24 10:56     ` Hans Verkuil
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Verkuil @ 2022-11-24 10:56 UTC (permalink / raw)
  To: Dikshita Agarwal (QUIC), linux-media, linux-kernel, ezequiel
  Cc: stanimir.varbanov, linux-arm-msm, Vikash Garodia (QUIC),
	Maheshwar Ajja (QUIC),
	quic_jdas

On 26/08/2022 08:34, Dikshita Agarwal (QUIC) wrote:
> Hi Hans,
> 
> -----Original Message-----
> From: Hans Verkuil <hverkuil-cisco@xs4all.nl> 
> Sent: Wednesday, August 24, 2022 5:36 PM
> To: Dikshita Agarwal (QUIC) <quic_dikshita@quicinc.com>; linux-media@vger.kernel.org; linux-kernel@vger.kernel.org; ezequiel@collabora.com
> Cc: stanimir.varbanov@linaro.org; linux-arm-msm@vger.kernel.org; Vikash Garodia (QUIC) <quic_vgarodia@quicinc.com>; Maheshwar Ajja (QUIC) <quic_majja@quicinc.com>; quic_jdas <quic_jdas@quicinc.com>
> Subject: Re: [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc
> 
> Hi Dikshita,
> 
> On 23/08/2022 09:26, Dikshita Agarwal wrote:
>> Add main 10 still picture profile for HEVC encoder.
> 
> Hmm, is this the same as the "Main 4:4:4 Still Picture" profile mentioned here:
> 
> https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Version_2_profiles
> 
> If not, where it is defined? I would also prefer to have this patch merged together with a driver that uses it.
> 
> It is different and definition can be found in Latest HEVC spec, Annex A, A.3.3 Main 10 and Main 10 Still Picture profiles.
> https://www.itu.int/rec/dologin_pub.asp?lang=s&id=T-REC-H.265-201906-S!!PDF-E&type=items

It will be useful to have a reference to that in the documentation.

Also note that I can't merge this without a driver that uses it!

Regards,

	Hans

> 
> Thanks,
> Dikshita
> 
> Regards,
> 
> 	Hans
> 
>>
>> Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
>> ---
>>  Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 2 ++
>>  include/uapi/linux/v4l2-controls.h                        | 1 +
>>  2 files changed, 3 insertions(+)
>>
>> diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst 
>> b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
>> index 2a165ae..5b2da84 100644
>> --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
>> +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
>> @@ -2424,6 +2424,8 @@ enum v4l2_mpeg_video_hevc_profile -
>>        - Main still picture profile.
>>      * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10``
>>        - Main 10 profile.
>> +    * - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE``
>> +      - Main 10 still picture profile.
>>  
>>  .. raw:: latex
>>  
>> diff --git a/include/uapi/linux/v4l2-controls.h 
>> b/include/uapi/linux/v4l2-controls.h
>> index 5f46bf4..1159337 100644
>> --- a/include/uapi/linux/v4l2-controls.h
>> +++ b/include/uapi/linux/v4l2-controls.h
>> @@ -743,6 +743,7 @@ enum v4l2_mpeg_video_hevc_profile {
>>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN = 0,
>>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE = 1,
>>  	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10 = 2,
>> +	V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE = 3,
>>  };
>>  #define V4L2_CID_MPEG_VIDEO_HEVC_LEVEL		(V4L2_CID_CODEC_BASE + 616)
>>  enum v4l2_mpeg_video_hevc_level {


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

end of thread, other threads:[~2022-11-24 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23  7:26 [PATCH] media: v4l2-ctrl: Add main 10 still picture profile for hevc Dikshita Agarwal
2022-08-24 12:06 ` Hans Verkuil
2022-08-26  6:34   ` Dikshita Agarwal (QUIC)
2022-11-24 10:56     ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.