[libcamera-devel] [PATCH 20/22] ipa: ipu3: Send color temperature in the metadata
Jean-Michel Hautbois
jeanmichel.hautbois at ideasonboard.com
Mon Nov 8 14:13:48 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 9b20e8ab..ca3f2417 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -696,6 +696,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