[babl] expose chromatic adaptation matrix



commit 3a6b02ffce2c40faf0a449984aee9f926c0610a9
Author: Mingye Wang <arthur2e5 aosc io>
Date:   Sat Feb 20 19:33:14 2021 +0800

    expose chromatic adaptation matrix

 babl/babl-space.c | 6 +++---
 babl/babl-space.h | 5 +++++
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/babl/babl-space.c b/babl/babl-space.c
index 282d728f7..2cb1b27a4 100644
--- a/babl/babl-space.c
+++ b/babl/babl-space.c
@@ -25,9 +25,9 @@
 
 static BablSpace space_db[MAX_SPACES];
 
-static void babl_chromatic_adaptation_matrix (const double *whitepoint,
-                                              const double *target_whitepoint,
-                                              double       *chad_matrix)
+void babl_chromatic_adaptation_matrix (const double *whitepoint,
+                                       const double *target_whitepoint,
+                                       double       *chad_matrix)
 {
   double bradford[9]={ 0.8951000, 0.2664000, -0.1614000,
                       -0.7502000, 1.7135000,  0.0367000,
diff --git a/babl/babl-space.h b/babl/babl-space.h
index 86692e95b..23e98a099 100644
--- a/babl/babl-space.h
+++ b/babl/babl-space.h
@@ -171,5 +171,10 @@ babl_space_from_gray_trc (const char *name,
                           const Babl *trc_gray,
                           BablSpaceFlags flags);
 
+void
+babl_chromatic_adaptation_matrix (const double *whitepoint,
+                                  const double *target_whitepoint,
+                                  double       *chad_matrix)
+
 
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]