ipa: raspberrypi: AGC: handle modes with different sensitivities

When the sensor is switched to a mode with a different sensitivity,
the target exposure values need to be adjusted proportionately to
maintain the same image brightness.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
David Plowman 2021-07-18 19:51:25 +01:00 committed by Kieran Bingham
parent d0c429c34c
commit abaa45d627
2 changed files with 23 additions and 5 deletions

View file

@ -126,6 +126,7 @@ private:
int lock_count_;
DeviceStatus last_device_status_;
libcamera::utils::Duration last_target_exposure_;
double last_sensitivity_; // sensitivity of the previous camera mode
// Below here the "settings" that applications can change.
std::string metering_mode_name_;
std::string exposure_mode_name_;