summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/awb_bayes.h
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.h
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.h')
-rw-r--r--src/ipa/libipa/awb_bayes.h2
1 files changed, 1 insertions, 1 deletions
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<double> gainsFromColourTemperature(double temperatureK) override;
void handleControls(const ControlList &controls) override;