From 4ec807192d9f1ef682e2c257cf4d832c35042305 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 15 Sep 2019 04:11:01 +0300 Subject: ipa: Generate the two dummy IPA modules from the same source The ipa_dummy.cpp and ipa_dummy_isolate.cpp only differ in the license reported in the IPAModuleInfo structure. Drop the second file and generate the two .so from ipa_dummy.cpp, with the license defined through the command line. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/ipa/ipa_dummy_isolate.cpp | 47 ------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/ipa/ipa_dummy_isolate.cpp (limited to 'src/ipa/ipa_dummy_isolate.cpp') diff --git a/src/ipa/ipa_dummy_isolate.cpp b/src/ipa/ipa_dummy_isolate.cpp deleted file mode 100644 index cd66626d..00000000 --- a/src/ipa/ipa_dummy_isolate.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/* SPDX-License-Identifier: LGPL-2.1-or-later */ -/* - * Copyright (C) 2019, Google Inc. - * - * ipa_dummy_isolate.cpp - Dummy Image Processing Algorithm module that needs - * to be isolated - */ - -#include - -#include -#include - -namespace libcamera { - -class IPADummyIsolate : public IPAInterface -{ -public: - int init(); -}; - -int IPADummyIsolate::init() -{ - std::cout << "initializing isolated dummy IPA!" << std::endl; - return 0; -} - -/* - * External IPA module interface - */ - -extern "C" { -const struct IPAModuleInfo ipaModuleInfo = { - IPA_MODULE_API_VERSION, - 0, - "PipelineHandlerVimc", - "Dummy IPA for Vimc that needs to be isolated", - "Proprietary", -}; - -IPAInterface *ipaCreate() -{ - return new IPADummyIsolate(); -} -}; - -}; /* namespace libcamera */ -- cgit v1.2.1