From 879c13bbfc79d997ce9148d24c26704fbe6e3b50 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 Jan 2012 09:09:00 +0000 Subject: 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). --- source/blender/blenlib/BLI_math_color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 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 *****************/ -- cgit v1.2.3