[v3,32/35] ipa: libipa: lsc: Rename sampleForCrop to resampleLscData
diff mbox series

Message ID 20260706-libipa-algorithms-v3-32-968757b038bb@ideasonboard.com
State New
Headers show
Series
  • ipa: libipa: Introduce libipa algorithms
Related show

Commit Message

Jacopo Mondi July 6, 2026, 8:01 a.m. UTC
Rename the function to a more precise name.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 src/ipa/libipa/lsc.cpp            | 2 +-
 src/ipa/libipa/lsc.h              | 2 +-
 src/ipa/libipa/lsc_base.cpp       | 2 +-
 src/ipa/libipa/lsc_base.h         | 4 ++--
 src/ipa/libipa/lsc_polynomial.cpp | 2 +-
 src/ipa/libipa/lsc_polynomial.h   | 4 ++--
 src/ipa/libipa/lsc_table.h        | 6 +++---
 7 files changed, 11 insertions(+), 11 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/libipa/lsc.cpp b/src/ipa/libipa/lsc.cpp
index 621c04d354a8..d1dc2524fcaa 100644
--- a/src/ipa/libipa/lsc.cpp
+++ b/src/ipa/libipa/lsc.cpp
@@ -269,7 +269,7 @@  void LscAlgorithmBase::process(lsc::FrameContext &context, ControlList &metadata
  * analogCrop on a grid specified by \a xPos and \a yPos. Re-sampling of
  * lsc data is currently supported by polynomial-based lsc tables.
  *
- * \sa LscImplementation::sampleForCrop
+ * \sa LscImplementation::resampleLscData
  *
  * \return 0 on success, a negative error code otherwise
  */
diff --git a/src/ipa/libipa/lsc.h b/src/ipa/libipa/lsc.h
index 6dc76b6572b3..1f46555f9bf0 100644
--- a/src/ipa/libipa/lsc.h
+++ b/src/ipa/libipa/lsc.h
@@ -98,7 +98,7 @@  public:
 	{
 		LOG(Lsc, Debug) << "Sample Lsc data for " << analogCrop;
 		lsc::ComponentsMap<T> lscData =
-			impl_->sampleForCrop(analogCrop, xPos, yPos);
+			impl_->resampleLscData(analogCrop, xPos, yPos);
 
 		/*
 		 * Retain a copy of the components table.
diff --git a/src/ipa/libipa/lsc_base.cpp b/src/ipa/libipa/lsc_base.cpp
index ff5d47e85c01..f47c9619669e 100644
--- a/src/ipa/libipa/lsc_base.cpp
+++ b/src/ipa/libipa/lsc_base.cpp
@@ -127,7 +127,7 @@  void Interpolator<lsc::Components<uint16_t>>::
  */
 
 /**
- * \fn LscImplementation::sampleForCrop
+ * \fn LscImplementation::resampleLscData
  * \brief Re-sample the lsc components for \a cropRectangle
  * \param[in] cropRectangle The sensor analogue crop rectangle
  * \param[in] xPos List of horizontal positions of the lsc grid nodes
diff --git a/src/ipa/libipa/lsc_base.h b/src/ipa/libipa/lsc_base.h
index 4edcb2637d1b..a25d951e8ddb 100644
--- a/src/ipa/libipa/lsc_base.h
+++ b/src/ipa/libipa/lsc_base.h
@@ -74,8 +74,8 @@  public:
 				 const LscDescriptor &descriptor) = 0;
 
 	virtual lsc::ComponentsMap<typename U::QuantizedType>
-	sampleForCrop(const Rectangle &cropRectangle,
-		      std::vector<double> xPos, std::vector<double> yPos);
+	resampleLscData(const Rectangle &cropRectangle,
+			std::vector<double> xPos, std::vector<double> yPos) = 0;
 };
 
 } /* namespace ipa */
diff --git a/src/ipa/libipa/lsc_polynomial.cpp b/src/ipa/libipa/lsc_polynomial.cpp
index 2b743ed53be7..7b3c13cb144f 100644
--- a/src/ipa/libipa/lsc_polynomial.cpp
+++ b/src/ipa/libipa/lsc_polynomial.cpp
@@ -190,7 +190,7 @@  int LscPolynomialBase::parseLscData(const ValueNode &sets,
  */
 
 /**
- * \fn LscPolynomial::sampleForCrop()
+ * \fn LscPolynomial::resampleLscData()
  * \brief Re-sample the lsc components for \a cropRectangle
  * \param[in] cropRectangle The sensor analogue crop rectangle
  * \param[in] xPos List of horizontal positions of the lsc grid nodes
diff --git a/src/ipa/libipa/lsc_polynomial.h b/src/ipa/libipa/lsc_polynomial.h
index a84a736734e1..00bbd068d537 100644
--- a/src/ipa/libipa/lsc_polynomial.h
+++ b/src/ipa/libipa/lsc_polynomial.h
@@ -78,8 +78,8 @@  public:
 	}
 
 	lsc::ComponentsMap<T>
-	sampleForCrop(const Rectangle &cropRectangle,
-		      std::vector<double> xPos, std::vector<double> yPos) override
+	resampleLscData(const Rectangle &cropRectangle,
+			std::vector<double> xPos, std::vector<double> yPos) override
 	{
 		lsc::ComponentsMap<T> components;
 
diff --git a/src/ipa/libipa/lsc_table.h b/src/ipa/libipa/lsc_table.h
index fe4e133060a6..c3d6c6b95dcd 100644
--- a/src/ipa/libipa/lsc_table.h
+++ b/src/ipa/libipa/lsc_table.h
@@ -50,9 +50,9 @@  public:
 	}
 
 	lsc::ComponentsMap<T>
-	sampleForCrop([[maybe_unused]] const Rectangle &cropRectangle,
-		      [[maybe_unused]] std::vector<double> xPos,
-		      [[maybe_unused]] std::vector<double> yPos) override
+	resampleLscData([[maybe_unused]] const Rectangle &cropRectangle,
+			[[maybe_unused]] std::vector<double> xPos,
+			[[maybe_unused]] std::vector<double> yPos) override
 	{
 		LOG(LscTable, Warning)
 			<< "Tabular LSC data doesn't support resampling";