From 7127954aaa5fe9938743cbc41a328027697aba8a Mon Sep 17 00:00:00 2001 From: David Plowman Date: Fri, 15 Sep 2023 16:58:44 +0100 Subject: ipa: rpi: agc: Use channel constraints in the AGC algorithm Whenever we run Agc::process(), we store the most recent total exposure requested for each channel. With these values we can apply the channel constraints after time-filtering the requested total exposure, but before working out how much digital gain is needed. Signed-off-by: David Plowman Reviewed-by: Naushir Patuck Reviewed-by: Jacopo Mondi Signed-off-by: Jacopo Mondi --- src/ipa/rpi/controller/rpi/agc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipa/rpi/controller/rpi/agc.h') diff --git a/src/ipa/rpi/controller/rpi/agc.h b/src/ipa/rpi/controller/rpi/agc.h index ee85c693..90890439 100644 --- a/src/ipa/rpi/controller/rpi/agc.h +++ b/src/ipa/rpi/controller/rpi/agc.h @@ -55,6 +55,7 @@ private: std::vector channelData_; std::vector activeChannels_; unsigned int index_; /* index into the activeChannels_ */ + AgcChannelTotalExposures channelTotalExposures_; }; } /* namespace RPiController */ -- cgit v1.2.1