summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2020-07-24 15:56:16 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-25 00:51:38 +0300
commitf5b45c180e64099fbee432fa69f807d5efa8a006 (patch)
treeadaa21ef8b0d091b1d8b27371b0bc06f3f24fde2
parenta2a6f95bffcff24869f24d94b94247ebc05f448c (diff)
libcamera: Add ColourCorrectionMatrix control
This control is principally for returning, in the image metadata, the CCM (Colour Correction Matrix) used by the imaging pipeline. By which we mean the 3x3 matrix that is applied to the camera RGB pixels after subtraction of black levels and white-balancing, but before any gamma transformation. Some implementations may also choose to let an application set explicit colour matrices, using this as a control. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/control_ids.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 988b5016..3560d4a8 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -262,4 +262,15 @@ controls:
In this respect, it is not necessarily aimed at providing a way to
implement a focus algorithm by the application, rather an indication of
how in-focus a frame is.
+
+ - ColourCorrectionMatrix:
+ type: float
+ description: |
+ The 3x3 matrix that converts camera RGB to sRGB within the
+ imaging pipeline. This should describe the matrix that is used
+ after pixels have been white-balanced, but before any gamma
+ transformation. The 3x3 matrix is stored in conventional reading
+ order in an array of 9 floating point values.
+
+ size: [3x3]
...