summaryrefslogtreecommitdiff
path: root/test/ipa/ipa_interface_test.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-03 22:55:11 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-07 18:10:38 +0300
commit0bc9286eb97aa4d38d643ee5c45fa6a487d12459 (patch)
treef959b21afc6a8dcc7eb12f8bc3a41e7b2274b202 /test/ipa/ipa_interface_test.cpp
parentba3a1adc13b9a2c2e92f438bcf5320d77bd08bd9 (diff)
libcamera: pipeline_handler: Implement factories through class templates
The REGISTER_PIPELINE_HANDLER() macro defines a class type that inherits from the PipelineHandlerFactory class, and implements a constructor and a createInstance() function. Replace the code generation through macro with the C++ equivalent, a class template, as done in libipa with the Algorithm and CameraSensorHelper factories. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/ipa/ipa_interface_test.cpp')
-rw-r--r--test/ipa/ipa_interface_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ipa/ipa_interface_test.cpp b/test/ipa/ipa_interface_test.cpp
index a629abc2..6b93e976 100644
--- a/test/ipa/ipa_interface_test.cpp
+++ b/test/ipa/ipa_interface_test.cpp
@@ -52,9 +52,9 @@ protected:
ipaManager_ = make_unique<IPAManager>();
/* Create a pipeline handler for vimc. */
- const std::vector<PipelineHandlerFactory *> &factories =
- PipelineHandlerFactory::factories();
- for (const PipelineHandlerFactory *factory : factories) {
+ const std::vector<PipelineHandlerFactoryBase *> &factories =
+ PipelineHandlerFactoryBase::factories();
+ for (const PipelineHandlerFactoryBase *factory : factories) {
if (factory->name() == "PipelineHandlerVimc") {
pipe_ = factory->create(nullptr);
break;