new file mode 100644
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+/*
+ * Copyright (C) 2025, Raspberry Pi Ltd
+ *
+ * Decompand control algorithm interface
+ */
+#pragma once
+
+#include "libipa/pwl.h"
+
+#include "algorithm.h"
+
+namespace RPiController {
+
+class DecompandAlgorithm : public Algorithm
+{
+public:
+ DecompandAlgorithm(Controller *controller = NULL)
+ : Algorithm(controller)
+ {
+ }
+};
+
+} /* namespace RPiController */
@@ -13,7 +13,7 @@ LOG_DEFINE_CATEGORY(RPiDecompand)
#define NAME "rpi.decompand"
Decompand::Decompand(Controller *controller)
- : Algorithm(controller)
+ : DecompandAlgorithm(controller)
{
}
@@ -2,10 +2,9 @@
#include <libipa/pwl.h>
+#include "../decompand_algorithm.h"
#include "../decompand_status.h"
-#include "algorithm.h"
-
namespace RPiController {
struct DecompandConfig {
@@ -13,7 +12,7 @@ struct DecompandConfig {
libcamera::ipa::Pwl decompandCurve;
};
-class Decompand : public Algorithm
+class Decompand : public DecompandAlgorithm
{
public:
Decompand(Controller *controller = NULL);
The decompand algorithm implementation will subclass the DecompandAlgorithm class. This will be needed for setting the initial decompand values in a future commit. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> --- src/ipa/rpi/controller/decompand_algorithm.h | 24 ++++++++++++++++++++ src/ipa/rpi/controller/rpi/decompand.cpp | 2 +- src/ipa/rpi/controller/rpi/decompand.h | 5 ++-- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 src/ipa/rpi/controller/decompand_algorithm.h