From 6981a5169b0415eccdbb5ef2cad4d68c6b01f072 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 23 Feb 2025 23:12:40 +0200 Subject: 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 Reviewed-by: Stefan Klug --- src/ipa/libipa/awb_bayes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipa/libipa/awb_bayes.cpp') diff --git a/src/ipa/libipa/awb_bayes.cpp b/src/ipa/libipa/awb_bayes.cpp index e75bfcd6..9287b884 100644 --- a/src/ipa/libipa/awb_bayes.cpp +++ b/src/ipa/libipa/awb_bayes.cpp @@ -275,7 +275,7 @@ RGB 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) { -- cgit v1.2.1