summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/ipu3.cpp
diff options
context:
space:
mode:
authorUmang Jain <umang.jain@ideasonboard.com>2021-06-08 13:12:24 +0530
committerUmang Jain <umang.jain@ideasonboard.com>2021-06-08 16:26:14 +0530
commit085653e0432297079f38d4499799aaa0b6d74e57 (patch)
tree653934441f65b30b83bc32957d91dc4e0a0390b0 /src/ipa/ipu3/ipu3.cpp
parent384a53d3cdf7f01915547f5c7cb88072adad0572 (diff)
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 <umang.jain@ideasonboard.com> Tested-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/ipu3.cpp')
-rw-r--r--src/ipa/ipu3/ipu3.cpp6
1 files changed, 5 insertions, 1 deletions
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<IPU3Agc>();
- agcAlgo_->initialise(bdsGrid_, configInfo.sensorInfo);
+ agcAlgo_->initialise(bdsGrid_, sensorInfo_);
}
void IPAIPU3::mapBuffers(const std::vector<IPABuffer> &buffers)