summaryrefslogtreecommitdiff
path: root/src/ipa/simple/black_level.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/simple/black_level.h')
-rw-r--r--src/ipa/simple/black_level.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ipa/simple/black_level.h b/src/ipa/simple/black_level.h
new file mode 100644
index 00000000..5e032f9f
--- /dev/null
+++ b/src/ipa/simple/black_level.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2024, Red Hat Inc.
+ *
+ * black level handling
+ */
+
+#pragma once
+
+#include <array>
+#include <stdint.h>
+
+#include "libcamera/internal/software_isp/swisp_stats.h"
+
+namespace libcamera {
+
+class BlackLevel
+{
+public:
+ BlackLevel();
+ uint8_t get() const;
+ void update(SwIspStats::Histogram &yHistogram);
+
+private:
+ uint8_t blackLevel_;
+ bool blackLevelSet_;
+};
+
+} /* namespace libcamera */