summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/awb_bayes.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-02-23 23:12:40 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-02-24 18:22:30 +0200
commit6981a5169b0415eccdbb5ef2cad4d68c6b01f072 (patch)
tree8aa95add73dc7e79d706ae7b3a04babd447b053b /src/ipa/libipa/awb_bayes.cpp
parent1a948d5457d5f216c8b21f7b7480408f94cc46ec (diff)
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>
Diffstat (limited to 'src/ipa/libipa/awb_bayes.cpp')
-rw-r--r--src/ipa/libipa/awb_bayes.cpp2
1 files changed, 1 insertions, 1 deletions
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<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) {