[gegl] operations: Make linear sRGB using sRGB D65 white point



commit f956b8999f519496fae001d100cf22d9fccad7c9
Author: Elle Stone <ellestone ninedegreesbelow com>
Date:   Thu Feb 20 14:09:12 2014 -0500

    operations: Make linear sRGB using sRGB D65 white point

 operations/external/lcms-from-profile.c |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/operations/external/lcms-from-profile.c b/operations/external/lcms-from-profile.c
index f52909d..26fb675 100644
--- a/operations/external/lcms-from-profile.c
+++ b/operations/external/lcms-from-profile.c
@@ -62,14 +62,21 @@ create_lcms_linear_rgb_profile (void)
 {
   cmsHPROFILE ret;
 
-  /* white point is D65 */
-  cmsCIExyY whitepoint = {0.312713, 0.329016, 1.0};
+  /* white point is D65 from the sRGB specs */
+  cmsCIExyY whitepoint = {0.3127, 0.3290, 1.0};
 
-  /* primaries are ITU‐R BT.709‐5 (xYY) */
+  /* primaries are ITU‐R BT.709‐5 (xYY),
+   * which are also the primaries from the sRGB specs,
+   * modified to properly account for hexadecimal quantization
+   * during the profile making process.
+   */
   cmsCIExyYTRIPLE primaries = {
-    /*R*/ {0.6400, 0.3300, 1.0},
-    /*G*/ {0.3000, 0.6000, 1.0},
-    /*B*/ {0.1500, 0.0600, 1.0}
+    /*R {0.6400, 0.3300, 1.0},*/
+    /*G {0.3000, 0.6000, 1.0},*/
+    /*B {0.1500, 0.0600, 1.0} */
+    /*R*/ {0.639998686, 0.330010138, 1.0},
+    /*G*/ {0.300003784, 0.600003357, 1.0},
+    /*B*/ {0.150002046, 0.059997204, 1.0}
   };
 
   /* linear light */


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