diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-02-23 23:12:40 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-02-24 18:22:30 +0200 |
commit | 6981a5169b0415eccdbb5ef2cad4d68c6b01f072 (patch) | |
tree | 8aa95add73dc7e79d706ae7b3a04babd447b053b /src/ipa/libipa/awb_grey.cpp | |
parent | 1a948d5457d5f216c8b21f7b7480408f94cc46ec (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_grey.cpp')
-rw-r--r-- | src/ipa/libipa/awb_grey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/libipa/awb_grey.cpp b/src/ipa/libipa/awb_grey.cpp index 06ffd456..e979cc4d 100644 --- a/src/ipa/libipa/awb_grey.cpp +++ b/src/ipa/libipa/awb_grey.cpp @@ -70,7 +70,7 @@ int AwbGrey::init(const YamlObject &tuningData) * * \return The AWB result */ -AwbResult AwbGrey::calculateAwb(const AwbStats &stats, [[maybe_unused]] int lux) +AwbResult AwbGrey::calculateAwb(const AwbStats &stats, [[maybe_unused]] unsigned int lux) { AwbResult result; auto means = stats.getRGBMeans(); |