[libcamera-devel,1/3] properties: Add SensorFixedBlackLevels
diff mbox series

Message ID 20211221052117.2665228-2-paul.elder@ideasonboard.com
State New
Delegated to: Paul Elder
Headers show
  • android: Plumb static black levels
Related show

Commit Message

Paul Elder Dec. 21, 2021, 5:21 a.m. UTC
Add a property to store the black levels, which are the zero light
values for each color channel specified in the CFA. We already have a
similar control that reports dynamic black levels, but we also need a
static one.

Bug: https://bugs.libcamera.org/show_bug.cgi?id=48
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
 src/libcamera/property_ids.yaml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff mbox series

diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml
index 12ecbce5..99067144 100644
--- a/src/libcamera/property_ids.yaml
+++ b/src/libcamera/property_ids.yaml
@@ -678,6 +678,23 @@  controls:
         \todo Turn this property into a "maximum control value" for the
         ScalerCrop control once "dynamic" controls have been implemented.
+  - SensorFixedBlackLevels:
+      type: int32_t
+      size: [4]
+      description: |
+        A fixed black level offset for each of the color filter arrangement
+        (CFA) mosaic channels.
+        This property specifies the zero light value for each of the CFA mosaic
+        channels in the camera sensor.
+        The values are given in the same order as channels listed for the CFA
+        layout key i.e. the nth value given corresponds to the black level
+        offset for the nth color channel listed in the CFA. If the CFA is MONO,
+        all four channels shall have the same values.
+        \sa ColorFilterArrangement
   # ----------------------------------------------------------------------------
   # Draft properties section