Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_math_color.h
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
| #define rgba_char_args_set_fl(col, r, g, b, a) \ | #define rgba_char_args_set_fl(col, r, g, b, a) \ | ||||
| rgba_char_args_set(col, (r) * 255, (g) * 255, (b) * 255, (a) * 255) | rgba_char_args_set(col, (r) * 255, (g) * 255, (b) * 255, (a) * 255) | ||||
| MINLINE void rgba_char_args_set(char col[4], const char r, const char g, const char b, const char a); | MINLINE void rgba_char_args_set(char col[4], const char r, const char g, const char b, const char a); | ||||
| MINLINE void rgba_char_args_test_set(char col[4], const char r, const char g, const char b, const char a); | MINLINE void rgba_char_args_test_set(char col[4], const char r, const char g, const char b, const char a); | ||||
| MINLINE void cpack_cpy_3ub(unsigned char r_col[3], const unsigned int pack); | MINLINE void cpack_cpy_3ub(unsigned char r_col[3], const unsigned int pack); | ||||
| void generate_spectrum_table(unsigned char *r_table, int width, float min, float max); | |||||
brecht: A more descriptive name might me `blackbody_temperature_to_rgb_table()`. | |||||
| /********* lift/gamma/gain / ASC-CDL conversion ***********/ | /********* lift/gamma/gain / ASC-CDL conversion ***********/ | ||||
| void lift_gamma_gain_to_asc_cdl(float *lift, float *gamma, float *gain, float *offset, float *slope, float *power); | void lift_gamma_gain_to_asc_cdl(float *lift, float *gamma, float *gain, float *offset, float *slope, float *power); | ||||
| #if BLI_MATH_DO_INLINE | #if BLI_MATH_DO_INLINE | ||||
| #include "intern/math_color_inline.c" | #include "intern/math_color_inline.c" | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __BLI_MATH_COLOR_H__ */ | #endif /* __BLI_MATH_COLOR_H__ */ | ||||
A more descriptive name might me blackbody_temperature_to_rgb_table().