* [PATCH] media: v4l2-ctrls: set AV1 sequence flags for testing
@ 2025-10-28 6:26 Pavan Bobba
2025-10-28 9:47 ` Nicolas Dufresne
0 siblings, 1 reply; 3+ messages in thread
From: Pavan Bobba @ 2025-10-28 6:26 UTC (permalink / raw)
To: mchehab, hverkuil, ribalda, laurent.pinchart, hansg, yunkec,
sakari.ailus, james.cowgill
Cc: linux-media, linux-kernel, Pavan Bobba
Initialize additional AV1 sequence parameters in std_init_compound()
to make the default AV1 sequence control compatible with compliance
and userspace testing tools.
Specifically, set:
- enable both SUBSAMPLING_X and SUBSAMPLING_Y flags
These defaults help ensure that V4L2_CID_AV1_SEQUENCE behaves
consistently during validation and v4l2-compliance tests.
Signed-off-by: Pavan Bobba <opensource206@gmail.com>
---
drivers/media/v4l2-core/v4l2-ctrls-core.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4l2-core/v4l2-ctrls-core.c
index fa03341588e4..8809912797d2 100644
--- a/drivers/media/v4l2-core/v4l2-ctrls-core.c
+++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c
@@ -160,7 +160,13 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx,
break;
case V4L2_CTRL_TYPE_AV1_SEQUENCE:
p_av1_sequence = p;
+ /*
+ *setting below parameters to make AV1 sequence compatible
+ *for the testing
+ */
p_av1_sequence->bit_depth = 8;
+ p_av1_sequence->flags |= V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_X |
+ V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_Y;
break;
case V4L2_CTRL_TYPE_FWHT_PARAMS:
p_fwht_params = p;
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] media: v4l2-ctrls: set AV1 sequence flags for testing
2025-10-28 6:26 [PATCH] media: v4l2-ctrls: set AV1 sequence flags for testing Pavan Bobba
@ 2025-10-28 9:47 ` Nicolas Dufresne
2025-10-28 10:02 ` Hans Verkuil
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Dufresne @ 2025-10-28 9:47 UTC (permalink / raw)
To: Pavan Bobba, mchehab, hverkuil, ribalda, laurent.pinchart, hansg,
yunkec, sakari.ailus, james.cowgill
Cc: linux-media, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
Hi,
Le mardi 28 octobre 2025 à 11:56 +0530, Pavan Bobba a écrit :
> Initialize additional AV1 sequence parameters in std_init_compound()
> to make the default AV1 sequence control compatible with compliance
> and userspace testing tools.
>
> Specifically, set:
> - enable both SUBSAMPLING_X and SUBSAMPLING_Y flags
>
> These defaults help ensure that V4L2_CID_AV1_SEQUENCE behaves
> consistently during validation and v4l2-compliance tests.
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> drivers/media/v4l2-core/v4l2-ctrls-core.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4l2-core/v4l2-ctrls-core.c
> index fa03341588e4..8809912797d2 100644
> --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c
> +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c
> @@ -160,7 +160,13 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx,
> break;
> case V4L2_CTRL_TYPE_AV1_SEQUENCE:
> p_av1_sequence = p;
> + /*
> + *setting below parameters to make AV1 sequence compatible
> + *for the testing
> + */
> p_av1_sequence->bit_depth = 8;
> + p_av1_sequence->flags |= V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_X |
> + V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_Y;
There is a bit of a lack of clarity upon why we do this. I would comment on
that.
/**
* The initial profile is 0 which only allows YUV 420 subsampled data. Set the
* subsampling flags accordingly.
*/
With the correction:
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
cheers,
Nicolas
> break;
> case V4L2_CTRL_TYPE_FWHT_PARAMS:
> p_fwht_params = p;
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: v4l2-ctrls: set AV1 sequence flags for testing
2025-10-28 9:47 ` Nicolas Dufresne
@ 2025-10-28 10:02 ` Hans Verkuil
0 siblings, 0 replies; 3+ messages in thread
From: Hans Verkuil @ 2025-10-28 10:02 UTC (permalink / raw)
To: Nicolas Dufresne, Pavan Bobba, mchehab, hverkuil, ribalda,
laurent.pinchart, hansg, yunkec, sakari.ailus, james.cowgill
Cc: linux-media, linux-kernel
On 10/28/25 10:47, Nicolas Dufresne wrote:
> Hi,
>
> Le mardi 28 octobre 2025 à 11:56 +0530, Pavan Bobba a écrit :
>> Initialize additional AV1 sequence parameters in std_init_compound()
>> to make the default AV1 sequence control compatible with compliance
>> and userspace testing tools.
>>
>> Specifically, set:
>> - enable both SUBSAMPLING_X and SUBSAMPLING_Y flags
>>
>> These defaults help ensure that V4L2_CID_AV1_SEQUENCE behaves
>> consistently during validation and v4l2-compliance tests.
>>
>> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
>> ---
>> drivers/media/v4l2-core/v4l2-ctrls-core.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4l2-core/v4l2-ctrls-core.c
>> index fa03341588e4..8809912797d2 100644
>> --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c
>> +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c
>> @@ -160,7 +160,13 @@ static void std_init_compound(const struct v4l2_ctrl *ctrl, u32 idx,
>> break;
>> case V4L2_CTRL_TYPE_AV1_SEQUENCE:
>> p_av1_sequence = p;
>> + /*
>> + *setting below parameters to make AV1 sequence compatible
>> + *for the testing
>> + */
>> p_av1_sequence->bit_depth = 8;
>> + p_av1_sequence->flags |= V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_X |
>> + V4L2_AV1_SEQUENCE_FLAG_SUBSAMPLING_Y;
>
> There is a bit of a lack of clarity upon why we do this. I would comment on
> that.
>
> /**
> * The initial profile is 0 which only allows YUV 420 subsampled data. Set the
> * subsampling flags accordingly.
> */
>
> With the correction:
> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
I'll add that and fast-track this patch so the virtme CI regression tests work
again.
Thank you!
Hans
>
> cheers,
> Nicolas
>
>> break;
>> case V4L2_CTRL_TYPE_FWHT_PARAMS:
>> p_fwht_params = p;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-10-28 10:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 6:26 [PATCH] media: v4l2-ctrls: set AV1 sequence flags for testing Pavan Bobba
2025-10-28 9:47 ` Nicolas Dufresne
2025-10-28 10:02 ` Hans Verkuil
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).