Add an IPAProxy class whose implementations will act as a proxy between a pipeline handler and an isolated IPA interface. Also add an IPAProxyFactory that will construct the IPAProxy implementations as necessary. Update Doxygen to ignore the directory where IPAProxy implementations will reside. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
41 lines
515 B
C++
41 lines
515 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2018, Google Inc.
|
|
*
|
|
* test.cpp - libcamera test base class
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "test.h"
|
|
|
|
Test::Test()
|
|
{
|
|
}
|
|
|
|
Test::~Test()
|
|
{
|
|
}
|
|
|
|
int Test::execute()
|
|
{
|
|
int ret;
|
|
|
|
ret = setenv("LIBCAMERA_IPA_MODULE_PATH", "src/ipa", 1);
|
|
if (ret)
|
|
return errno;
|
|
|
|
ret = setenv("LIBCAMERA_IPA_PROXY_PATH", "src/libcamera/proxy/worker", 1);
|
|
if (ret)
|
|
return errno;
|
|
|
|
ret = init();
|
|
if (ret)
|
|
return ret;
|
|
|
|
ret = run();
|
|
|
|
cleanup();
|
|
|
|
return ret;
|
|
}
|