libipa: awb: Pass lux value to calculateAwb() as unsigned int

The lux value can never be negative. Pass it as an unsigned int.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2025-02-23 23:12:40 +02:00
parent 1a948d5457
commit 6981a5169b
5 changed files with 5 additions and 5 deletions

View file

@ -275,7 +275,7 @@ RGB<double> AwbBayes::gainsFromColourTemperature(double colourTemperature)
return { { gains[0], 1.0, gains[1] } };
}
AwbResult AwbBayes::calculateAwb(const AwbStats &stats, int lux)
AwbResult AwbBayes::calculateAwb(const AwbStats &stats, unsigned int lux)
{
ipa::Pwl prior;
if (lux > 0) {