From: Benjamin MUGNIER <benjamin.mugnier@foss.st.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: <linux-media@vger.kernel.org>, <alain.volmat@foss.st.com>,
<hugues.fruchet@foss.st.com>, <sylvain.petinot@foss.st.com>,
<dave.stevenson@raspberrypi.com>,
<laurent.pinchart@ideasonboard.com>,
<kieran.bingham@ideasonboard.com>
Subject: Re: [PATCH v3 3/5] media: uapi: Add ST VGXY61 header file
Date: Fri, 26 Aug 2022 16:17:11 +0200 [thread overview]
Message-ID: <1191003f-2e95-6ce0-7fbf-323a03496359@foss.st.com> (raw)
In-Reply-To: <YwNcUpsw1psudCOC@paasikivi.fi.intel.com>
On 8/22/22 12:37, Sakari Ailus wrote:
> Hi Benjamin,
>
> On Thu, May 12, 2022 at 09:40:35AM +0200, Benjamin Mugnier wrote:
>> Define an HDR control in it, and adds its documentation in st-vgxy61.rst
>> file.
>>
>> Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
>> ---
>> .../userspace-api/media/drivers/st-vgxy61.rst | 23 +++++++++++++++++++
>> include/uapi/linux/st-vgxy61.h | 15 ++++++++++++
>> 2 files changed, 38 insertions(+)
>> create mode 100644 Documentation/userspace-api/media/drivers/st-vgxy61.rst
>> create mode 100644 include/uapi/linux/st-vgxy61.h
>>
>> diff --git a/Documentation/userspace-api/media/drivers/st-vgxy61.rst b/Documentation/userspace-api/media/drivers/st-vgxy61.rst
>> new file mode 100644
>> index 000000000000..7a11adbb558f
>> --- /dev/null
>> +++ b/Documentation/userspace-api/media/drivers/st-vgxy61.rst
>> @@ -0,0 +1,23 @@
>> +.. SPDX-License-Identifier: GPL-2.0
>> +
>> +ST VGXY61 camera sensor driver
>> +==============================
>> +
>> +The ST VGXY61 driver implements the following driver-specific controls:
>> +
>> +``V4L2_CID_STVGXY61_HDR``
>> +-------------------------------
>> + Change the sensor HDR mode. A HDR picture is obtained by merging two captures of the same scene
>> + using two different exposure periods.
>> +
>> +.. flat-table::
>> + :header-rows: 0
>> + :stub-columns: 0
>> + :widths: 1 4
>> +
>> + * - HDR linearize
>> + - The merger outputs a long exposure capture as long as it is not saturated.
>> + * - HDR substraction
>> + - This involves subtracting the short exposure frame from the long exposure frame.
>> + * - "no HDR"
>> + - This mode is used for standard dynamic range (SDR) exposures.
>
> I wonder how many different kinds of HDR implementations there are that
> could be meaningfully controlled using a single control. We have controls
> such as scene mode that are much more generic than this.
>
> Could this be standardised, even if the menu items wouldn't be? Say, call
> it e.g. V4L2_CID_HDR_MODE? Raw sensors have different configuration with
> more parameters though.
>
> I wonder what others think.
>
I agree.
I would like to standardize the control and not the menu items just like
you said, as some sensors are missing some modes and/or have some
others. This is the way to go.
I will submit something for v4 if nobody is against this idea.
>> diff --git a/include/uapi/linux/st-vgxy61.h b/include/uapi/linux/st-vgxy61.h
>> new file mode 100644
>> index 000000000000..fbabe2cb64ac
>> --- /dev/null
>> +++ b/include/uapi/linux/st-vgxy61.h
>> @@ -0,0 +1,15 @@
>> +/* SPDX-License-Identifier: GPL-2.0 */
>> +/*
>> + * Copyright (C) 2022 STMicroelectronics SA
>> + *
>> + */
>> +
>> +#ifndef __UAPI_STVGXY61_H_
>> +#define __UAPI_STVGXY61_H_
>> +
>> +#include <linux/v4l2-controls.h>
>> +
>> +/* Control HDR mode */
>> +#define V4L2_CID_STVGXY61_HDR (V4L2_CID_USER_STVGXY61_BASE + 0)
>> +
>> +#endif /* __UAPI_STVGXY61_H_ */
>
next prev parent reply other threads:[~2022-08-26 14:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 7:40 [PATCH v3 0/5] media: Add ST VGXY61 camera sensor driver Benjamin Mugnier
2022-05-12 7:40 ` [PATCH v3 1/5] media: v4l: Add 1X16 16-bit greyscale media bus code definition Benjamin Mugnier
2022-05-12 7:40 ` [PATCH v3 2/5] media: v4l: ctrls: Add user control base for st-vgxy61 controls Benjamin Mugnier
2022-05-12 7:40 ` [PATCH v3 3/5] media: uapi: Add ST VGXY61 header file Benjamin Mugnier
2022-05-12 10:32 ` kernel test robot
2022-05-12 12:43 ` Benjamin Mugnier
2022-08-22 10:37 ` Sakari Ailus
2022-08-26 14:17 ` Benjamin MUGNIER [this message]
2022-05-12 7:40 ` [PATCH v3 4/5] media: dt-bindings: media: i2c: Add ST VGXY61 camera sensor binding Benjamin Mugnier
2022-05-12 7:40 ` [PATCH v3 5/5] media: i2c: Add driver for ST VGXY61 camera sensor Benjamin Mugnier
2022-08-22 10:04 ` Sakari Ailus
2022-08-26 14:12 ` Benjamin MUGNIER
2022-09-25 11:32 ` Sakari Ailus
2022-09-26 9:28 ` Benjamin MUGNIER
2022-09-26 9:42 ` Sakari Ailus
2022-09-26 11:54 ` Benjamin MUGNIER
2022-09-26 12:52 ` Benjamin MUGNIER
2022-06-01 7:20 ` [PATCH v3 0/5] media: Add ST VGXY61 camera sensor driver Benjamin Mugnier
2022-06-20 7:30 ` Benjamin Mugnier
2022-07-18 7:26 ` Benjamin Mugnier
2022-07-18 9:06 ` Sakari Ailus
2022-08-22 8:18 ` Benjamin MUGNIER
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=1191003f-2e95-6ce0-7fbf-323a03496359@foss.st.com \
--to=benjamin.mugnier@foss.st.com \
--cc=alain.volmat@foss.st.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=hugues.fruchet@foss.st.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=sylvain.petinot@foss.st.com \
/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;
as well as URLs for NNTP newsgroup(s).