linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] Add standard exposure and gain controls for multiple captures
@ 2025-07-10 22:05 Mirela Rabulea
  2025-07-10 22:05 ` [RFC 1/2] media: Add " Mirela Rabulea
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Mirela Rabulea @ 2025-07-10 22:05 UTC (permalink / raw)
  To: mchehab, sakari.ailus, hverkuil-cisco, laurent.pinchart+renesas,
	ribalda, jai.luthra, laurentiu.palcu
  Cc: linux-media, linux-kernel, LnxRevLi, julien.vuillaumier,
	celine.laurencin

Add new standard controls as U32 arrays, for sensors with multiple
captures: V4L2_CID_EXPOSURE_MULTI, V4L2_CID_AGAIN_MULTI and
V4L2_CID_DGAIN_MULTI. These will be particularly useful for sensors
that have multiple captures, but the HDR merge is done inside the sensor,
in the end exposing a single stream, but still requiring AEC control
for all captures.

All controls are in the same class, so they could all be set
atomically via VIDIOC_S_EXT_CTRLS, this could turn out to be
useful in case of sensors with context switching.

Each element of the array will hold an u32 value (exposure or gain)
for one capture. The size of the array is up to the sensor driver which
will implement the controls and initialize them via v4l2_ctrl_new_custom().
With this approach, the user-space will have to set valid values
for all the captures represented in the array.

The v4l2-core only supports one scalar min/max/step value for the
entire array, and each element is validated and adjusted to be within
these bounds in v4l2_ctrl_type_op_validate(). The significance for the
maximum value for the exposure control could be "the max value for the
long exposure" or "the max value for the sum of all exposures". If none
of these is ok, the sensor driver can adjust the values as supported and
the user space can use the TRY operation to query the sensor for the
minimum or maximum values.

Mirela Rabulea (2):
  LF-15161-6: media: Add exposure and gain controls for multiple
    captures
  LF-15161-7: Documentation: media: Describe exposure and gain controls
    for multiple captures

 .../media/v4l/ext-ctrls-image-source.rst             | 12 ++++++++++++
 drivers/media/v4l2-core/v4l2-ctrls-defs.c            |  8 ++++++++
 include/uapi/linux/v4l2-controls.h                   |  3 +++
 3 files changed, 23 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-07-28 15:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10 22:05 [RFC 0/2] Add standard exposure and gain controls for multiple captures Mirela Rabulea
2025-07-10 22:05 ` [RFC 1/2] media: Add " Mirela Rabulea
2025-07-10 22:05 ` [RFC 2/2] Documentation: media: Describe " Mirela Rabulea
2025-07-16  0:07   ` Laurent Pinchart
2025-07-20 19:02     ` Mirela Rabulea
2025-07-23 13:49       ` Laurent Pinchart
2025-07-24  9:33         ` Mirela Rabulea
2025-07-27 20:27           ` Laurent Pinchart
2025-07-28 13:34             ` Mirela Rabulea
2025-07-25  9:05         ` hans
2025-07-15 23:59 ` [RFC 0/2] Add standard " Laurent Pinchart
2025-07-16  0:12   ` Laurent Pinchart
2025-07-20 18:56     ` Mirela Rabulea
2025-07-22  9:53       ` Julien Vuillaumier
2025-07-23 15:02         ` Laurent Pinchart
2025-07-25  9:01           ` hans
2025-07-25  9:27             ` Laurent Pinchart
2025-07-22  8:46     ` Julien Vuillaumier
2025-07-23 14:00       ` Laurent Pinchart
2025-07-28 15:42         ` Mirela Rabulea

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).