From patchwork Tue Jul 9 18:44:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1639 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 51F4A61570 for ; Tue, 9 Jul 2019 20:45:11 +0200 (CEST) Received: from neptunite.amanokami.net (softbank126163157105.bbtec.net [126.163.157.105]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A83F456A; Tue, 9 Jul 2019 20:45:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1562697911; bh=WT+ET4ird3OTr339A69MsFyzULpD7rj5xQQ55ZHwbdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fsBlOuyKXkDnVt85DgtzsHgcnwlXFxZ/WkMHE2WpOyamtLlim7+FRRiAL8GyfJrJn dkF6fl3s7HtNehpEfxTw4HpdhmcO+IUqsO+rLv8cK7OSeRo8ZAYMdOxgqBqNgwRQeY rC0DHVz7f2pPjs9SeGDyGFEKuUyfH0+f29hkQIGk= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 10 Jul 2019 03:44:49 +0900 Message-Id: <20190709184450.32023-7-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190709184450.32023-1-paul.elder@ideasonboard.com> References: <20190709184450.32023-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 6/7] libcamera: ipa: add dummy IPA that needs to be isolated X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2019 18:45:11 -0000 Add a dummy IPA that needs to be isolated. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart --- Changes in v3: - fix header Changes in v2: - ipaModuleInfo contains license rather than "please isolate me" src/ipa/ipa_dummy_isolate.cpp | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/ipa/ipa_dummy_isolate.cpp diff --git a/src/ipa/ipa_dummy_isolate.cpp b/src/ipa/ipa_dummy_isolate.cpp new file mode 100644 index 0000000..8520546 --- /dev/null +++ b/src/ipa/ipa_dummy_isolate.cpp @@ -0,0 +1,46 @@ +/* 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 */