[PATCH 3/3] ipa: rkisp1: agc: Plumb lux
Paul Elder
paul.elder at ideasonboard.com
Fri Apr 12 11:17:00 CEST 2024
Now that the rkisp1 IPA has a lux algorithm module, use the lux value
that comes from that as opposed to hardcoding it.
Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
---
src/ipa/rkisp1/algorithms/agc.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index ed4d6330..5371ae48 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -424,8 +424,7 @@ void Agc::process(IPAContext &context, [[maybe_unused]] const uint32_t frame,
double analogueGain = frameContext.sensor.gain;
utils::Duration effectiveExposureValue = exposureTime * analogueGain;
- /* \todo Plumb in the lux value. Requires a lux algo + tuning */
- double lux = 400;
+ double lux = frameContext.agc.lux;
utils::Duration shutterTime;
double aGain, dGain;
--
2.39.2
More information about the libcamera-devel
mailing list