109 float sample_opacity_scale,
131 float center_x,
float center_y,
132 float opacity_multiplier);
149 float center_x,
float center_y,
150 float opacity_multiplier,
151 const float background_rgb[3]);
int width
Definition bilateral.h:1
int height
Definition bilateral.h:1
gboolean dt_drawlayer_brush_rasterize_dab_rgbaf(const dt_drawlayer_brush_dab_t *dab, float *rgba, int width, int height, float center_x, float center_y, float opacity_multiplier, const float background_rgb[3])
Rasterize a single dab preview in linear float RGBA over an opaque background.
Definition iop/drawlayer/brush.c:850
dt_drawlayer_brush_mode_t dt_iop_drawlayer_brush_mode_t
Definition brush.h:55
dt_drawlayer_brush_mode_t
Pixel blending behavior used while stamping a dab.
Definition brush.h:47
@ DT_DRAWLAYER_BRUSH_MODE_ERASE
Definition brush.h:49
@ DT_DRAWLAYER_BRUSH_MODE_PAINT
Definition brush.h:48
@ DT_DRAWLAYER_BRUSH_MODE_BLUR
Definition brush.h:50
@ DT_DRAWLAYER_BRUSH_MODE_SMUDGE
Definition brush.h:51
dt_drawlayer_brush_shape_t dt_iop_drawlayer_brush_shape_t
Definition brush.h:54
dt_drawlayer_brush_shape_t
Supported analytic fall-off profiles for brush alpha.
Definition brush.h:38
@ DT_DRAWLAYER_BRUSH_SHAPE_SIGMOIDAL
Definition brush.h:42
@ DT_DRAWLAYER_BRUSH_SHAPE_GAUSSIAN
Definition brush.h:40
@ DT_DRAWLAYER_BRUSH_SHAPE_LINEAR
Definition brush.h:39
@ DT_DRAWLAYER_BRUSH_SHAPE_QUADRATIC
Definition brush.h:41
gboolean dt_drawlayer_brush_rasterize(const dt_drawlayer_cache_patch_t *sample_patch, dt_drawlayer_cache_patch_t *patch, float scale, const dt_drawlayer_brush_dab_t *dab, float sample_opacity_scale, dt_drawlayer_cache_patch_t *stroke_mask, struct dt_drawlayer_paint_stroke_t *stroke)
Rasterize one dab into a float RGBA buffer.
Definition iop/drawlayer/brush.c:648
gboolean dt_drawlayer_brush_rasterize_dab_argb8(const dt_drawlayer_brush_dab_t *dab, uint8_t *argb, int width, int height, int stride, float center_x, float center_y, float opacity_multiplier)
Rasterize a single dab preview into ARGB8 for GUI overlays.
Definition iop/drawlayer/brush.c:797
Fully resolved input dab descriptor.
Definition brush.h:64
float flow
Definition brush.h:75
float x
Definition brush.h:65
float sample_opacity_scale
Definition brush.h:73
float radius
Definition brush.h:69
float display_color[3]
Definition brush.h:81
float wx
Definition brush.h:67
int mode
Definition brush.h:83
uint32_t stroke_batch
Definition brush.h:84
int shape
Definition brush.h:82
float color[4]
Definition brush.h:80
float y
Definition brush.h:66
float sprinkles
Definition brush.h:76
uint8_t stroke_pos
Definition brush.h:85
float opacity
Definition brush.h:74
float sprinkle_coarseness
Definition brush.h:78
float sample_spacing
Definition brush.h:72
float hardness
Definition brush.h:79
float sprinkle_size
Definition brush.h:77
float dir_x
Definition brush.h:70
float dir_y
Definition brush.h:71
float wy
Definition brush.h:68
Generic float RGBA patch stored either in malloc memory or pixel cache.
Definition iop/drawlayer/cache.h:37
Mutable stroke runtime state owned by worker/backend code.
Definition iop/drawlayer/paint.h:100