libipa: awb: Rename AwbStats::getRGBMeans() to rgbMeans()
The convention in libcamera is not to prefix getters with a 'get' prefix. Rename the AwbStats::getRGBMeans() function accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
This commit is contained in:
parent
080cb47e9f
commit
afd87c342c
4 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ namespace ipa {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \fn AwbStats::getRGBMeans()
|
* \fn AwbStats::rgbMeans()
|
||||||
* \brief Get RGB means of the statistics
|
* \brief Get RGB means of the statistics
|
||||||
*
|
*
|
||||||
* Fetch the RGB means from the statistics. The values of each channel are
|
* Fetch the RGB means from the statistics. The values of each channel are
|
||||||
|
|
|
@ -26,7 +26,7 @@ struct AwbResult {
|
||||||
|
|
||||||
struct AwbStats {
|
struct AwbStats {
|
||||||
virtual double computeColourError(const RGB<double> &gains) const = 0;
|
virtual double computeColourError(const RGB<double> &gains) const = 0;
|
||||||
virtual RGB<double> getRGBMeans() const = 0;
|
virtual RGB<double> rgbMeans() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AwbAlgorithm
|
class AwbAlgorithm
|
||||||
|
|
|
@ -73,7 +73,7 @@ int AwbGrey::init(const YamlObject &tuningData)
|
||||||
AwbResult AwbGrey::calculateAwb(const AwbStats &stats, [[maybe_unused]] unsigned int lux)
|
AwbResult AwbGrey::calculateAwb(const AwbStats &stats, [[maybe_unused]] unsigned int lux)
|
||||||
{
|
{
|
||||||
AwbResult result;
|
AwbResult result;
|
||||||
auto means = stats.getRGBMeans();
|
auto means = stats.rgbMeans();
|
||||||
result.colourTemperature = estimateCCT(means);
|
result.colourTemperature = estimateCCT(means);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -65,7 +65,7 @@ public:
|
||||||
return delta2;
|
return delta2;
|
||||||
}
|
}
|
||||||
|
|
||||||
RGB<double> getRGBMeans() const override
|
RGB<double> rgbMeans() const override
|
||||||
{
|
{
|
||||||
return rgbMeans_;
|
return rgbMeans_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue