[babl] Change constants to match built-in sRGB profiles. modified: babl/base/rgb-constants.h



commit 2faa3e05a5f2327b8b7a72e92e4e3f6e623c3d38
Author: Elle Stone <ellestone ninedegreesbelow com>
Date:   Sat Feb 7 12:12:46 2015 -0500

    Change constants to match built-in sRGB profiles. modified: babl/base/rgb-constants.h

 babl/base/rgb-constants.h |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/babl/base/rgb-constants.h b/babl/base/rgb-constants.h
index 0e47056..03810d6 100644
--- a/babl/base/rgb-constants.h
+++ b/babl/base/rgb-constants.h
@@ -17,15 +17,16 @@
  */
 
 /*
- * These primaries have been adapted for a D50 illuminant.
+ * These sRGB Y values have been adapted to the ICC spec D50 illuminant.
+ * They match the Y values in the GEGL and GIMP built-in sRGB profiles,
+ * which match the Y values in the ArgyllCMS sRGB.icm profile.
  *
- * They were taken from here:
- * http://www.brucelindbloom.com/WorkingSpaceInfo.html#AdaptedPrimaries
- *
- * For more information, see this thread:
+ * For more information, see this thread and these bug reports:
  * https://mail.gnome.org/archives/gimp-developer-list/2013-September/msg00113.html
+ * https://bugzilla.gnome.org/show_bug.cgi?id=723787
+ * https://bugzilla.gnome.org/show_bug.cgi?id=724822
  */
 
-#define RGB_LUMINANCE_RED    (0.222491)
-#define RGB_LUMINANCE_GREEN  (0.716888)
-#define RGB_LUMINANCE_BLUE   (0.060621)
+#define RGB_LUMINANCE_RED    (0.22248840)
+#define RGB_LUMINANCE_GREEN  (0.71690369)
+#define RGB_LUMINANCE_BLUE   (0.06060791)


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