mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 15:53:54 +03:00
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>
This commit is contained in:
parent
1a948d5457
commit
6981a5169b
5 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue