From patchwork Wed Jun 5 22:18:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1368 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 7F07363B83 for ; Thu, 6 Jun 2019 00:18:33 +0200 (CEST) Received: from localhost.localdomain (unknown [96.44.9.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D610884; Thu, 6 Jun 2019 00:18:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559773113; bh=yKtpg1snsBsTQzTFgYEtEQIHceQym7X5mvL/qUGr/Dc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bCND2De/TBdruQPMeFkrcca9RqKxzcTJTXBnnGkhZTHW0MRaZhPnPou1tY1MQqKv6 VfynD2pmERLuxvlCxCOtYltGkQuaap9+T/RqJUzkxOSA67qx/icxsO8Hl+0y5un5kx gurzQUHfSzDl1m11T8oifXzm9uubwI0NR9nlz8jk= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 5 Jun 2019 18:18:14 -0400 Message-Id: <20190605221817.966-8-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190605221817.966-1-paul.elder@ideasonboard.com> References: <20190605221817.966-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 07/10] libcamera: ipa: shim: add dummy shim 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: Wed, 05 Jun 2019 22:18:33 -0000 Add a dummy shim. Signed-off-by: Paul Elder --- src/ipa/shim_dummy.cpp | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/ipa/shim_dummy.cpp diff --git a/src/ipa/shim_dummy.cpp b/src/ipa/shim_dummy.cpp new file mode 100644 index 0000000..4d28c2d --- /dev/null +++ b/src/ipa/shim_dummy.cpp @@ -0,0 +1,53 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2019, Google Inc. + * + * ipa_dummy.cpp - Dummy Image Processing Algorithm module + */ + +#include + +#include +#include + +namespace libcamera { + +class ShimDummy : public IPAInterface +{ +public: + int init(); + int init(const char *path); +}; + +int ShimDummy::init() +{ + std::cout << "okay shim init without path" << std::endl; + return 0; +} + +int ShimDummy::init(const char *path) +{ + std::cout << "initializing dummy shim!" << std::endl; + return 0; +} + +/* + * External IPA module interface + */ + +extern "C" { +const struct IPAModuleInfo ipaModuleInfo = { + IPA_MODULE_API_VERSION, + 0, + "Shim", + "Dummy Shim", + 1, +}; + +IPAInterface *ipaCreate() +{ + return new ShimDummy(); +} +}; + +}; /* namespace libcamera */