summaryrefslogtreecommitdiff
path: root/src/ipa/ipa_dummy.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2019-05-24 11:38:15 -0400
committerPaul Elder <paul.elder@ideasonboard.com>2019-06-05 10:44:52 -0400
commitdd5b899c5b599bcafc01dc8a53430d53b59b2db2 (patch)
treec2026cabbd0cd878d6fafa7f20e12995850d5c87 /src/ipa/ipa_dummy.cpp
parent7fa98a4cdd296c86fe053ab17486c1e0e2a72e90 (diff)
libcamera: ipa: add dummy IPA implementation
Add a dummy IPA module. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipa_dummy.cpp')
-rw-r--r--src/ipa/ipa_dummy.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/ipa/ipa_dummy.cpp b/src/ipa/ipa_dummy.cpp
new file mode 100644
index 00000000..ee7a3a8a
--- /dev/null
+++ b/src/ipa/ipa_dummy.cpp
@@ -0,0 +1,45 @@
+/* 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 IPADummy : public IPAInterface
+{
+public:
+ int init();
+};
+
+int IPADummy::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",
+};
+
+IPAInterface *ipaCreate()
+{
+ return new IPADummy();
+}
+};
+
+}; /* namespace libcamera */