[v5,33/36] ipa: libipa: lsc: Rename sampleForCrop to resampleLscData
diff mbox series

Message ID 20260708-libipa-algorithms-v5-33-0759d0359f52@ideasonboard.com
State New
Headers show
Series
  • ipa: libipa: Introduce libipa algorithms
Related show

Commit Message

Jacopo Mondi July 8, 2026, 3:51 p.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 f5646937c60a..0ce40c09caed 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 235f11e8c53b..c87e2680d973 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 060fba9826a0..aab45ab4f15c 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";