[gegl] opencl: fix RGB luminance constants
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] opencl: fix RGB luminance constants
- Date: Sun, 17 Apr 2016 20:17:29 +0000 (UTC)
commit 30a2d4187b0e5b12dac922c79f269202933f376b
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Apr 17 21:17:00 2016 +0100
opencl: fix RGB luminance constants
opencl/colors-8bit-lut.cl | 6 +++---
opencl/colors-8bit-lut.cl.h | 6 +++---
opencl/colors.cl | 6 +++---
opencl/colors.cl.h | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/opencl/colors-8bit-lut.cl b/opencl/colors-8bit-lut.cl
index c3058e8..9c6cfa5 100644
--- a/opencl/colors-8bit-lut.cl
+++ b/opencl/colors-8bit-lut.cl
@@ -277,9 +277,9 @@ __constant float u8_gamma_to_linear_lut[] = {
};
/* babl reference file: babl/base/rgb-constants.h */
-#define RGB_LUMINANCE_RED (0.222491f)
-#define RGB_LUMINANCE_GREEN (0.716888f)
-#define RGB_LUMINANCE_BLUE (0.060621f)
+#define RGB_LUMINANCE_RED (0.22248840f)
+#define RGB_LUMINANCE_GREEN (0.71690369f)
+#define RGB_LUMINANCE_BLUE (0.06060791f)
/* R'G'B' u8 -> RGBA float */
__kernel void rgb_gamma_u8_to_rgbaf (__global const uchar * in,
diff --git a/opencl/colors-8bit-lut.cl.h b/opencl/colors-8bit-lut.cl.h
index a63ba7f..368c202 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 b/opencl/colors.cl
index 689a053..3c16efd 100644
--- a/opencl/colors.cl
+++ b/opencl/colors.cl
@@ -418,9 +418,9 @@ __kernel void yf_to_ragabaf (__global const float * in,
/* -- YA float -- */
/* babl reference file: babl/base/rgb-constants.h */
-#define RGB_LUMINANCE_RED (0.222491f)
-#define RGB_LUMINANCE_GREEN (0.716888f)
-#define RGB_LUMINANCE_BLUE (0.060621f)
+#define RGB_LUMINANCE_RED (0.22248840f)
+#define RGB_LUMINANCE_GREEN (0.71690369f)
+#define RGB_LUMINANCE_BLUE (0.06060791f)
/* RGBA float -> YA float */
__kernel void rgbaf_to_yaf (__global const float4 * in,
diff --git a/opencl/colors.cl.h b/opencl/colors.cl.h
index 9431fc3..8e976e8 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]