diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2019-06-03 13:19:44 -0400 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2019-06-05 10:44:52 -0400 |
commit | 7fa98a4cdd296c86fe053ab17486c1e0e2a72e90 (patch) | |
tree | d038f64587b41f02f9ec928a6181ec72589b5b97 /test/libtest | |
parent | 42c9b4bad40b462ef267b477e136202f02071137 (diff) |
libcamera: ipa_manager: implement class for managing IPA modules
IPAManager is a class that will search in given directories for IPA
modules, and will load them into a list. It also provides an interface
for pipeline handlers to acquire an IPA.
A meson build file for the IPAs is added, which also specifies a
hard-coded path for where to load the IPAs from in the installation
directory. More paths can be specified with the environment variable
LIBCAMERA_IPA_MODULE_PATH, with the same syntax as the regular PATH
environment variable. Make the test framework set this environment
variable.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/libtest')
-rw-r--r-- | test/libtest/test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libtest/test.cpp b/test/libtest/test.cpp index 9d537ea0..b119cf19 100644 --- a/test/libtest/test.cpp +++ b/test/libtest/test.cpp @@ -5,6 +5,8 @@ * test.cpp - libcamera test base class */ +#include <stdlib.h> + #include "test.h" Test::Test() @@ -19,6 +21,10 @@ int Test::execute() { int ret; + ret = setenv("LIBCAMERA_IPA_MODULE_PATH", "src/ipa", 1); + if (ret) + return errno; + ret = init(); if (ret) return ret; |