summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/ipa_context.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-16 11:42:31 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-16 11:52:35 +0200
commit35fdd26eebef3e73a0e227bab407124cce8917b8 (patch)
treeca711c9cd4152859ca139b51e2c2f85243c61a0e /src/ipa/rkisp1/ipa_context.cpp
parente4edcf55ba4d5254973137107ae2b376f7635f45 (diff)
libipa: FrameContext: Move init() to FrameContext
The FCtQueue structure initializes a new FrameContext using its init() function. In case of request underrun, where a FrameContext is initialized without application's controls being supplied, the FrameContext needs to be initialized to default values. In order to allow the single IPAs to initialize a FrameContext to the desired default values, move the init() function to the FrameContext structure, which each IPA derives to a per-IPA type. In this way each IPA can override the FrameContext::init() function and initialize the FrameContext to the desired default values. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'src/ipa/rkisp1/ipa_context.cpp')
-rw-r--r--src/ipa/rkisp1/ipa_context.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipa/rkisp1/ipa_context.cpp b/src/ipa/rkisp1/ipa_context.cpp
index 14d0c02a..4e4fe5f4 100644
--- a/src/ipa/rkisp1/ipa_context.cpp
+++ b/src/ipa/rkisp1/ipa_context.cpp
@@ -417,6 +417,11 @@ namespace libcamera::ipa::rkisp1 {
* \brief Analogue gain multiplier
*/
+void IPAFrameContext::init(const uint32_t frameNum)
+{
+ FrameContext::init(frameNum);
+}
+
/**
* \struct IPAContext
* \brief Global IPA context data shared between all algorithms