[Bf-blender-cvs] [36cbdb8] master: Cleanup: comment & var name

Campbell Barton noreply at git.blender.org
Fri Aug 15 06:40:29 CEST 2014


Commit: 36cbdb860a9f620aa8a6c3280c73b0f7059c705d
Author: Campbell Barton
Date:   Fri Aug 15 14:22:34 2014 +1000
Branches: master
https://developer.blender.org/rB36cbdb860a9f620aa8a6c3280c73b0f7059c705d

Cleanup: comment & var name

===================================================================

M	source/blender/blenlib/intern/math_color.c

===================================================================

diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c
index 828a84d..3ed7230 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;




More information about the Bf-blender-cvs mailing list