From: Mirela Rabulea <mirela.rabulea@nxp.com>
To: mchehab@kernel.org, sakari.ailus@linux.intel.com,
hverkuil-cisco@xs4all.nl,
laurent.pinchart+renesas@ideasonboard.com, ribalda@chromium.org,
jai.luthra@ideasonboard.com, laurentiu.palcu@nxp.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
LnxRevLi@nxp.com, julien.vuillaumier@nxp.com,
celine.laurencin@nxp.com
Subject: [RFC v2 2/5] Documentation: media: Describe exposure and gain controls for multiple captures
Date: Mon, 18 Aug 2025 18:58:06 +0300 [thread overview]
Message-ID: <20250818155809.469479-3-mirela.rabulea@nxp.com> (raw)
In-Reply-To: <20250818155809.469479-1-mirela.rabulea@nxp.com>
The standard controls for exposure and gains allow a
single value, for a single capture. For sensors with HDR
capabilities or context switching, this is not enough, so
add new controls that allow multiple values, one for each
capture.
Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
---
Changes in v2:
Mention order inside array, from longest to shortest exposure
Mention not to implement the -single controls if -multi controls are implemented
.../media/v4l/ext-ctrls-image-source.rst | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst
index 71f23f131f97..2526d4d19cbb 100644
--- a/Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst
+++ b/Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst
@@ -92,3 +92,24 @@ Image Source Control IDs
representing a gain of exactly 1.0. For example, if this default value
is reported as being (say) 128, then a value of 192 would represent
a gain of exactly 1.5.
+
+``V4L2_CID_EXPOSURE_MULTI (__u32 array)``
+ Same as V4L2_CID_EXPOSURE, but for multiple exposure sensors. Each
+ element of the array holds the exposure value for one capture, from
+ the longest to the shortest exposure. Drivers for HDR sensors that
+ implement the V4L2_CID_EXPOSURE_MULTI control should not implement
+ V4L2_CID_EXPOSURE.
+
+``V4L2_CID_AGAIN_MULTI (__u32 array)``
+ Same as V4L2_CID_ANALOGUE_GAIN, but for multiple exposure sensors. Each
+ element of the array holds the analog gain value for one capture, from
+ the longest to the shortest exposure. Drivers for HDR sensors that
+ implement the V4L2_CID_AGAIN_MULTI control should not implement
+ V4L2_CID_ANALOGUE_GAIN.
+
+``V4L2_CID_DGAIN_MULTI (__u32 array)``
+ Same as V4L2_CID_DIGITAL_GAIN, but for multiple exposure sensors. Each
+ element of the array holds the digital gain value for one capture, from
+ the longest to the shortest exposure. Drivers for HDR sensors that
+ implement the V4L2_CID_DGAIN_MULTI control should not implement
+ V4L2_CID_DIGITAL_GAIN.
--
2.43.0
next prev parent reply other threads:[~2025-08-18 15:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 15:58 [RFC v2 0/5] Add standard " Mirela Rabulea
2025-08-18 15:58 ` [RFC v2 1/5] media: Add " Mirela Rabulea
2025-08-18 15:58 ` Mirela Rabulea [this message]
2025-08-18 15:58 ` [RFC v2 3/5] media: v4l2-ctrls: Add v4l2 helper functions for single-capture controls Mirela Rabulea
2025-08-18 15:58 ` [RFC v2 4/5] media: v4l2-ctrls: Use the single-capture control helpers in v4l2 core Mirela Rabulea
2025-08-18 15:58 ` [RFC v2 5/5] media: v4l2-ctrls: Add __v4l2_s_ctrl_single_to_multi helper function Mirela Rabulea
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=20250818155809.469479-3-mirela.rabulea@nxp.com \
--to=mirela.rabulea@nxp.com \
--cc=LnxRevLi@nxp.com \
--cc=celine.laurencin@nxp.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jai.luthra@ideasonboard.com \
--cc=julien.vuillaumier@nxp.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=laurentiu.palcu@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ribalda@chromium.org \
--cc=sakari.ailus@linux.intel.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
all inboxes | Powered by JetHome®