libcamera  v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
colours.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (C) 2024, Ideas on Board Oy
4  *
5  * libipa miscellaneous colour helpers
6  */
7 
8 #pragma once
9 
10 #include <stdint.h>
11 
12 namespace libcamera {
13 
14 namespace ipa {
15 
16 double rec601LuminanceFromRGB(double r, double g, double b);
17 uint32_t estimateCCT(double red, double green, double blue);
18 
19 } /* namespace ipa */
20 
21 } /* namespace libcamera */
Top-level libcamera namespace.
Definition: backtrace.h:17
double rec601LuminanceFromRGB(double r, double g, double b)
Estimate luminance from RGB values following ITU-R BT.601.
Definition: colours.cpp:34
uint32_t estimateCCT(double red, double green, double blue)
Estimate correlated colour temperature from RGB color space input.
Definition: colours.cpp:59