From d848d2a21cac21b1189e641347d0869eb77744b4 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Fri, 13 Oct 2023 08:48:41 +0100 Subject: ipa: rpi: agc: When AGC channels are changed, start with the 1st channel Whenever the AGC active channels are changed, start with the first channel listed. This allows applications to rely on a particular channel being generated first. For example, multi-exposure HDR always wants the short channel first. Signed-off-by: Naushir Patuck Reviewed-by: David Plowman Reviewed-by: Jacopo Mondi Signed-off-by: Kieran Bingham --- src/ipa/rpi/controller/rpi/agc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipa/rpi/controller') diff --git a/src/ipa/rpi/controller/rpi/agc.cpp b/src/ipa/rpi/controller/rpi/agc.cpp index 758da071..32eb3624 100644 --- a/src/ipa/rpi/controller/rpi/agc.cpp +++ b/src/ipa/rpi/controller/rpi/agc.cpp @@ -203,6 +203,7 @@ void Agc::setActiveChannels(const std::vector &activeChannels) LOG(RPiAgc, Debug) << "setActiveChannels " << activeChannels; activeChannels_ = activeChannels; + index_ = 0; } void Agc::switchMode(CameraMode const &cameraMode, -- cgit v1.2.1