@@ -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
*/
@@ -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.
@@ -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
@@ -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 */
@@ -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
@@ -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;
@@ -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";
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(-)