summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/algorithm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/libipa/algorithm.h')
-rw-r--r--src/ipa/libipa/algorithm.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/ipa/libipa/algorithm.h b/src/ipa/libipa/algorithm.h
new file mode 100644
index 00000000..766aee5d
--- /dev/null
+++ b/src/ipa/libipa/algorithm.h
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2021, Ideas On Board
+ *
+ * algorithm.h - ISP control algorithm interface
+ */
+#pragma once
+
+namespace libcamera {
+
+namespace ipa {
+
+template<typename Context, typename Config, typename Params, typename Stats>
+class Algorithm
+{
+public:
+ virtual ~Algorithm() {}
+
+ virtual int configure([[maybe_unused]] Context &context,
+ [[maybe_unused]] const Config &configInfo)
+ {
+ return 0;
+ }
+
+ virtual void prepare([[maybe_unused]] Context &context,
+ [[maybe_unused]] Params *params)
+ {
+ }
+
+ virtual void process([[maybe_unused]] Context &context,
+ [[maybe_unused]] const Stats *stats)
+ {
+ }
+};
+
+} /* namespace ipa */
+
+} /* namespace libcamera */