From a3b8afe314883f977f37c202fe39297726108e41 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 4 Feb 2025 18:22:32 +0100 Subject: Improve quality, fix errors, update comments, update man pages, add new man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libred.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libred.h') diff --git a/libred.h b/libred.h index 29a00cd..21920ff 100644 --- a/libred.h +++ b/libred.h @@ -249,21 +249,6 @@ int libred_get_colour(long int, double *, double *, double *); */ int libred_get_colour_xy(long int, double *, double *); -/** - * Calculate the colour temperature from its CIE xy values - * - * @param x The CIE x value for the colour temperature - * @param y The CIE y value for the colour temperature - * @param x_error Output parameter for the absolute error in - * the CIE x value of the returned colour - * temperature; may be `NULL` - * @param y_error Output parameter for the absolute error in - * the CIE y value of the returned colour - * temperature; may be `NULL` - * @return The closest matching colour temperature - */ -double libred_get_temperature_xy(double, double, double *, double *); - /** * Calculate the colour temperature from its [0, 1] sRGB values * @@ -288,6 +273,21 @@ double libred_get_temperature_xy(double, double, double *, double *); */ double libred_get_temperature(double, double, double, double *, double *, double *, double *); +/** + * Calculate the colour temperature from its CIE xy values + * + * @param x The CIE x value for the colour temperature + * @param y The CIE y value for the colour temperature + * @param x_error Output parameter for the absolute error in + * the CIE x value of the returned colour + * temperature; may be `NULL` + * @param y_error Output parameter for the absolute error in + * the CIE y value of the returned colour + * temperature; may be `NULL` + * @return The closest matching colour temperature + */ +double libred_get_temperature_xy(double, double, double *, double *); + #endif -- cgit v1.2.3-70-g09d2