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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipa/libipa/awb_bayes.h') diff --git a/src/ipa/libipa/awb_bayes.h b/src/ipa/libipa/awb_bayes.h index 47db7243..23bf8806 100644 --- a/src/ipa/libipa/awb_bayes.h +++ b/src/ipa/libipa/awb_bayes.h @@ -34,7 +34,7 @@ public: AwbBayes() = default; int init(const YamlObject &tuningData) override; - AwbResult calculateAwb(const AwbStats &stats, int lux) override; + AwbResult calculateAwb(const AwbStats &stats, unsigned int lux) override; RGB gainsFromColourTemperature(double temperatureK) override; void handleControls(const ControlList &controls) override; -- cgit v1.2.1