108 float sample_opacity_scale,
130 float center_x,
float center_y,
131 float opacity_multiplier);
148 float center_x,
float center_y,
149 float opacity_multiplier,
150 const float background_rgb[3]);
int width
Definition bilateral.h:1
int height
Definition bilateral.h:1
gboolean dt_drawlayer_brush_rasterize(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:636
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:828
dt_drawlayer_brush_mode_t dt_iop_drawlayer_brush_mode_t
Definition brush.h:57
dt_drawlayer_brush_mode_t
Pixel blending behavior used while stamping a dab.
Definition brush.h:49
@ DT_DRAWLAYER_BRUSH_MODE_ERASE
Definition brush.h:51
@ DT_DRAWLAYER_BRUSH_MODE_PAINT
Definition brush.h:50
@ DT_DRAWLAYER_BRUSH_MODE_BLUR
Definition brush.h:52
@ DT_DRAWLAYER_BRUSH_MODE_SMUDGE
Definition brush.h:53
dt_drawlayer_brush_shape_t dt_iop_drawlayer_brush_shape_t
Definition brush.h:56
dt_drawlayer_brush_shape_t
Supported analytic fall-off profiles for brush alpha.
Definition brush.h:40
@ DT_DRAWLAYER_BRUSH_SHAPE_SIGMOIDAL
Definition brush.h:44
@ DT_DRAWLAYER_BRUSH_SHAPE_GAUSSIAN
Definition brush.h:42
@ DT_DRAWLAYER_BRUSH_SHAPE_LINEAR
Definition brush.h:41
@ DT_DRAWLAYER_BRUSH_SHAPE_QUADRATIC
Definition brush.h:43
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:775
Fully resolved input dab descriptor.
Definition brush.h:66
float flow
Definition brush.h:77
float x
Definition brush.h:67
float sample_opacity_scale
Definition brush.h:75
float radius
Definition brush.h:71
float display_color[3]
Definition brush.h:83
float wx
Definition brush.h:69
int mode
Definition brush.h:85
uint32_t stroke_batch
Definition brush.h:86
int shape
Definition brush.h:84
float color[4]
Definition brush.h:82
float y
Definition brush.h:68
float sprinkles
Definition brush.h:78
uint8_t stroke_pos
Definition brush.h:87
float opacity
Definition brush.h:76
float sprinkle_coarseness
Definition brush.h:80
float sample_spacing
Definition brush.h:74
float hardness
Definition brush.h:81
float sprinkle_size
Definition brush.h:79
float dir_x
Definition brush.h:72
float dir_y
Definition brush.h:73
float wy
Definition brush.h:70
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