mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
ipa: rpi: agc: Fix bug where AeLocked was never getting set
The recent change where time-filtering is done before sorting out the
digital gain means that the target exposure without digital gain is no
longer set, breaking the 'AeLocked' calculation.
We can use the regular (full) target exposure instead.
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Fixes: 84b6327789
("ipa: rpi: agc: Filter exposures before dealing with digital gain")
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
cbfbab48a7
commit
2905eabad9
1 changed files with 1 additions and 1 deletions
|
@ -977,7 +977,7 @@ void AgcChannel::divideUpExposure()
|
||||||
void AgcChannel::writeAndFinish(Metadata *imageMetadata, bool desaturate)
|
void AgcChannel::writeAndFinish(Metadata *imageMetadata, bool desaturate)
|
||||||
{
|
{
|
||||||
status_.totalExposureValue = filtered_.totalExposure;
|
status_.totalExposureValue = filtered_.totalExposure;
|
||||||
status_.targetExposureValue = desaturate ? 0s : target_.totalExposureNoDG;
|
status_.targetExposureValue = desaturate ? 0s : target_.totalExposure;
|
||||||
status_.shutterTime = filtered_.shutter;
|
status_.shutterTime = filtered_.shutter;
|
||||||
status_.analogueGain = filtered_.analogueGain;
|
status_.analogueGain = filtered_.analogueGain;
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue