[PATCH 2/3] ipa: libipa: agc_mean_luminance: Error out when effectiveExposureValue is zero

Isaac Scott isaac.scott at ideasonboard.com
Fri Feb 28 15:28:19 CET 2025


Hi Stefan,

On Fri, 2025-02-28 at 13:55 +0100, Stefan Klug wrote:
> 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 it never happens that
> the effectiveExposureValue drops to zero. If that still happens due
> to a bug outside of

What conditions lead to this being zero when it shouldn't?

If they can be zero, this looks good to me!

> +
>  	double gain = estimateInitialGain();
>  	gain = constraintClampGain(constraintModeIndex, yHist,
> gain);
>  



More information about the libcamera-devel mailing list