Skip to content

Commit 65e7105

Browse files
davidplowmanpelwell
authored andcommitted
media: v4l2-ctrls: Document V4L2_CID_NOTIFY_GAINS control
Commit 311a839 upstream. Add documentation for the V4L2_CID_NOTIFY_GAINS control. This control is required by sensors that need to know what colour gains will be applied to pixels by downstream processing (such as by an ISP), though the sensor does not apply these gains itself. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent c250725 commit 65e7105

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎Documentation/userspace-api/media/v4l/ext-ctrls-image-source.rst‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,23 @@ Image Source Control IDs
5858
The unit cell consists of the whole area of the pixel, sensitive and
5959
non-sensitive.
6060
This control is required for automatic calibration of sensors/cameras.
61+
62+
``V4L2_CID_NOTIFY_GAINS (integer array)``
63+
The sensor is notified what gains will be applied to the different
64+
colour channels by subsequent processing (such as by an ISP). The
65+
sensor is merely informed of these values in case it performs
66+
processing that requires them, but it does not apply them itself to
67+
the output pixels.
68+
69+
Currently it is defined only for Bayer sensors, and is an array
70+
control taking 4 gain values, being the gains for each of the
71+
Bayer channels. The gains are always in the order B, Gb, Gr and R,
72+
irrespective of the exact Bayer order of the sensor itself.
73+
74+
The use of an array allows this control to be extended to sensors
75+
with, for example, non-Bayer CFAs (colour filter arrays).
76+
77+
The units for the gain values are linear, with the default value
78+
representing a gain of exactly 1.0. For example, if this default value
79+
is reported as being (say) 128, then a value of 192 would represent
80+
a gain of exactly 1.5.

0 commit comments

Comments
 (0)