new file mode 100644
@@ -0,0 +1,33 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2026 Ideas on Board Oy
+ *
+ * libIPA Lsc algorithms
+ */
+
+#include "lsc.h"
+
+/**
+ * \file lsc.h
+ * \brief libipa lsc algorithm
+ */
+
+namespace libcamera {
+
+namespace ipa {
+
+namespace lsc {
+
+/**
+ * \struct ActiveState
+ * \brief The lsc active state
+ *
+ * \var ActiveState::enabled
+ * \brief Boolean flag for the LscAlgorithm enable status
+ */
+
+} /* namespace lsc */
+
+} /* namespace ipa */
+
+} /* namespace libcamera */
new file mode 100644
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2026 Ideas on Board Oy
+ *
+ * libIPA Lsc algorithm
+ */
+
+#pragma once
+
+namespace libcamera {
+
+namespace ipa {
+
+namespace lsc {
+
+struct ActiveState {
+ bool enabled;
+};
+
+} /* namespace lsc */
+
+} /* namespace ipa */
+
+} /* namespace libcamera */
@@ -14,6 +14,7 @@ libipa_headers = files([
'fixedpoint.h',
'histogram.h',
'interpolator.h',
+ 'lsc.h',
'lsc_base.h',
'lsc_polynomial.h',
'lsc_table.h',
@@ -38,6 +39,7 @@ libipa_sources = files([
'fixedpoint.cpp',
'histogram.cpp',
'interpolator.cpp',
+ 'lsc.cpp',
'lsc_base.cpp',
'lsc_polynomial.cpp',
'lsc_table.cpp',
Introduce the lsc.h and lsc.cpp files with the definition of the Lsc algorithm active state. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> --- src/ipa/libipa/lsc.cpp | 33 +++++++++++++++++++++++++++++++++ src/ipa/libipa/lsc.h | 24 ++++++++++++++++++++++++ src/ipa/libipa/meson.build | 2 ++ 3 files changed, 59 insertions(+)