[PATCH 3/3] ipa: simple: Report black levels in metadata
Kieran Bingham
kieran.bingham at ideasonboard.com
Tue Jun 18 01:25:25 CEST 2024
Provide the determined black level values in the metadata
to add to the completed requests.
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
src/ipa/simple/soft_simple.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/ipa/simple/soft_simple.cpp b/src/ipa/simple/soft_simple.cpp
index d35d28c26a3b..460fb216d49a 100644
--- a/src/ipa/simple/soft_simple.cpp
+++ b/src/ipa/simple/soft_simple.cpp
@@ -309,6 +309,10 @@ void IPASoftSimple::processStats(const ControlList &sensorControls)
const float gains[] = { gainR / maxGain, gainB / maxGain };
metadata.set(controls::ColourGains, gains);
+ /* Assign each of the R G G B channels as the same black level. */
+ const auto blackLevels = { blackLevel, blackLevel, blackLevel, blackLevel };
+ metadata.set(controls::SensorBlackLevels, blackLevels);
+
setIspParams.emit(metadata);
/* \todo Switch to the libipa/algorithm.h API someday. */
--
2.34.1
More information about the libcamera-devel
mailing list