summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorElle Stone <ellestone@ninedegreesbelow.com>2015-02-07 12:17:28 -0500
committerØyvind Kolås <pippin@gimp.org>2015-02-12 21:43:37 +0100
commit9fe71b517dec055b6070dd75f45d5384ae114958 (patch)
tree9d91c39a4c9d1e4db09fc6c4c66cbfd6fe97a7b6 /opencl
parent29748bc0ae21dd0896181a80fb051edd2045cb52 (diff)
Change sRGB Y values to match sRGB built-in profiles
Diffstat (limited to 'opencl')
-rw-r--r--opencl/colors-8bit-lut.cl.h6
-rw-r--r--opencl/colors.cl.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/opencl/colors-8bit-lut.cl.h b/opencl/colors-8bit-lut.cl.h
index a63ba7ff..368c2027 100644
--- a/opencl/colors-8bit-lut.cl.h
+++ b/opencl/colors-8bit-lut.cl.h
@@ -278,9 +278,9 @@ static const char* colors_8bit_lut_cl_source =
"}; \n"
" \n"
"/* babl reference file: babl/base/rgb-constants.h */ \n"
-"#define RGB_LUMINANCE_RED (0.222491f) \n"
-"#define RGB_LUMINANCE_GREEN (0.716888f) \n"
-"#define RGB_LUMINANCE_BLUE (0.060621f) \n"
+"#define RGB_LUMINANCE_RED (0.22248840f) \n"
+"#define RGB_LUMINANCE_GREEN (0.71690369f) \n"
+"#define RGB_LUMINANCE_BLUE (0.06060791f) \n"
" \n"
"/* R'G'B' u8 -> RGBA float */ \n"
"__kernel void rgb_gamma_u8_to_rgbaf (__global const uchar * in, \n"
diff --git a/opencl/colors.cl.h b/opencl/colors.cl.h
index 9431fc30..8e976e8c 100644
--- a/opencl/colors.cl.h
+++ b/opencl/colors.cl.h
@@ -419,9 +419,9 @@ static const char* colors_cl_source =
"/* -- YA float -- */ \n"
" \n"
"/* babl reference file: babl/base/rgb-constants.h */ \n"
-"#define RGB_LUMINANCE_RED (0.222491f) \n"
-"#define RGB_LUMINANCE_GREEN (0.716888f) \n"
-"#define RGB_LUMINANCE_BLUE (0.060621f) \n"
+"#define RGB_LUMINANCE_RED (0.22248840f) \n"
+"#define RGB_LUMINANCE_GREEN (0.71690369f) \n"
+"#define RGB_LUMINANCE_BLUE (0.06060791f) \n"
" \n"
"/* RGBA float -> YA float */ \n"
"__kernel void rgbaf_to_yaf (__global const float4 * in, \n"