[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3a603410869cf876e7693880e0f6ca8ced27be7b.camel@ndufresne.ca>
Date: Tue, 28 Oct 2025 09:47:32 +0000
From: Nicolas Dufresne <nicolas@...fresne.ca>
To: Pavan Bobba <opensource206@...il.com>, mchehab@...nel.org,
hverkuil@...nel.org, ribalda@...omium.org,
laurent.pinchart@...asonboard.com, hansg@...nel.org, yunkec@...gle.com,
sakari.ailus@...ux.intel.com, james.cowgill@...ize.com
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: v4l2-ctrls: set AV1 sequence flags for testing
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@...il.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@...labora.com>
cheers,
Nicolas
> break;
> case V4L2_CTRL_TYPE_FWHT_PARAMS:
> p_fwht_params = p;
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists