From 085653e0432297079f38d4499799aaa0b6d74e57 Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Tue, 8 Jun 2021 13:12:24 +0530 Subject: ipa: ipu3: Copy IPACameraSensorInfo for future usage IPACameraSensorInfo members will be needed at various places in the IPAIPU3 class, in subsequent commits. Hence, it seems trivial to copy this structure for wider availability throughout the class. This commit does not introduce any functional changes. Signed-off-by: Umang Jain Tested-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder --- src/ipa/ipu3/ipu3.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ipa/ipu3') diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index 2496b0a0..97ddb863 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -63,6 +63,8 @@ private: ControlInfoMap ctrls_; + IPACameraSensorInfo sensorInfo_; + /* Camera sensor controls. */ uint32_t exposure_; uint32_t minExposure_; @@ -144,6 +146,8 @@ void IPAIPU3::configure(const IPAConfigInfo &configInfo) if (configInfo.entityControls.empty()) return; + sensorInfo_ = configInfo.sensorInfo; + ctrls_ = configInfo.entityControls.at(0); const auto itExp = ctrls_.find(V4L2_CID_EXPOSURE); @@ -174,7 +178,7 @@ void IPAIPU3::configure(const IPAConfigInfo &configInfo) awbAlgo_->initialise(params_, configInfo.bdsOutputSize, bdsGrid_); agcAlgo_ = std::make_unique(); - agcAlgo_->initialise(bdsGrid_, configInfo.sensorInfo); + agcAlgo_->initialise(bdsGrid_, sensorInfo_); } void IPAIPU3::mapBuffers(const std::vector &buffers) -- cgit v1.2.1