From 8738d539f4a350d51bc1f6b780cc1fdfd62cf4ec Mon Sep 17 00:00:00 2001 From: Jean-Michel Hautbois Date: Thu, 10 Jun 2021 12:09:13 +0200 Subject: ipa: ipu3: Initialize CameraSensorHelper at IPU3 init stage In order for the CameraSensorHelper to be instantiated, we need to find its factory using the camera sensor model name stored in IPASettings::sensorModel. As we don't need to do it at each configure call (the sensor is not changing in-between), implement the init call in IPAIPU3 to do that. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Umang Jain Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham --- src/ipa/ipu3/ipu3_agc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ipa/ipu3/ipu3_agc.cpp') diff --git a/src/ipa/ipu3/ipu3_agc.cpp b/src/ipa/ipu3/ipu3_agc.cpp index fd0b70f0..6253ab94 100644 --- a/src/ipa/ipu3/ipu3_agc.cpp +++ b/src/ipa/ipu3/ipu3_agc.cpp @@ -145,7 +145,7 @@ void IPU3Agc::filterExposure() LOG(IPU3Agc, Debug) << "After filtering, total_exposure " << prevExposure_; } -void IPU3Agc::lockExposureGain(uint32_t &exposure, uint32_t &gain) +void IPU3Agc::lockExposureGain(uint32_t &exposure, double &gain) { updateControls_ = false; @@ -193,7 +193,7 @@ void IPU3Agc::lockExposureGain(uint32_t &exposure, uint32_t &gain) lastFrame_ = frameCount_; } -void IPU3Agc::process(const ipu3_uapi_stats_3a *stats, uint32_t &exposure, uint32_t &gain) +void IPU3Agc::process(const ipu3_uapi_stats_3a *stats, uint32_t &exposure, double &gain) { processBrightness(stats); lockExposureGain(exposure, gain); -- cgit v1.2.1