[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210115131915.ad2io2lt7efi5hwu@uno.localdomain>
Date: Fri, 15 Jan 2021 14:19:15 +0100
From: Jacopo Mondi <jacopo@...ndi.org>
To: Helen Koike <helen.koike@...labora.com>
Cc: linux-media@...r.kernel.org, hverkuil@...all.nl,
mchehab@...nel.org, hans.verkuil@...co.com, kernel@...labora.com,
linux-kernel@...r.kernel.org, tfiga@...omium.org
Subject: Re: [PATCH 2/3] media: videodev2.h: clarify
v4l2_pix_format_mplane.sizeimage docs when to set to zero
Hi Helen
On Thu, Jan 14, 2021 at 03:01:48PM -0300, Helen Koike wrote:
> sizeimage field should be set to zero for unused planes, even when
> v4l2_pix_format_mplane.num_planes is smaller then the index of planes.
>
> Signed-off-by: Helen Koike <helen.koike@...labora.com>
>
> ---
>
> I caught this with v4l2-compliance, which throws an error if we dirty
> planes, even if invalid, so I would like to make it clear in the docs.
> ---
> include/uapi/linux/videodev2.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
> index 79dbde3bcf8d..d9b7c9177605 100644
> --- a/include/uapi/linux/videodev2.h
> +++ b/include/uapi/linux/videodev2.h
> @@ -2227,6 +2227,7 @@ struct v4l2_mpeg_vbi_fmt_ivtv {
> * struct v4l2_plane_pix_format - additional, per-plane format definition
> * @sizeimage: maximum size in bytes required for data, for which
> * this plane will be used
> + * Drivers should be set it zero for unused planes.
s/should be/should/ ?
And possibly a full stop at the end of the previous sentence
Thanks
j
> * @bytesperline: distance in bytes between the leftmost pixels in two
> * adjacent lines
> */
> --
> 2.29.2
>
Powered by blists - more mailing lists