Skip to content

Commit 311a839

Browse files
davidplowmanmchehab
authored andcommitted
media: v4l2-ctrls: Document V4L2_CID_NOTIFY_GAINS control
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 a9c8059 commit 311a839

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
@@ -72,3 +72,23 @@ Image Source Control IDs
7272
* - __u32
7373
- ``height``
7474
- Height of the area.
75+
76+
``V4L2_CID_NOTIFY_GAINS (integer array)``
77+
The sensor is notified what gains will be applied to the different
78+
colour channels by subsequent processing (such as by an ISP). The
79+
sensor is merely informed of these values in case it performs
80+
processing that requires them, but it does not apply them itself to
81+
the output pixels.
82+
83+
Currently it is defined only for Bayer sensors, and is an array
84+
control taking 4 gain values, being the gains for each of the
85+
Bayer channels. The gains are always in the order B, Gb, Gr and R,
86+
irrespective of the exact Bayer order of the sensor itself.
87+
88+
The use of an array allows this control to be extended to sensors
89+
with, for example, non-Bayer CFAs (colour filter arrays).
90+
91+
The units for the gain values are linear, with the default value
92+
representing a gain of exactly 1.0. For example, if this default value
93+
is reported as being (say) 128, then a value of 192 would represent
94+
a gain of exactly 1.5.

0 commit comments

Comments
 (0)