From afd87c342c96e5f6f1c378105d07a1d90802194c Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 23 Feb 2025 23:12:40 +0200 Subject: 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 Reviewed-by: Stefan Klug --- src/ipa/libipa/awb.cpp | 2 +- src/ipa/libipa/awb.h | 2 +- src/ipa/libipa/awb_grey.cpp | 2 +- src/ipa/rkisp1/algorithms/awb.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 &gains) const = 0; - virtual RGB getRGBMeans() const = 0; + virtual RGB 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 getRGBMeans() const override + RGB rgbMeans() const override { return rgbMeans_; } -- cgit v1.2.1