diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-03-26 14:47:21 +0100 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-03-26 17:16:39 +0100 |
commit | 03bae6b9248280a3edd9350061cc307d95ba1cd0 (patch) | |
tree | 6e16a654008ed8acb06964e80a46b727a4a05354 /src/ipa/rpi/controller | |
parent | 94e94c6e8db65ac9f594f8d73f54d38a697fffd0 (diff) |
ipa: libipa: agc_mean_luminance: Error out when effectiveExposureValue is zero
In a proper system it never happens that the effectiveExposureValue
drops to zero. If that still happens due to a bug outside of
agc_mean_luminance, the calculated gain goes towards infinity but the
newExposureValue is still 0 because it is the result of multiplying the
effectiveExposureTime with the gain, leading to wild oscillations.
Catch that condition, print an error message and set the new effective
exposure value to an arbitrary 10ms.
Note that in any case the underlying problem must be fixed. The
important change is the added error message to be able to detect such a
situation.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/controller')
0 files changed, 0 insertions, 0 deletions