ipa: rkisp1: lsc: Move local types into anonymous namespace

Move all local helpers into an anonymous namespace and drop a static
modifier that is no longer needed.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
This commit is contained in:
Stefan Klug
2026-01-28 17:00:25 +01:00
parent 55fb540f4e
commit 098fc4eeed

View File

@@ -27,8 +27,6 @@ namespace libcamera {
namespace ipa {
constexpr int kColourTemperatureChangeThreshhold = 10;
template<typename T>
void interpolateVector(const std::vector<T> &a, const std::vector<T> &b,
std::vector<T> &dest, double lambda)
@@ -70,6 +68,10 @@ namespace ipa::rkisp1::algorithms {
LOG_DEFINE_CATEGORY(RkISP1Lsc)
namespace {
constexpr int kColourTemperatureChangeThreshhold = 10;
class LscPolynomialLoader
{
public:
@@ -276,8 +278,8 @@ std::vector<uint16_t> LscTableLoader::parseTable(const YamlObject &tuningData,
return table;
}
static std::vector<double> parseSizes(const YamlObject &tuningData,
const char *prop)
std::vector<double> parseSizes(const YamlObject &tuningData,
const char *prop)
{
std::vector<double> sizes =
tuningData[prop].getList<double>().value_or(std::vector<double>{});
@@ -306,6 +308,8 @@ static std::vector<double> parseSizes(const YamlObject &tuningData,
return sizes;
}
} /* namespace */
LensShadingCorrection::LensShadingCorrection()
: lastAppliedCt_(0), lastAppliedQuantizedCt_(0)
{