summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/colours.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/libipa/colours.h')
-rw-r--r--src/ipa/libipa/colours.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ipa/libipa/colours.h b/src/ipa/libipa/colours.h
new file mode 100644
index 00000000..b42ed0ac
--- /dev/null
+++ b/src/ipa/libipa/colours.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+/*
+ * Copyright (C) 2024, Ideas on Board Oy
+ *
+ * libipa miscellaneous colour helpers
+ */
+
+#pragma once
+
+#include <stdint.h>
+
+namespace libcamera {
+
+namespace ipa {
+
+double rec601LuminanceFromRGB(double r, double g, double b);
+uint32_t estimateCCT(double red, double green, double blue);
+
+} /* namespace ipa */
+
+} /* namespace libcamera */