[v1,01/17] ipa: rkisp1: algorithms: add Denoise base class shell
diff mbox series

Message ID 20251028201521.2739865-1-rui.wang@ideasonboard.com
State New
Headers show
Series
  • [v1,01/17] ipa: rkisp1: algorithms: add Denoise base class shell
Related show

Commit Message

Rui Wang Oct. 28, 2025, 8:15 p.m. UTC
Introduce the abstract DenoiseBaseAlgorithm class as a shared foundation
for the DPF and Filter algorithms. The base class provides pure virtual
hooks for control handling, manual overrides, and mode transitions, plus
common state members for enable/manual/dev mode tracking.

Derived classes must implement the pure virtual methods to provide
algorithm-specific behavior.

Signed-off-by: Rui Wang <rui.wang@ideasonboard.com>
---
 src/ipa/rkisp1/algorithms/denoise.h | 34 +++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 src/ipa/rkisp1/algorithms/denoise.h

Patch
diff mbox series

diff --git a/src/ipa/rkisp1/algorithms/denoise.h b/src/ipa/rkisp1/algorithms/denoise.h
new file mode 100644
index 00000000..8f109db4
--- /dev/null
+++ b/src/ipa/rkisp1/algorithms/denoise.h
@@ -0,0 +1,34 @@ 
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2025, Ideas On Board
+ *
+ * RkISP1 Denoising Algorithms Base Class
+ */
+
+#pragma once
+
+#include "algorithm.h"
+
+namespace libcamera {
+
+namespace ipa::rkisp1::algorithms {
+
+/**
+ * \class DenoiseBaseAlgorithm
+ * \brief Base class for RkISP1 denoising algorithms
+ *
+ * This abstract base class provides common functionality for denoising algorithms
+ * in the RkISP1 Image Processing Algorithm (IPA).
+ *
+ * Derived classes must implement algorithm-specific behavior.
+ */
+class DenoiseBaseAlgorithm : public ipa::rkisp1::Algorithm
+{
+protected:
+	DenoiseBaseAlgorithm() = default;
+	~DenoiseBaseAlgorithm() = default;
+};
+
+} /* namespace ipa::rkisp1::algorithms */
+
+} /* namespace libcamera */