[libcamera-devel] [RFC PATCH 08/10] libcamera: ipa: add dummy IPA that needs to be isolated
Paul Elder
paul.elder at ideasonboard.com
Thu Jun 6 00:18:15 CEST 2019
Add a dummy IPA that needs to be isolated.
Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
---
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..87e5ec8
--- /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.cpp - Dummy Image Processing Algorithm module
+ */
+
+#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 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",
+ 1,
+};
+
+IPAInterface *ipaCreate()
+{
+ return new IPADummyIsolate();
+}
+};
+
+}; /* namespace libcamera */
--
2.20.1
More information about the libcamera-devel
mailing list