diff options
author | Daniel Scally <dan.scally@ideasonboard.com> | 2024-11-15 07:46:23 +0000 |
---|---|---|
committer | Daniel Scally <dan.scally@ideasonboard.com> | 2024-11-18 15:48:25 +0000 |
commit | b1439c87d118776274296ef07136919a693e73fc (patch) | |
tree | 3bdd61dd3a9e2492d17f713c4ce756bb575172b8 /src/ipa/libipa/colours.h | |
parent | 5c71df927ddaaa01204bff1e647c9d2bf653d95f (diff) |
ipa: libipa: Add colour helpers
We start to have some functions relating to colour that are
effectively identical crop up across the IPA modules. Add a file
allowing those to be centralised within libipa so that a single
implementation can be used in all of the IPAs.
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/colours.h')
-rw-r--r-- | src/ipa/libipa/colours.h | 21 |
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 */ |