[libcamera-devel] [PATCH] ipa: rkisp1: Initialize numCells in constructor
Jean-Michel Hautbois
jeanmichel.hautbois at ideasonboard.com
Tue Nov 30 07:45:47 CET 2021
The non-static class member "numCells_" is not initialized in the
constructor, leading to a coverity scan report (UNINIT_CTOR).
Fix it.
Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
---
src/ipa/rkisp1/algorithms/agc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index 650fe2dae..d6abdc310 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -53,7 +53,7 @@ static constexpr uint32_t kNumStartupFrames = 10;
static constexpr double kRelativeLuminanceTarget = 0.4;
Agc::Agc()
- : frameCount_(0), filteredExposure_(0s)
+ : frameCount_(0), numCells_(0), filteredExposure_(0s)
{
}
--
2.32.0
More information about the libcamera-devel
mailing list