diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/imbuf/intern/colormanagement_inline.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
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__ */ |