diff options
Diffstat (limited to 'source/blender/imbuf/intern/colormanagement_inline.c')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement_inline.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/imbuf/intern/colormanagement_inline.c b/source/blender/imbuf/intern/colormanagement_inline.c index 2200c1d8c52..42c90b8414f 100644 --- a/source/blender/imbuf/intern/colormanagement_inline.c +++ b/source/blender/imbuf/intern/colormanagement_inline.c @@ -40,29 +40,29 @@ float IMB_colormanagement_get_luminance(const float rgb[3]) { - return dot_v3v3(imbuf_luma_coefficients, rgb); + return dot_v3v3(imbuf_luma_coefficients, rgb); } /* Byte equivalent of IMB_colormanagement_get_luminance(). */ unsigned char IMB_colormanagement_get_luminance_byte(const unsigned char rgb[3]) { - float rgbf[3]; - float val; + float rgbf[3]; + float val; - rgb_uchar_to_float(rgbf, rgb); - val = dot_v3v3(imbuf_luma_coefficients, rgbf); + rgb_uchar_to_float(rgbf, rgb); + val = dot_v3v3(imbuf_luma_coefficients, rgbf); - return unit_float_to_uchar_clamp(val); + return unit_float_to_uchar_clamp(val); } void IMB_colormangement_xyz_to_rgb(float rgb[3], const float xyz[3]) { - mul_v3_m3v3(rgb, imbuf_xyz_to_rgb, xyz); + mul_v3_m3v3(rgb, imbuf_xyz_to_rgb, xyz); } void IMB_colormangement_rgb_to_xyz(float xyz[3], const float rgb[3]) { - mul_v3_m3v3(xyz, imbuf_rgb_to_xyz, rgb); + mul_v3_m3v3(xyz, imbuf_rgb_to_xyz, rgb); } -#endif /* __IMB_COLORMANAGEMENT_INLINE_H__ */ +#endif /* __IMB_COLORMANAGEMENT_INLINE_H__ */ |