diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-23 17:42:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-23 17:42:14 +0400 |
commit | 263be14811c65ee67646308b116c6afd8f817384 (patch) | |
tree | 865b7542c21bcdd6030d8209d9a264447dc2c338 /source/blender/blenlib/intern/math_color_inline.c | |
parent | 79fb3311a3397ddf6b1a3e0e10b4dc0f4fee4d70 (diff) |
rename WITH_BUILTIN_GLEW, WITH_SYSTEM_GLEW & negate.
Diffstat (limited to 'source/blender/blenlib/intern/math_color_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_color_inline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_color_inline.c b/source/blender/blenlib/intern/math_color_inline.c index f270a20003d..23d70bd148b 100644 --- a/source/blender/blenlib/intern/math_color_inline.c +++ b/source/blender/blenlib/intern/math_color_inline.c @@ -239,6 +239,7 @@ MINLINE unsigned char rgb_to_grayscale_byte(const unsigned char rgb[3]) return (76 * (unsigned short) rgb[0] + 148 * (unsigned short) rgb[1] + 31 * (unsigned short) rgb[2]) / 255; } +/* luma from defined by 'YCC_JFIF', see #rgb_to_ycc */ MINLINE float rgb_to_luma(const float rgb[3]) { return 0.299f * rgb[0] + 0.587f * rgb[1] + 0.114f * rgb[2]; |