From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCHv4 06/15] subdev-formats.rst: fix incorrect types
Date: Mon, 26 Feb 2018 11:44:40 -0300 [thread overview]
Message-ID: <20180226114440.2a80d260@vento.lan> (raw)
In-Reply-To: <20180221153218.15654-7-hverkuil@xs4all.nl>
Hi Hans,
Em Wed, 21 Feb 2018 16:32:09 +0100
Hans Verkuil <hverkuil@xs4all.nl> escreveu:
> The ycbcr_enc, quantization and xfer_func fields are __u16 and not enums.
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Thanks for your patch. I have one comment about it, though. See below.
> ---
> Documentation/media/uapi/v4l/subdev-formats.rst | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/media/uapi/v4l/subdev-formats.rst b/Documentation/media/uapi/v4l/subdev-formats.rst
> index b1eea44550e1..4f0c0b282f98 100644
> --- a/Documentation/media/uapi/v4l/subdev-formats.rst
> +++ b/Documentation/media/uapi/v4l/subdev-formats.rst
> @@ -33,17 +33,17 @@ Media Bus Formats
> - Image colorspace, from enum
> :c:type:`v4l2_colorspace`. See
> :ref:`colorspaces` for details.
> - * - enum :c:type:`v4l2_ycbcr_encoding`
> + * - __u16
> - ``ycbcr_enc``
> - This information supplements the ``colorspace`` and must be set by
> the driver for capture streams and by the application for output
> streams, see :ref:`colorspaces`.
While this patch makes sense, it excludes an important information:
what are the valid values for this field.
I was expecting something like what's written for the code field:
* - __u32
- ``code``
- Format code, from enum
:ref:`v4l2_mbus_pixelcode <v4l2-mbus-pixelcode>`.
Something like:
* - enum :c:type:`v4l2_ycbcr_encoding`
* - __u16
- This information supplements the ``colorspace`` and must be set by
the driver for capture streams and by the application for output
streams from enum :ref:`v4l2_mbus_pixelcode <v4l2-mbus-pixelcode>`.
See :ref:`colorspaces`.
The same applies to the other changes below.
As this patch is independent from the others at your pull request,
I'm skipping it.
Regards,
Mauro
> - * - enum :c:type:`v4l2_quantization`
> + * - __u16
> - ``quantization``
> - This information supplements the ``colorspace`` and must be set by
> the driver for capture streams and by the application for output
> streams, see :ref:`colorspaces`.
> - * - enum :c:type:`v4l2_xfer_func`
> + * - __u16
> - ``xfer_func``
> - This information supplements the ``colorspace`` and must be set by
> the driver for capture streams and by the application for output
Thanks,
Mauro
next prev parent reply other threads:[~2018-02-26 14:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-21 15:32 [PATCHv4 00/15] Media Controller compliance fixes Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 01/15] vimc: fix control event handling Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 02/15] vimc: use correct subdev functions Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 03/15] v4l2-subdev: without controls return -ENOTTY Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 04/15] v4l2-subdev: clear reserved fields Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 05/15] v4l2-subdev: implement VIDIOC_DBG_G_CHIP_INFO ioctl Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 06/15] subdev-formats.rst: fix incorrect types Hans Verkuil
2018-02-26 14:44 ` Mauro Carvalho Chehab [this message]
2018-02-21 15:32 ` [PATCHv4 07/15] media-ioc-g-topology.rst: fix interface-to-entity link description Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 08/15] media-types.rst: fix type, small improvements Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 09/15] media: media-types.rst: fix typo Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 10/15] media-device.c: zero reserved fields Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 11/15] media.h: fix confusing typo in comment Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 12/15] media: zero reservedX fields in media_v2_topology Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 13/15] media: document the " Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 14/15] media-ioc-enum-entities/links.rst: document reserved fields Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 15/15] media.h: reorganize header to make it easier to understand Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180226114440.2a80d260@vento.lan \
--to=mchehab@s-opensource.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox