opencl: fix RGB luminance constants

parent 6554f8ae
......@@ -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,
......
......@@ -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"
......
......@@ -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,
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment