Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenlib/BLI_math_color.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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/blenlib/BLI_math_color.h')
-rw-r--r--source/blender/blenlib/BLI_math_color.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/source/blender/blenlib/BLI_math_color.h b/source/blender/blenlib/BLI_math_color.h
index 624f87b88e9..03eb2b890cf 100644
--- a/source/blender/blenlib/BLI_math_color.h
+++ b/source/blender/blenlib/BLI_math_color.h
@@ -34,23 +34,23 @@ extern "C" {
#include "BLI_math_inline.h"
/* primaries */
-#define BLI_XYZ_SMPTE 0
-#define BLI_XYZ_REC709_SRGB 1
-#define BLI_XYZ_CIE 2
+#define BLI_XYZ_SMPTE 0
+#define BLI_XYZ_REC709_SRGB 1
+#define BLI_XYZ_CIE 2
/* built-in profiles */
-#define BLI_PR_NONE 0
-#define BLI_PR_SRGB 1
-#define BLI_PR_REC709 2
+#define BLI_PR_NONE 0
+#define BLI_PR_SRGB 1
+#define BLI_PR_REC709 2
/* YCbCr */
-#define BLI_YCC_ITU_BT601 0
-#define BLI_YCC_ITU_BT709 1
-#define BLI_YCC_JFIF_0_255 2
+#define BLI_YCC_ITU_BT601 0
+#define BLI_YCC_ITU_BT709 1
+#define BLI_YCC_JFIF_0_255 2
/* YUV */
-#define BLI_YUV_ITU_BT601 0
-#define BLI_YUV_ITU_BT709 1
+#define BLI_YUV_ITU_BT601 0
+#define BLI_YUV_ITU_BT709 1
/******************* Conversion to RGB ********************/
@@ -131,28 +131,32 @@ MINLINE unsigned char rgb_to_grayscale_byte(const unsigned char rgb[3]);
MINLINE int compare_rgb_uchar(const unsigned char a[3], const unsigned char b[3], const int limit);
MINLINE float dither_random_value(float s, float t);
-MINLINE void float_to_byte_dither_v3(unsigned char b[3], const float f[3], float dither, float s, float t);
-
+MINLINE void float_to_byte_dither_v3(
+ unsigned char b[3], const float f[3], float dither, float s, float t);
#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)
#define rgba_float_args_set_ch(col, r, g, b, a) \
- rgba_float_args_set(col, (r) / 255.0f, (g) / 255.0f, (b) / 255.0f, (a) / 255.0f)
-
-MINLINE void rgba_char_args_set(char col[4], const char r, const char g, const char b, const char a);
-MINLINE void rgba_float_args_set(float col[4], const float r, const float g, const float b, const float a);
-MINLINE void rgba_char_args_test_set(char col[4], const char r, const char g, const char b, const char a);
+ rgba_float_args_set(col, (r) / 255.0f, (g) / 255.0f, (b) / 255.0f, (a) / 255.0f)
+
+MINLINE void rgba_char_args_set(
+ char col[4], const char r, const char g, const char b, const char a);
+MINLINE void rgba_float_args_set(
+ float col[4], const float r, const float g, const float b, const float 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);
void blackbody_temperature_to_rgb_table(float *r_table, int width, float min, float max);
/********* 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
-#include "intern/math_color_inline.c"
+# include "intern/math_color_inline.c"
#endif
#ifdef __cplusplus