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:38 +0200 |
commit | afd87c342c96e5f6f1c378105d07a1d90802194c (patch) | |
tree | 454bf996ab02a98650f2cbe84923c3fd343b6332 | |
parent | 080cb47e9fb259df96ab24fca09bdc5620ed2087 (diff) |
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>
-rw-r--r-- | src/ipa/libipa/awb.cpp | 2 | ||||
-rw-r--r-- | src/ipa/libipa/awb.h | 2 | ||||
-rw-r--r-- | src/ipa/libipa/awb_grey.cpp | 2 | ||||
-rw-r--r-- | src/ipa/rkisp1/algorithms/awb.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/ipa/libipa/awb.cpp b/src/ipa/libipa/awb.cpp index 1c4f2330..925fac23 100644 --- a/src/ipa/libipa/awb.cpp +++ b/src/ipa/libipa/awb.cpp @@ -65,7 +65,7 @@ namespace ipa { */ /** - * \fn AwbStats::getRGBMeans() + * \fn AwbStats::rgbMeans() * \brief Get RGB means of the statistics * * Fetch the RGB means from the statistics. The values of each channel are diff --git a/src/ipa/libipa/awb.h b/src/ipa/libipa/awb.h index 5c298d3b..a86581ad 100644 --- a/src/ipa/libipa/awb.h +++ b/src/ipa/libipa/awb.h @@ -26,7 +26,7 @@ struct AwbResult { struct AwbStats { virtual double computeColourError(const RGB<double> &gains) const = 0; - virtual RGB<double> getRGBMeans() const = 0; + virtual RGB<double> rgbMeans() const = 0; }; class AwbAlgorithm diff --git a/src/ipa/libipa/awb_grey.cpp b/src/ipa/libipa/awb_grey.cpp index e979cc4d..17b85984 100644 --- a/src/ipa/libipa/awb_grey.cpp +++ b/src/ipa/libipa/awb_grey.cpp @@ -73,7 +73,7 @@ int AwbGrey::init(const YamlObject &tuningData) AwbResult AwbGrey::calculateAwb(const AwbStats &stats, [[maybe_unused]] unsigned int lux) { AwbResult result; - auto means = stats.getRGBMeans(); + auto means = stats.rgbMeans(); result.colourTemperature = estimateCCT(means); /* diff --git a/src/ipa/rkisp1/algorithms/awb.cpp b/src/ipa/rkisp1/algorithms/awb.cpp index 3d6737df..af34b81b 100644 --- a/src/ipa/rkisp1/algorithms/awb.cpp +++ b/src/ipa/rkisp1/algorithms/awb.cpp @@ -65,7 +65,7 @@ public: return delta2; } - RGB<double> getRGBMeans() const override + RGB<double> rgbMeans() const override { return rgbMeans_; } |