![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Inline brush profile and mass primitives shared by paint/brush code. More...
Include dependency graph for brush_profile.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| static float | dt_drawlayer_brush_profile_clamp01 (const float v) |
| Clamp scalar value to [0, 1]. | |
| static float | dt_drawlayer_brush_transition_profile_eval (const int shape, const float t, const float inv_t) |
| Evaluate normalized edge-falloff transition profile by shape. | |
| static float | dt_drawlayer_brush_transition_mass_primitive_eval (const int shape, const float u, const float inner, const float w, const float base) |
| Evaluate integrated mass primitive of transition zone by shape. | |
| static float | dt_drawlayer_brush_profile_eval (const dt_drawlayer_brush_dab_t *dab, const float norm2) |
| Evaluate normalized brush profile at squared normalized radius. | |
| static float | dt_drawlayer_brush_mass_primitive_eval (const dt_drawlayer_brush_dab_t *dab, const float u_in) |
Evaluate radial mass primitive from center to normalized radius u_in. | |
Inline brush profile and mass primitives shared by paint/brush code.
|
inlinestatic |
Evaluate radial mass primitive from center to normalized radius u_in.
References dt_drawlayer_brush_profile_clamp01(), DT_DRAWLAYER_BRUSH_SHAPE_GAUSSIAN, dt_drawlayer_brush_transition_mass_primitive_eval(), dt_drawlayer_brush_dab_t::hardness, dt_drawlayer_brush_dab_t::radius, and dt_drawlayer_brush_dab_t::shape.
Referenced by _paint_stroke_sample_opacity_scale().
|
inlinestatic |
Clamp scalar value to [0, 1].
References v.
Referenced by dt_drawlayer_brush_mass_primitive_eval(), dt_drawlayer_brush_profile_eval(), and dt_drawlayer_brush_transition_mass_primitive_eval().
|
inlinestatic |
Evaluate normalized brush profile at squared normalized radius.
| dab | Current dab parameters. |
| norm2 | Squared normalized radius (r^2 in [0, inf)). |
References dt_drawlayer_brush_profile_clamp01(), DT_DRAWLAYER_BRUSH_SHAPE_GAUSSIAN, dt_drawlayer_brush_transition_profile_eval(), dt_drawlayer_brush_dab_t::hardness, dt_drawlayer_brush_dab_t::radius, dt_drawlayer_brush_dab_t::shape, and t.
Referenced by _paint_stroke_sample_opacity_scale(), _prepare_analytic_pixel_context(), _prepare_blur_context(), dt_drawlayer_brush_rasterize_dab_argb8(), and dt_drawlayer_brush_rasterize_dab_rgbaf().
|
inlinestatic |
Evaluate integrated mass primitive of transition zone by shape.
References delta, dt_drawlayer_brush_profile_clamp01(), DT_DRAWLAYER_BRUSH_SHAPE_LINEAR, DT_DRAWLAYER_BRUSH_SHAPE_QUADRATIC, and DT_DRAWLAYER_BRUSH_SHAPE_SIGMOIDAL.
Referenced by dt_drawlayer_brush_mass_primitive_eval().
|
inlinestatic |
Evaluate normalized edge-falloff transition profile by shape.
References DT_DRAWLAYER_BRUSH_SHAPE_LINEAR, DT_DRAWLAYER_BRUSH_SHAPE_QUADRATIC, DT_DRAWLAYER_BRUSH_SHAPE_SIGMOIDAL, and t.
Referenced by dt_drawlayer_brush_profile_eval().