summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/ipa_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/internal/ipa_manager.h')
-rw-r--r--include/libcamera/internal/ipa_manager.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/libcamera/internal/ipa_manager.h b/include/libcamera/internal/ipa_manager.h
index 42201839..0687842e 100644
--- a/include/libcamera/internal/ipa_manager.h
+++ b/include/libcamera/internal/ipa_manager.h
@@ -34,15 +34,7 @@ public:
uint32_t minVersion,
uint32_t maxVersion)
{
- IPAModule *m = nullptr;
-
- for (IPAModule *module : self_->modules_) {
- if (module->match(pipe, minVersion, maxVersion)) {
- m = module;
- break;
- }
- }
-
+ IPAModule *m = self_->module(pipe, minVersion, maxVersion);
if (!m)
return nullptr;
@@ -62,6 +54,9 @@ private:
std::vector<std::string> &files);
unsigned int addDir(const char *libDir, unsigned int maxDepth = 0);
+ IPAModule *module(PipelineHandler *pipe, uint32_t minVersion,
+ uint32_t maxVersion);
+
bool isSignatureValid(IPAModule *ipa) const;
std::vector<IPAModule *> modules_;