[libcamera-devel] [PATCH v2 4/6] libcamera: controls: Add AWB related controls
Naushir Patuck
naush at raspberrypi.com
Mon Mar 9 13:33:17 CET 2020
AwbMode is a new enum type to specify operating mode of the AWB
algorithm. All modes may not be supported by all platforms.
ManualWbGains is a new float arary type used to specify manual red
and blue (in that order) colour channel gains when AWB is disabled.
Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
---
src/libcamera/control_ids.yaml | 47 ++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index da1a7b43..9a33094a 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -143,6 +143,53 @@ controls:
description: |
Enable or disable the AWB.
+ - AwbMode:
+ type: int32_t
+ description: |
+ Specify the range of illumants to use for the AWB algorihtm. The modes
+ supported are platform specific, and not all modes may be supported.
+ enum:
+ - name: AwbAuto
+ value: 0
+ description: Search over the whole CT range.
+ - name: AwbIncandescent
+ value: 1
+ description: Incandescent AWB lamp mode.
+ - name: AwbTungsten
+ value: 2
+ description: Tungsten AWB lamp mode.
+ - name: AwbFluorescent
+ value: 3
+ description: Fluorescent AWB lamp mode.
+ - name: AwbIndoor
+ value: 4
+ description: Indoor AWB lighting mode.
+ - name: AwbDaylight
+ value: 5
+ description: Daylight AWB lighting mode.
+ - name: AwbCloudy
+ value: 6
+ description: Cloudy AWB lighting mode.
+ - name: AwbCustom1
+ value: 7
+ description: Custom AWB mode 1.
+ - name: AwbCustom2
+ value: 8
+ description: Custom AWB mode 2.
+ - name: AwbCustom3
+ value: 9
+ description: Custom AWB mode 3.
+ - name: AwbModeMax
+ value: 9
+ description: Maximum allowed value (place any new values above here).
+
+ - ManualWbGains:
+ type: float
+ description: |
+ Specify a fixed gain parameter for the Red and Blue colour channels,
+ in that order.
+ size: [2]
+
- Brightness:
type: int32_t
description: Specify a fixed brightness parameter
--
2.17.1
More information about the libcamera-devel
mailing list