summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2019-06-05 17:24:55 -0400
committerPaul Elder <paul.elder@ideasonboard.com>2019-07-12 16:32:29 +0900
commit403f68d84707065149a30fba899f3d4e238082a8 (patch)
tree7a77237157f7805344b8f759f24fcdd5e9768220 /src/ipa
parent47a81cb9f660495bbde7df7341e74a7f8fff4490 (diff)
libcamera: ipa: add dummy IPA that needs to be isolated
Add a dummy IPA that needs to be isolated. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/ipa_dummy_isolate.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/ipa/ipa_dummy_isolate.cpp b/src/ipa/ipa_dummy_isolate.cpp
new file mode 100644
index 00000000..24434e85
--- /dev/null
+++ b/src/ipa/ipa_dummy_isolate.cpp
@@ -0,0 +1,47 @@
+/* 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 <iostream>
+
+#include <libcamera/ipa/ipa_interface.h>
+#include <libcamera/ipa/ipa_module_info.h>
+
+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 */