[libcamera-devel] [PATCH v2 11/14] ipa: ipu3: Send color temperature in the metadata

Jean-Michel Hautbois jeanmichel.hautbois at ideasonboard.com
Wed Nov 10 20:58:58 CET 2021


Now that the color temperature is updated per-frame, use the value and
set the corresponding controls::ColourTemperature.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
---
 src/ipa/ipu3/ipu3.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
index 1111f200..eb8c0dc4 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -632,6 +632,14 @@ void IPAIPU3::parseStatistics(unsigned int frame,
 				(sensorInfo_.pixelRate / 1e6);
 	ctrls.set(controls::FrameDuration, frameDuration);
 
+	ctrls.set(controls::ColourTemperature, context_.frameContext.awb.temperatureK);
+
+	/*
+	 * \todo We should be able to add 'anything' (with a Control) in here to
+	 * get information to say.
+	 * It can be for debug purposes (qcam) or for any other HAL.
+	 */
+
 	IPU3Action op;
 	op.op = ActionMetadataReady;
 	op.controls = ctrls;
-- 
2.32.0



More information about the libcamera-devel mailing list