From 4e51845a38d4684c4cc7ef724dbf45618b1a21e9 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Thu, 3 Oct 2019 17:20:33 +0200 Subject: ipa: vimc: Rename ipa_dummy to ipa_vimc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DummyIPA is actually a test IPA module for the virtual media controller driver VIMC. Rename it accordingly to its usage. Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund Signed-off-by: Jacopo Mondi --- src/ipa/ipa_vimc.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/ipa/ipa_vimc.cpp (limited to 'src/ipa/ipa_vimc.cpp') diff --git a/src/ipa/ipa_vimc.cpp b/src/ipa/ipa_vimc.cpp new file mode 100644 index 00000000..abc06e7f --- /dev/null +++ b/src/ipa/ipa_vimc.cpp @@ -0,0 +1,46 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2019, Google Inc. + * + * ipa_vimc.cpp - Vimc Image Processing Algorithm module + */ + +#include + +#include +#include + +namespace libcamera { + +class IPAVimc : public IPAInterface +{ +public: + int init(); +}; + +int IPAVimc::init() +{ + std::cout << "initializing vimc 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", + LICENSE, +}; + +IPAInterface *ipaCreate() +{ + return new IPAVimc(); +} +}; + +}; /* namespace libcamera */ -- cgit v1.2.1