Blender V5.0
math_color_blend_inline.cc File Reference
#include "BLI_math_base.h"
#include "BLI_math_color_blend.h"
#include "BLI_math_color.h"
#include "BLI_math_vector.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

Functions

MINLINE void blend_color_mix_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_add_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_sub_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_mul_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_lighten_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_darken_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_erase_alpha_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_add_alpha_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_overlay_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_hardlight_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_burn_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_linearburn_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_dodge_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_screen_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_softlight_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_pinlight_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_linearlight_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_vividlight_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_difference_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_exclusion_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_color_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_hue_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_saturation_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_luminosity_byte (uchar dst[4], const uchar src1[4], const uchar src2[4])
MINLINE void blend_color_interpolate_byte (uchar dst[4], const uchar src1[4], const uchar src2[4], float ft)
MINLINE void blend_color_mix_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_add_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_sub_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_mul_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_lighten_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_darken_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_erase_alpha_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_add_alpha_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_overlay_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_hardlight_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_burn_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_linearburn_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_dodge_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_screen_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_softlight_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_pinlight_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_linearlight_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_vividlight_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_difference_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_exclusion_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_color_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_hue_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_saturation_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_luminosity_float (float dst[4], const float src1[4], const float src2[4])
MINLINE void blend_color_interpolate_float (float dst[4], const float src1[4], const float src2[4], float t)

Macro Definition Documentation

◆ __MATH_COLOR_BLEND_INLINE_C__

#define __MATH_COLOR_BLEND_INLINE_C__

Definition at line 19 of file math_color_blend_inline.cc.

◆ EPS_ALPHA

#define EPS_ALPHA   0.0005f

◆ EPS_SATURATION

#define EPS_SATURATION   0.0005f

Definition at line 22 of file math_color_blend_inline.cc.

Function Documentation

◆ blend_color_add_alpha_byte()

MINLINE void blend_color_add_alpha_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_add_alpha_float()

MINLINE void blend_color_add_alpha_float ( float dst[4],
const float src1[4],
const float src2[4] )

Definition at line 728 of file math_color_blend_inline.cc.

References copy_v4_v4(), EPS_ALPHA, min_ff(), and MINLINE.

Referenced by IMB_blend_color_float(), and IMB_rectblend().

◆ blend_color_add_byte()

MINLINE void blend_color_add_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_add_float()

◆ blend_color_burn_byte()

MINLINE void blend_color_burn_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_burn_float()

MINLINE void blend_color_burn_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_color_byte()

MINLINE void blend_color_color_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_color_float()

MINLINE void blend_color_color_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_darken_byte()

MINLINE void blend_color_darken_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_darken_float()

MINLINE void blend_color_darken_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_difference_byte()

MINLINE void blend_color_difference_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_difference_float()

MINLINE void blend_color_difference_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_dodge_byte()

MINLINE void blend_color_dodge_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_dodge_float()

MINLINE void blend_color_dodge_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_erase_alpha_byte()

MINLINE void blend_color_erase_alpha_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_erase_alpha_float()

MINLINE void blend_color_erase_alpha_float ( float dst[4],
const float src1[4],
const float src2[4] )

Definition at line 704 of file math_color_blend_inline.cc.

References copy_v4_v4(), EPS_ALPHA, max_ff(), and MINLINE.

Referenced by IMB_blend_color_float(), and IMB_rectblend().

◆ blend_color_exclusion_byte()

MINLINE void blend_color_exclusion_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_exclusion_float()

MINLINE void blend_color_exclusion_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_hardlight_byte()

MINLINE void blend_color_hardlight_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_hardlight_float()

MINLINE void blend_color_hardlight_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_hue_byte()

MINLINE void blend_color_hue_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_hue_float()

MINLINE void blend_color_hue_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_interpolate_byte()

MINLINE void blend_color_interpolate_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4],
float ft )

◆ blend_color_interpolate_float()

◆ blend_color_lighten_byte()

MINLINE void blend_color_lighten_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_lighten_float()

MINLINE void blend_color_lighten_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_linearburn_byte()

MINLINE void blend_color_linearburn_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_linearburn_float()

MINLINE void blend_color_linearburn_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_linearlight_byte()

MINLINE void blend_color_linearlight_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_linearlight_float()

MINLINE void blend_color_linearlight_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_luminosity_byte()

MINLINE void blend_color_luminosity_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_luminosity_float()

MINLINE void blend_color_luminosity_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_mix_byte()

◆ blend_color_mix_float()

◆ blend_color_mul_byte()

MINLINE void blend_color_mul_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_mul_float()

MINLINE void blend_color_mul_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_overlay_byte()

MINLINE void blend_color_overlay_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_overlay_float()

MINLINE void blend_color_overlay_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_pinlight_byte()

MINLINE void blend_color_pinlight_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_pinlight_float()

MINLINE void blend_color_pinlight_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_saturation_byte()

MINLINE void blend_color_saturation_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_saturation_float()

MINLINE void blend_color_saturation_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_screen_byte()

MINLINE void blend_color_screen_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_screen_float()

MINLINE void blend_color_screen_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_softlight_byte()

MINLINE void blend_color_softlight_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_softlight_float()

MINLINE void blend_color_softlight_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_sub_byte()

MINLINE void blend_color_sub_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_sub_float()

MINLINE void blend_color_sub_float ( float dst[4],
const float src1[4],
const float src2[4] )

◆ blend_color_vividlight_byte()

MINLINE void blend_color_vividlight_byte ( uchar dst[4],
const uchar src1[4],
const uchar src2[4] )

◆ blend_color_vividlight_float()

MINLINE void blend_color_vividlight_float ( float dst[4],
const float src1[4],
const float src2[4] )