diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-19 13:09:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-19 13:09:00 +0400 |
commit | 879c13bbfc79d997ce9148d24c26704fbe6e3b50 (patch) | |
tree | c63d74cd192ce04073d59f196f5525afa80b48d1 /source/blender/blenlib/BLI_math_color.h | |
parent | 4786541285f6f190922ec9857753d620c528f181 (diff) |
rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy).
Diffstat (limited to 'source/blender/blenlib/BLI_math_color.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_color.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_color.h b/source/blender/blenlib/BLI_math_color.h index 6d37aabd6ab..1b8cc08abf7 100644 --- a/source/blender/blenlib/BLI_math_color.h +++ b/source/blender/blenlib/BLI_math_color.h @@ -101,8 +101,8 @@ void minmax_rgb(short c[3]); void rgb_float_set_hue_float_offset(float * rgb, float hue_offset); void rgb_byte_set_hue_float_offset(unsigned char * rgb, float hue_offset); -void rgb_byte_to_float(const unsigned char in[3], float out[3]); -void rgb_float_to_byte(const float in[3], unsigned char out[3]); +void rgb_uchar_to_float(float col_r[3], const unsigned char col_ub[3]); +void rgb_float_to_uchar(unsigned char col_r[3], const float col_f[3]); /***************** lift/gamma/gain / ASC-CDL conversion *****************/ |