Blender V5.3
math_color_inline.cc File Reference
#include "BLI_math_base_c.hh"
#include "BLI_math_color_c.hh"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Profile Transformations
MINLINE void blender::srgb_to_linearrgb_v4 (float linear[4], const float srgb[4])
MINLINE void blender::linearrgb_to_srgb_v4 (float srgb[4], const float linear[4])
MINLINE void blender::linearrgb_to_srgb_uchar3 (unsigned char srgb[3], const float linear[3])
MINLINE void blender::linearrgb_to_srgb_uchar4 (unsigned char srgb[4], const float linear[4])
MINLINE void blender::srgb_to_linearrgb_predivide_v4 (float linear[4], const float srgb[4])
MINLINE void blender::linearrgb_to_srgb_predivide_v4 (float srgb[4], const float linear[4])
MINLINE void blender::srgb_to_linearrgb_uchar4 (float linear[4], const unsigned char srgb[4])
MINLINE void blender::srgb_to_linearrgb_uchar4_predivide (float linear[4], const unsigned char srgb[4])
Other
MINLINE void blender::rgb_uchar_to_float (float r_col[3], const unsigned char col_ub[3])
MINLINE void blender::rgba_uchar_to_float (float r_col[4], const unsigned char col_ub[4])
MINLINE void blender::rgb_float_to_uchar (unsigned char r_col[3], const float col_f[3])
MINLINE void blender::rgba_float_to_uchar (unsigned char r_col[4], const float col_f[4])
MINLINE void blender::rgba_uchar_args_set (unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a)
MINLINE void blender::rgba_float_args_set (float col[4], float r, float g, float b, float a)
MINLINE void blender::rgba_uchar_args_test_set (unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a)
MINLINE void blender::cpack_cpy_3ub (unsigned char r_col[3], unsigned int pack)
MINLINE float blender::srgb_to_grayscale (const float rgb[3])
MINLINE unsigned char blender::srgb_to_grayscale_byte (const unsigned char rgb[3])
MINLINE int blender::compare_rgb_uchar (const unsigned char col_a[3], const unsigned char col_b[3], int limit)
MINLINE float blender::dither_random_value (int x, int y)
MINLINE void blender::float_to_byte_dither_v3 (unsigned char b[3], const float f[3], float dither, int x, int y)
Color Compare / Pack
MINLINE float blender::hash_iqint3_f (const uint32_t x, const uint32_t y)
Alpha Transformations
MINLINE void blender::premul_to_straight_v4_v4 (float straight[4], const float premul[4])
MINLINE void blender::premul_to_straight_v4 (float color[4])
MINLINE void blender::straight_to_premul_v4_v4 (float premul[4], const float straight[4])
MINLINE void blender::straight_to_premul_v4 (float color[4])
MINLINE void blender::straight_uchar_to_premul_float (float result[4], const unsigned char color[4])
MINLINE void blender::premul_float_to_straight_uchar (unsigned char *result, const float color[4])