aboutsummaryrefslogtreecommitdiffstats
path: root/libred.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-04 18:22:32 +0100
committerMattias Andrée <m@maandree.se>2025-02-04 18:22:32 +0100
commita3b8afe314883f977f37c202fe39297726108e41 (patch)
treea93dff3738e9ead2047ccd3a2cf06d7d1db6b304 /libred.h
parentAdd libred_get_colour_xy, libred_get_temperature_xy, and libred_get_temperature (diff)
downloadlibred-1.1.tar.gz
libred-1.1.tar.bz2
libred-1.1.tar.xz
Improve quality, fix errors, update comments, update man pages, add new man pagesHEAD1.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libred.h')
-rw-r--r--libred.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/libred.h b/libred.h
index 29a00cd..21920ff 100644
--- a/libred.h
+++ b/libred.h
@@ -250,21 +250,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
*
* @param r The sRGB “red” value for the colour temperature
@@ -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