Blender
V3.3
|
#include "BLI_math_base.h"
#include "BLI_math_color.h"
#include "BLI_math_color_blend.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
Go to the source code of this file.
Macros | |
#define | __MATH_COLOR_BLEND_INLINE_C__ |
#define | EPS_SATURATION 0.0005f |
#define | EPS_ALPHA 0.0005f |
#define __MATH_COLOR_BLEND_INLINE_C__ |
Definition at line 15 of file math_color_blend_inline.c.
#define EPS_ALPHA 0.0005f |
Definition at line 19 of file math_color_blend_inline.c.
#define EPS_SATURATION 0.0005f |
Definition at line 18 of file math_color_blend_inline.c.
Definition at line 187 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), min_ii(), and t.
Referenced by IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 726 of file math_color_blend_inline.c.
References copy_v4_v4(), EPS_ALPHA, and min_ff().
Referenced by IMB_blend_color_float(), and IMB_rectblend().
Definition at line 57 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), min_ii(), and t.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), IMB_rectblend(), and layerCopyValue_mloopcol().
Definition at line 614 of file math_color_blend_inline.c.
References copy_v4_v4().
Referenced by do_blend_effect_float(), do_projectpaint_soften(), do_projectpaint_soften_f(), IMB_blend_color_float(), IMB_rectblend(), layerCopyValue_propcol(), and paint_2d_lift_soften().
Definition at line 254 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and max_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 800 of file math_color_blend_inline.c.
References copy_v4_v4(), and max_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 468 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4_uchar(), usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 1008 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4(), usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 147 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), min_ii(), and t.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 682 of file math_color_blend_inline.c.
References copy_v4_v4(), min_ff(), and t.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 432 of file math_color_blend_inline.c.
References blender::math::abs(), and copy_v4_v4_uchar().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_difference_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 973 of file math_color_blend_inline.c.
References copy_v4_v4(), and fabsf.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 290 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 837 of file math_color_blend_inline.c.
References copy_v4_v4(), and min_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
MINLINE void blend_color_erase_alpha_byte | ( | uchar | dst[4], |
const uchar | src1[4], | ||
const uchar | src2[4] | ||
) |
Definition at line 170 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), max_ii(), and t.
Referenced by IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_erase_alpha_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 702 of file math_color_blend_inline.c.
References copy_v4_v4(), EPS_ALPHA, and max_ff().
Referenced by IMB_blend_color_float(), and IMB_rectblend().
Definition at line 450 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 990 of file math_color_blend_inline.c.
References copy_v4_v4().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 229 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 775 of file math_color_blend_inline.c.
References copy_v4_v4(), and min_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 494 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4_uchar(), usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 1035 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4(), usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
MINLINE void blend_color_interpolate_byte | ( | uchar | dst[4], |
const uchar | src1[4], | ||
const uchar | src2[4], | ||
float | ft | ||
) |
Definition at line 571 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), and t.
Referenced by do_projectpaint_smear(), do_projectpaint_soften(), IMB_rectblend(), and layerCopyValue_mloopcol().
MINLINE void blend_color_interpolate_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4], | ||
float | t | ||
) |
Definition at line 1113 of file math_color_blend_inline.c.
References t.
Referenced by color_filter_task_cb(), create_mono_icon_with_border(), do_color_smooth_task_cb_exec(), do_paint_brush_task_cb_ex(), do_projectpaint_smear_f(), do_projectpaint_soften_f(), do_smear_brush_task_cb_exec(), IMB_rectblend(), layerCopyValue_propcol(), and SCULPT_do_paint_brush().
Definition at line 124 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), max_ii(), and t.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 662 of file math_color_blend_inline.c.
References copy_v4_v4(), max_ff(), and t.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 272 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and max_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_linearburn_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 819 of file math_color_blend_inline.c.
References copy_v4_v4(), and max_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
MINLINE void blend_color_linearlight_byte | ( | uchar | dst[4], |
const uchar | src1[4], | ||
const uchar | src2[4] | ||
) |
Definition at line 376 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), max_ii(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_linearlight_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 917 of file math_color_blend_inline.c.
References copy_v4_v4(), max_ff(), and min_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 546 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4_uchar(), usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_luminosity_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 1088 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4(), usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 33 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), and t.
Referenced by blf_font_draw_buffer_ex(), do_projectpaint_thread(), IMB_blend_color_byte(), IMB_rectblend(), layerCopyValue_mloopcol(), paint_2d_bucket_fill(), and screen_opengl_render_doit().
Definition at line 596 of file math_color_blend_inline.c.
References copy_v4_v4(), and t.
Referenced by blf_font_draw_buffer_ex(), color_filter_task_cb(), do_paint_brush_task_cb_ex(), do_projectpaint_thread(), do_smear_brush_task_cb_exec(), FRS_composite_result(), IMB_blend_color_float(), IMB_rectblend(), layerCopyValue_propcol(), blender::ed::sculpt_paint::paint::image::PaintingKernel< ImageBuffer >::paint(), and paint_2d_bucket_fill().
Definition at line 101 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), and t.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), IMB_rectblend(), and layerCopyValue_mloopcol().
Definition at line 644 of file math_color_blend_inline.c.
References copy_v4_v4(), and t.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), IMB_rectblend(), and layerCopyValue_propcol().
Definition at line 204 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 750 of file math_color_blend_inline.c.
References copy_v4_v4(), and min_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 351 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), max_ii(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 892 of file math_color_blend_inline.c.
References copy_v4_v4(), max_ff(), and min_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 519 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4_uchar(), EPS_SATURATION, usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_saturation_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 1061 of file math_color_blend_inline.c.
References usdtokens::b(), copy_v4_v4(), EPS_SATURATION, usdtokens::g(), hsv_to_rgb(), r, rgb_to_hsv(), v1, and v2.
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 308 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), and max_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 855 of file math_color_blend_inline.c.
References copy_v4_v4(), and max_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 326 of file math_color_blend_inline.c.
References copy_v4_v4_uchar().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
Definition at line 873 of file math_color_blend_inline.c.
References copy_v4_v4().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().
Definition at line 79 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), divide_round_i(), max_ii(), and t.
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), IMB_rectblend(), and layerCopyValue_mloopcol().
Definition at line 629 of file math_color_blend_inline.c.
References copy_v4_v4(), and max_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), IMB_rectblend(), and layerCopyValue_propcol().
Definition at line 401 of file math_color_blend_inline.c.
References copy_v4_v4_uchar(), max_ii(), and min_ii().
Referenced by do_blend_effect_byte(), IMB_blend_color_byte(), and IMB_rectblend().
MINLINE void blend_color_vividlight_float | ( | float | dst[4], |
const float | src1[4], | ||
const float | src2[4] | ||
) |
Definition at line 942 of file math_color_blend_inline.c.
References copy_v4_v4(), max_ff(), and min_ff().
Referenced by do_blend_effect_float(), IMB_blend_color_float(), and IMB_rectblend().