From 7fa98a4cdd296c86fe053ab17486c1e0e2a72e90 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Mon, 3 Jun 2019 13:19:44 -0400 Subject: 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 Reviewed-by: Laurent Pinchart --- test/libtest/test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/libtest') 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 + #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; -- cgit v1.2.1