![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "common/debug.h"#include "control/conf.h"#include "control/control.h"#include "develop/blend.h"#include "develop/imageop.h"#include "develop/masks.h"
Include dependency graph for group.c:Functions | |
| static dt_masks_form_t * | _group_get_child_at (dt_masks_form_t *form, const int group_index, dt_masks_form_group_t **group_entry) |
| static dt_masks_form_t * | _group_get_selected_child (dt_masks_form_t *form, dt_masks_form_gui_t *gui, dt_masks_form_group_t **group_entry) |
| static int | _group_events_mouse_scrolled (struct dt_iop_module_t *module, double x, double y, int up, const int flow, uint32_t state, dt_masks_form_t *form, int unused1, dt_masks_form_gui_t *gui, int unused, dt_masks_interaction_t interaction) |
| static gboolean | _group_events_button_pressed (struct dt_iop_module_t *module, double x, double y, double pressure, int which, int type, uint32_t state, dt_masks_form_t *form, int unused1, dt_masks_form_gui_t *gui, int unused2) |
| static int | _group_events_button_released (struct dt_iop_module_t *module, double x, double y, int which, uint32_t state, dt_masks_form_t *form, int unused1, dt_masks_form_gui_t *gui, int unused2) |
| static int | _group_events_key_pressed (struct dt_iop_module_t *module, GdkEventKey *event, dt_masks_form_t *form, int parentid, dt_masks_form_gui_t *gui, int index) |
| static int | _group_events_mouse_moved (struct dt_iop_module_t *module, double x, double y, double pressure, int which, dt_masks_form_t *form, int unused1, dt_masks_form_gui_t *gui, int unused2) |
| static void | _group_events_post_expose_draw (cairo_t *cr, float zoom_scale, dt_masks_form_t *form, dt_masks_form_gui_t *gui, int pos) |
| void | dt_group_events_post_expose (cairo_t *cr, float zoom_scale, dt_masks_form_t *form, dt_masks_form_gui_t *gui) |
| static int | _inverse_mask (const dt_iop_module_t *const module, const dt_dev_pixelpipe_iop_t *const piece, dt_masks_form_t *const form, float **buffer, int *width, int *height, int *posx, int *posy) |
| static int | _group_get_mask (const dt_iop_module_t *const module, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *const piece, dt_masks_form_t *const form, float **buffer, int *width, int *height, int *posx, int *posy) |
| static void | _combine_masks_union (float *const restrict dest, float *const restrict newmask, const size_t npixels, const float opacity, const int inverted) |
| static void | _combine_masks_intersect (float *const restrict dest, float *const restrict newmask, const size_t npixels, const float opacity, const int inverted) |
| static int | both_positive (const float val1, const float val2) |
| static void | _combine_masks_difference (float *const restrict dest, float *const restrict newmask, const size_t npixels, const float opacity, const int inverted) |
| static void | _combine_masks_exclusion (float *const restrict dest, float *const restrict newmask, const size_t npixels, const float opacity, const int inverted) |
| static int | _group_get_mask_roi (const dt_iop_module_t *const restrict module, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *const restrict piece, dt_masks_form_t *const form, const dt_iop_roi_t *const roi, float *const restrict buffer) |
| int | dt_masks_group_render_roi (dt_iop_module_t *module, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, dt_masks_form_t *form, const dt_iop_roi_t *roi, float *buffer) |
| static void | _group_duplicate_points (dt_develop_t *const dev, dt_masks_form_t *const base, dt_masks_form_t *const dest) |
| static gboolean | _group_get_gravity_center (const dt_masks_form_t *form, float center[2], float *area) |
Variables | |
| const dt_masks_functions_t | dt_masks_functions_group |
|
static |
References both_positive().
Referenced by _group_get_mask_roi().
|
static |
References both_positive(), and MAX.
Referenced by _group_get_mask_roi().
|
static |
Referenced by _group_get_mask_roi().
|
static |
References MAX.
Referenced by _group_get_mask_roi().
|
static |
|
static |
References FALSE.
|
static |
|
static |
References _group_get_selected_child(), dt_masks_form_cancel_creation(), dt_masks_gui_delete(), FALSE, dt_masks_form_gui_t::group_selected, and dt_masks_form_group_t::parentid.
|
static |
|
static |
|
static |
|
static |
References darktable, darktable_t::develop, dt_masks_get_from_id(), dt_masks_form_group_t::formid, and dt_masks_form_t::points.
Referenced by _group_events_post_expose_draw(), and _group_get_selected_child().
|
static |
|
static |
References _inverse_mask(), b, cleanup(), darktable, dt_iop_module_t::dev, DT_DEBUG_MASKS, DT_DEBUG_PERF, dt_free, dt_get_wtime(), dt_masks_get_from_id(), dt_masks_get_mask(), DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_UNION, dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dt_print(), dt_masks_form_group_t::formid, h, height, i, MAX, MIN, dt_masks_form_t::name, dt_masks_form_group_t::opacity, dt_masks_form_t::points, r, dt_masks_form_group_t::state, t, darktable_t::unmuted, v, width, and x.
|
static |
References _combine_masks_difference(), _combine_masks_exclusion(), _combine_masks_intersect(), _combine_masks_union(), darktable, DT_DEBUG_MASKS, DT_DEBUG_PERF, dt_get_wtime(), dt_masks_get_from_id(), dt_masks_get_mask_roi(), DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_IS_COMBINE_OP, DT_MASKS_STATE_UNION, dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dt_print(), dt_masks_form_group_t::formid, height, dt_iop_roi_t::height, i, dt_masks_form_group_t::opacity, dt_masks_form_t::points, dt_masks_form_group_t::state, darktable_t::unmuted, width, and dt_iop_roi_t::width.
|
static |
References _group_get_child_at(), and dt_masks_form_gui_t::group_selected.
Referenced by _group_events_key_pressed().
|
static |
References dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, height, dt_dev_pixelpipe_iop_t::iheight, dt_dev_pixelpipe_iop_t::iwidth, MAX, MIN, row, and width.
Referenced by _group_get_mask().
|
inlinestatic |
Referenced by _combine_masks_difference(), and _combine_masks_exclusion().
| void dt_group_events_post_expose | ( | cairo_t * | cr, |
| float | zoom_scale, | ||
| dt_masks_form_t * | form, | ||
| dt_masks_form_gui_t * | gui | ||
| ) |
References _group_events_post_expose_draw(), dt_masks_form_gui_t::group_selected, and dt_masks_form_t::points.
Referenced by dt_masks_events_post_expose().
| int dt_masks_group_render_roi | ( | dt_iop_module_t * | module, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| dt_masks_form_t * | form, | ||
| const dt_iop_roi_t * | roi, | ||
| float * | buffer | ||
| ) |
References darktable, DT_DEBUG_MASKS, DT_DEBUG_PERF, dt_get_wtime(), dt_masks_get_mask_roi(), dt_print(), and darktable_t::unmuted.
Referenced by _develop_blend_init_drawn_mask().
| const dt_masks_functions_t dt_masks_functions_group |
Referenced by dt_masks_create().