From 36cbdb860a9f620aa8a6c3280c73b0f7059c705d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 15 Aug 2014 14:22:34 +1000 Subject: Cleanup: comment & var name --- source/blender/blenlib/intern/math_color.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c index 828a84da6e1..3ed7230b1d2 100644 --- a/source/blender/blenlib/intern/math_color.c +++ b/source/blender/blenlib/intern/math_color.c @@ -78,9 +78,9 @@ void hsv_to_rgb_v(const float hsv[3], float r_rgb[3]) } /* convenience function for now */ -void hsl_to_rgb_v(const float hcl[3], float r_rgb[3]) +void hsl_to_rgb_v(const float hsl[3], float r_rgb[3]) { - hsl_to_rgb(hcl[0], hcl[1], hcl[2], &r_rgb[0], &r_rgb[1], &r_rgb[2]); + hsl_to_rgb(hsl[0], hsl[1], hsl[2], &r_rgb[0], &r_rgb[1], &r_rgb[2]); } void rgb_to_yuv(float r, float g, float b, float *ly, float *lu, float *lv) @@ -632,6 +632,9 @@ static float inverse_srgb_companding(float v) } } +/** + * \note Does sRGB to linear conversion + */ void rgb_to_xyz(float r, float g, float b, float *x, float *y, float *z) { r = inverse_srgb_companding(r) * 100.0f; -- cgit v1.2.3