[v2,03/15] ipa: rkisp1: lsc: Replace assert with ASSERT
diff mbox series

Message ID 20260108-sklug-lsc-resampling-v2-dev-v2-3-e682ec4b9893@ideasonboard.com
State New
Headers show
Series
  • Add resampling support for polynomial LSC data
Related show

Commit Message

Stefan Klug Jan. 8, 2026, 4:05 p.m. UTC
Replace assert() by ASSERT() and drop a set of unnecessary curly braces.
Those were noticed in the former review but after the series was
applied. Fix them now.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Rui Wang <rui.wang@ideasonboard.com>

---

Changes in v2:
- Collected tags
---
 src/ipa/rkisp1/algorithms/lsc.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/rkisp1/algorithms/lsc.cpp b/src/ipa/rkisp1/algorithms/lsc.cpp
index ab0ada4eed46bc3fdbce17377164a7fbfb321957..c581e6441853d18618284b51bfa25c25e1fc8083 100644
--- a/src/ipa/rkisp1/algorithms/lsc.cpp
+++ b/src/ipa/rkisp1/algorithms/lsc.cpp
@@ -33,11 +33,10 @@  template<typename T>
 void interpolateVector(const std::vector<T> &a, const std::vector<T> &b,
 		       std::vector<T> &dest, double lambda)
 {
-	assert(a.size() == b.size());
+	ASSERT(a.size() == b.size());
 	dest.resize(a.size());
-	for (size_t i = 0; i < a.size(); i++) {
+	for (size_t i = 0; i < a.size(); i++)
 		dest[i] = a[i] * (1.0 - lambda) + b[i] * lambda;
-	}
 }
 
 template<>
@@ -167,8 +166,8 @@  private:
 		double h = cropRectangle_.height / m;
 		std::vector<uint16_t> res;
 
-		assert(xSizes_.size() * 2 + 1 == k);
-		assert(ySizes_.size() * 2 + 1 == k);
+		ASSERT(xSizes_.size() * 2 + 1 == k);
+		ASSERT(ySizes_.size() * 2 + 1 == k);
 
 		res.reserve(k * k);