From 1dec23d33a86c0412852ef510fc5b5b619284697 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Jun 2012 15:05:42 +0000 Subject: add rgb_to_luma_y(), was being done inline in many places. --- source/blender/blenlib/BLI_math_color.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenlib/BLI_math_color.h') diff --git a/source/blender/blenlib/BLI_math_color.h b/source/blender/blenlib/BLI_math_color.h index 44f54c41129..24c237f1130 100644 --- a/source/blender/blenlib/BLI_math_color.h +++ b/source/blender/blenlib/BLI_math_color.h @@ -78,6 +78,8 @@ float rgb_to_grayscale(const float rgb[3]); unsigned char rgb_to_grayscale_byte(const unsigned char rgb[3]); float rgb_to_luma(const float rgb[3]); unsigned char rgb_to_luma_byte(const unsigned char rgb[3]); +float rgb_to_luma_y(const float rgb[3]); +float rgb_to_luma_rec709_byte(const unsigned char rgb[3]); /**************** Profile Transformations *****************/ -- cgit v1.2.3