diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-15 08:22:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-15 08:22:34 +0400 |
commit | 36cbdb860a9f620aa8a6c3280c73b0f7059c705d (patch) | |
tree | dbb568e92cfaef0a2136467cb3d44e677437eede /source/blender/blenlib/intern/math_color.c | |
parent | dae74d26fa30d079523a60a5eb0612b0a35fcc6d (diff) |
Cleanup: comment & var name
Diffstat (limited to 'source/blender/blenlib/intern/math_color.c')
-rw-r--r-- | source/blender/blenlib/intern/math_color.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |