[PATCH 12/27] libcamera: software_isp: Virtual base class reference in invokeMethod
Bryan O'Donoghue
bryan.odonoghue at linaro.org
Tue Apr 22 23:59:05 CEST 2025
Use the virtual base class function pointer in invokeMethod. When we point
the debayer_ object to a different class the instantiation of the virtual
method will be invoked. This means we can take a pointer to DebayerCpu or
DebayerOpenGL and get the desired function @ invokeMethod.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue at linaro.org>
---
src/libcamera/software_isp/software_isp.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libcamera/software_isp/software_isp.cpp b/src/libcamera/software_isp/software_isp.cpp
index e36aa246..c3dc21de 100644
--- a/src/libcamera/software_isp/software_isp.cpp
+++ b/src/libcamera/software_isp/software_isp.cpp
@@ -263,7 +263,7 @@ int SoftwareIsp::configure(const StreamConfiguration &inputCfg,
debayer_->moveToThread(&ispWorkerThread_);
ispWorkerThread_.start();
- return debayer_->invokeMethod(&DebayerCpu::configure,
+ return debayer_->invokeMethod(&Debayer::configure,
ConnectionTypeBlocking, inputCfg,
outputCfgs, ccmEnabled_);
}
@@ -388,7 +388,7 @@ void SoftwareIsp::stop()
void SoftwareIsp::process(uint32_t frame, FrameBuffer *input, FrameBuffer *output)
{
ipa_->computeParams(frame);
- debayer_->invokeMethod(&DebayerCpu::process,
+ debayer_->invokeMethod(&Debayer::process,
ConnectionTypeQueued, frame, input, output, debayerParams_);
}
--
2.49.0
More information about the libcamera-devel
mailing list