Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
imageop.h File Reference
#include <gmodule.h>
#include <gtk/gtk.h>
#include <sched.h>
#include <stdint.h>
#include "common/darktable.h"
#include "common/introspection.h"
#include "common/gui_module_api.h"
#include "common/opencl.h"
#include "control/settings.h"
#include "develop/pixelpipe.h"
#include "dtgtk/togglebutton.h"
#include "gui/gtk.h"
#include "iop/iop_api.h"
+ Include dependency graph for imageop.h:

Go to the source code of this file.

Data Structures

struct  dt_iop_roi_t
 
struct  dt_iop_gui_data_t
 
struct  dt_iop_module_so_t
 
struct  dt_iop_module_t
 

Macros

#define INCLUDE_API_FROM_MODULE_H
 
#define INCLUDE_API_FROM_MODULE_H
 
#define IOP_GUI_ALLOC(module)    (dt_iop_##module##_gui_data_t *)_iop_gui_alloc(self,sizeof(dt_iop_##module##_gui_data_t))
 
#define IOP_GUI_FREE    dt_pthread_mutex_destroy(&self->gui_lock);if(self->gui_data){dt_free_align(self->gui_data);} self->gui_data = NULL
 
#define dt_omploop_sfence()   dt_sfence()
 

Typedefs

typedef struct dt_iop_roi_t dt_iop_roi_t
 
typedef enum dt_iop_module_header_icons_t dt_iop_module_header_icons_t
 
typedef enum dt_iop_group_t dt_iop_group_t
 
typedef enum dt_iop_tags_t dt_iop_tags_t
 
typedef enum dt_iop_flags_t dt_iop_flags_t
 
typedef struct dt_iop_gui_data_t dt_iop_gui_data_t
 
typedef void dt_iop_data_t
 
typedef void dt_iop_global_data_t
 
typedef enum dt_dev_request_colorpick_flags_t dt_dev_request_colorpick_flags_t
 
typedef enum dt_iop_colorspace_type_t dt_iop_colorspace_type_t
 
typedef struct dt_iop_module_so_t dt_iop_module_so_t
 
typedef struct dt_iop_module_t dt_iop_module_t
 

Enumerations

enum  dt_iop_module_header_icons_t {
  IOP_MODULE_SWITCH = 0 ,
  IOP_MODULE_ICON ,
  IOP_MODULE_LABEL ,
  IOP_MODULE_MASK ,
  IOP_MODULE_INSTANCE ,
  IOP_MODULE_RESET ,
  IOP_MODULE_PRESETS ,
  IOP_MODULE_LAST
}
 
enum  dt_iop_group_t {
  IOP_GROUP_NONE = 0 ,
  IOP_GROUP_TONES = 1 ,
  IOP_GROUP_FILM = 2 ,
  IOP_GROUP_COLOR = 3 ,
  IOP_GROUP_REPAIR = 4 ,
  IOP_GROUP_SHARPNESS = 5 ,
  IOP_GROUP_EFFECTS = 6 ,
  IOP_GROUP_TECHNICAL = 7 ,
  IOP_GROUP_LAST
}
 
enum  dt_iop_tags_t {
  IOP_TAG_NONE = 0 ,
  IOP_TAG_DISTORT = 1 << 0 ,
  IOP_TAG_DECORATION = 1 << 1 ,
  IOP_TAG_CLIPPING = 1 << 2
}
 
enum  dt_iop_flags_t {
  IOP_FLAGS_NONE = 0 ,
  IOP_FLAGS_INCLUDE_IN_STYLES = 1 << 0 ,
  IOP_FLAGS_SUPPORTS_BLENDING = 1 << 1 ,
  IOP_FLAGS_DEPRECATED = 1 << 2 ,
  IOP_FLAGS_ALLOW_TILING = 1 << 3 ,
  IOP_FLAGS_HIDDEN = 1 << 4 ,
  IOP_FLAGS_TILING_FULL_ROI = 1 << 5 ,
  IOP_FLAGS_ONE_INSTANCE = 1 << 6 ,
  IOP_FLAGS_PREVIEW_NON_OPENCL = 1 << 7 ,
  IOP_FLAGS_NO_HISTORY_STACK = 1 << 8 ,
  IOP_FLAGS_NO_MASKS = 1 << 9 ,
  IOP_FLAGS_FENCE = 1 << 10 ,
  IOP_FLAGS_UNSAFE_COPY = 1 << 11 ,
  IOP_FLAGS_GUIDES_SPECIAL_DRAW = 1 << 12 ,
  IOP_FLAGS_INTERNAL_MASKS = 1 << 13
}
 
enum  dt_dev_request_colorpick_flags_t {
  DT_REQUEST_COLORPICK_OFF = 0 ,
  DT_REQUEST_COLORPICK_MODULE = 1
}
 
enum  dt_iop_colorspace_type_t {
  IOP_CS_NONE = -1 ,
  IOP_CS_RAW = 0 ,
  IOP_CS_LAB = 1 ,
  IOP_CS_RGB = 2 ,
  IOP_CS_LCH = 3 ,
  IOP_CS_HSL = 4 ,
  IOP_CS_JZCZHZ = 5
}
 

Functions

void dt_iop_load_modules_so (void)
 
void dt_iop_unload_modules_so (void)
 
int dt_iop_load_module_by_so (dt_iop_module_t *module, dt_iop_module_so_t *so, struct dt_develop_t *dev)
 
GList * dt_iop_load_modules_ext (struct dt_develop_t *dev, gboolean no_image)
 
GList * dt_iop_load_modules (struct dt_develop_t *dev)
 
int dt_iop_load_module (dt_iop_module_t *module, dt_iop_module_so_t *module_so, struct dt_develop_t *dev)
 
void dt_iop_cleanup_module (dt_iop_module_t *module)
 
void dt_iop_init_pipe (struct dt_iop_module_t *module, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece)
 
gboolean dt_iop_so_is_hidden (dt_iop_module_so_t *module)
 
gboolean dt_iop_is_hidden (dt_iop_module_t *module)
 
static void dt_iop_gui_enter_critical_section (dt_iop_module_t *const module) ACQUIRE(&module -> gui_lock)
 
static void dt_iop_gui_leave_critical_section (dt_iop_module_t *const module) RELEASE(&module -> gui_lock)
 
void dt_iop_gui_cleanup_module (dt_iop_module_t *module)
 
void dt_iop_gui_set_enable_button (dt_iop_module_t *module)
 
void dt_iop_gui_update (dt_iop_module_t *module)
 
void dt_iop_gui_reset (dt_iop_module_t *module)
 
void dt_iop_gui_set_expanded (dt_iop_module_t *module, gboolean expanded, gboolean collapse_others)
 
void dt_iop_gui_update_expanded (dt_iop_module_t *module)
 
dt_iop_module_tdt_iop_gui_duplicate (dt_iop_module_t *base, gboolean copy_params)
 
void dt_iop_gui_update_header (dt_iop_module_t *module)
 
void dt_iop_commit_params (dt_iop_module_t *module, dt_iop_params_t *params, struct dt_develop_blend_params_t *blendop_params, struct dt_dev_pixelpipe_t *pipe, struct dt_dev_pixelpipe_iop_t *piece)
 
void dt_iop_commit_blend_params (dt_iop_module_t *module, const struct dt_develop_blend_params_t *blendop_params)
 
void dt_iop_set_mask_mode (dt_iop_module_t *module, int mask_mode)
 
void dt_iop_gui_set_expander (dt_iop_module_t *module)
 
GtkWidget * dt_iop_gui_get_widget (dt_iop_module_t *module)
 
GtkWidget * dt_iop_gui_get_pluginui (dt_iop_module_t *module)
 
void dt_iop_request_focus (dt_iop_module_t *module)
 
void dt_iop_default_init (dt_iop_module_t *module)
 
void dt_iop_load_default_params (dt_iop_module_t *module)
 
void dt_iop_gui_init (dt_iop_module_t *module)
 
void dt_iop_reload_defaults (dt_iop_module_t *module)
 
void dt_iop_nap (int32_t usec)
 
dt_iop_module_tdt_iop_get_colorout_module (void)
 
dt_iop_module_tdt_iop_get_module_from_list (GList *iop_list, const char *op)
 
dt_iop_module_tdt_iop_get_module (const char *op)
 
dt_iop_module_tdt_iop_get_module_by_op_priority (GList *modules, const char *operation, const int multi_priority)
 
dt_iop_module_tdt_iop_get_module_by_instance_name (GList *modules, const char *operation, const char *multi_name)
 
dt_iop_module_tdt_iop_get_module_preferred_instance (dt_iop_module_so_t *module)
 
gboolean dt_iop_is_first_instance (GList *modules, dt_iop_module_t *module)
 
int dt_iop_get_module_flags (const char *op)
 
const gchar * dt_iop_get_localized_name (const gchar *op)
 
const gchar * dt_iop_get_localized_aliases (const gchar *op)
 
void dt_iop_update_multi_priority (dt_iop_module_t *module, int new_priority)
 
gboolean dt_iop_is_raster_mask_used (dt_iop_module_t *module, int id)
 
dt_iop_module_tdt_iop_gui_get_previous_visible_module (dt_iop_module_t *module)
 
dt_iop_module_tdt_iop_gui_get_next_visible_module (dt_iop_module_t *module)
 
gboolean dt_iop_gui_module_is_visible (dt_iop_module_t *module)
 
void dt_iop_set_darktable_iop_table ()
 
void dt_iop_refresh_center (dt_iop_module_t *module)
 
void dt_iop_refresh_preview (dt_iop_module_t *module)
 
void dt_iop_queue_history_update (dt_iop_module_t *module, gboolean extend_prior)
 
void dt_iop_cancel_history_update (dt_iop_module_t *module)
 
void dt_iop_add_remove_mask_indicator (dt_iop_module_t *module)
 
const char ** dt_iop_set_description (dt_iop_module_t *module, const char *main_text, const char *purpose, const char *input, const char *process, const char *output)
 
static dt_iop_gui_data_t_iop_gui_alloc (dt_iop_module_t *module, size_t size)
 
gboolean dt_iop_have_required_input_format (const int required_ch, struct dt_iop_module_t *const module, const int actual_pipe_ch, const void *const __restrict__ ivoid, void *const __restrict__ ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out)
 
void dt_iop_gui_rename_module (dt_iop_module_t *module)
 
void dt_iop_gui_changed (dt_iop_module_t *module, GtkWidget *widget, gpointer data)
 
void dt_bauhaus_update_module (dt_iop_module_t *self)
 
void dt_bauhaus_value_changed_default_callback (GtkWidget *widget)
 
void dt_iop_compute_module_hash (dt_iop_module_t *module, GList *masks)
 
gboolean dt_iop_check_modules_equal (dt_iop_module_t *mod_1, dt_iop_module_t *mod_2)
 
gboolean dt_iop_get_cache_bypass (dt_iop_module_t *module)
 
void dt_iop_set_cache_bypass (dt_iop_module_t *module, gboolean state)
 
static void dt_sfence ()
 

Macro Definition Documentation

◆ dt_omploop_sfence

#define dt_omploop_sfence ( )    dt_sfence()

◆ INCLUDE_API_FROM_MODULE_H [1/2]

#define INCLUDE_API_FROM_MODULE_H

◆ INCLUDE_API_FROM_MODULE_H [2/2]

#define INCLUDE_API_FROM_MODULE_H

◆ IOP_GUI_ALLOC

#define IOP_GUI_ALLOC (   module)     (dt_iop_##module##_gui_data_t *)_iop_gui_alloc(self,sizeof(dt_iop_##module##_gui_data_t))

◆ IOP_GUI_FREE

#define IOP_GUI_FREE    dt_pthread_mutex_destroy(&self->gui_lock);if(self->gui_data){dt_free_align(self->gui_data);} self->gui_data = NULL

Typedef Documentation

◆ dt_dev_request_colorpick_flags_t

◆ dt_iop_colorspace_type_t

colorspace enums, must be in synch with dt_iop_colorspace_type_t in color_conversion.cl

◆ dt_iop_data_t

◆ dt_iop_flags_t

module tags

◆ dt_iop_global_data_t

◆ dt_iop_group_t

module group

◆ dt_iop_gui_data_t

◆ dt_iop_module_header_icons_t

◆ dt_iop_module_so_t

part of the module which only contains the cached dlopen stuff.

◆ dt_iop_module_t

◆ dt_iop_roi_t

typedef struct dt_iop_roi_t dt_iop_roi_t

region of interest

◆ dt_iop_tags_t

module tags

Enumeration Type Documentation

◆ dt_dev_request_colorpick_flags_t

color picker request

Enumerator
DT_REQUEST_COLORPICK_OFF 
DT_REQUEST_COLORPICK_MODULE 

◆ dt_iop_colorspace_type_t

colorspace enums, must be in synch with dt_iop_colorspace_type_t in color_conversion.cl

Enumerator
IOP_CS_NONE 
IOP_CS_RAW 
IOP_CS_LAB 
IOP_CS_RGB 
IOP_CS_LCH 
IOP_CS_HSL 
IOP_CS_JZCZHZ 

◆ dt_iop_flags_t

module tags

Enumerator
IOP_FLAGS_NONE 
IOP_FLAGS_INCLUDE_IN_STYLES 

Flag for the iop module to be enabled/included by default when creating a style

IOP_FLAGS_SUPPORTS_BLENDING 
IOP_FLAGS_DEPRECATED 
IOP_FLAGS_ALLOW_TILING 
IOP_FLAGS_HIDDEN 
IOP_FLAGS_TILING_FULL_ROI 
IOP_FLAGS_ONE_INSTANCE 
IOP_FLAGS_PREVIEW_NON_OPENCL 
IOP_FLAGS_NO_HISTORY_STACK 
IOP_FLAGS_NO_MASKS 
IOP_FLAGS_FENCE 
IOP_FLAGS_UNSAFE_COPY 
IOP_FLAGS_GUIDES_SPECIAL_DRAW 
IOP_FLAGS_INTERNAL_MASKS 

◆ dt_iop_group_t

module group

Enumerator
IOP_GROUP_NONE 
IOP_GROUP_TONES 
IOP_GROUP_FILM 
IOP_GROUP_COLOR 
IOP_GROUP_REPAIR 
IOP_GROUP_SHARPNESS 
IOP_GROUP_EFFECTS 
IOP_GROUP_TECHNICAL 
IOP_GROUP_LAST 

◆ dt_iop_module_header_icons_t

Enumerator
IOP_MODULE_SWITCH 
IOP_MODULE_ICON 
IOP_MODULE_LABEL 
IOP_MODULE_MASK 
IOP_MODULE_INSTANCE 
IOP_MODULE_RESET 
IOP_MODULE_PRESETS 
IOP_MODULE_LAST 

◆ dt_iop_tags_t

module tags

Enumerator
IOP_TAG_NONE 
IOP_TAG_DISTORT 
IOP_TAG_DECORATION 
IOP_TAG_CLIPPING 

Function Documentation

◆ _iop_gui_alloc()

static dt_iop_gui_data_t * _iop_gui_alloc ( dt_iop_module_t module,
size_t  size 
)
inlinestatic

◆ dt_bauhaus_update_module()

◆ dt_bauhaus_value_changed_default_callback()

◆ dt_iop_add_remove_mask_indicator()

◆ dt_iop_cancel_history_update()

void dt_iop_cancel_history_update ( dt_iop_module_t module)

cancel any previously-queued history update

References dt_iop_module_t::timeout_handle.

Referenced by gui_cleanup(), gui_cleanup(), gui_update(), and gui_update().

◆ dt_iop_check_modules_equal()

gboolean dt_iop_check_modules_equal ( dt_iop_module_t mod_1,
dt_iop_module_t mod_2 
)

◆ dt_iop_cleanup_module()

◆ dt_iop_commit_blend_params()

void dt_iop_commit_blend_params ( dt_iop_module_t module,
const struct dt_develop_blend_params_t blendop_params 
)

◆ dt_iop_commit_params()

◆ dt_iop_compute_module_hash()

void dt_iop_compute_module_hash ( dt_iop_module_t module,
GList *  masks 
)

Uniform way of getting the full state hash of user-defined parameters, including masks and blending. Writes the value in module->hash, also writes the module->blendop_hash for masking and blending.

WARNING: doesn't take into account parameters dynamically set at runtime.

WARNING: if computing module hash in HISTORY order, there is no guaranty that previous modules in PIPELINE are also previous modules in HISTORY, so their blendops & masks may not be inited yet, meaning the blendop_hash we compute here will be garbage. In particular, (legacy) history compression algo can mess with history order, such that history entries of raster mask providers can end up after history entries of raster mask consumers. Our current history compression does a pipeline snapshot in pipeline order, for user-changed modules. (Raster masks providers and consumers will all be user-changed modules).

IF COMPUTING HASHES FOR PIPE CACHE INVALIDATION, that means we need to redo blendop/module hash recomputation at commit_params time, when pushing history to pipeline (but mandatorily in pipeline order).

IF COMPUTING HASHES FOR HISTORY CONSISTENCY (auto-saving when needed), since all we care is user params, it doesn't matter.

References dt_iop_module_t::blendop_hash, dt_hash(), dt_iop_compute_blendop_hash(), dt_iop_module_t::enabled, dt_iop_module_t::instance, dt_iop_module_t::iop_order, dt_iop_module_t::multi_priority, dt_iop_module_t::op, dt_iop_module_t::params, and dt_iop_module_t::params_size.

Referenced by _dt_dev_modules_reload_defaults(), _history_to_module(), _process_history_db_entry(), commit_params(), dt_dev_add_history_item_ext(), dt_iop_commit_params(), and dt_iop_load_default_params().

◆ dt_iop_default_init()

◆ dt_iop_get_cache_bypass()

gboolean dt_iop_get_cache_bypass ( dt_iop_module_t module)

Set bypass to TRUE if the pipeline cache should be bypassed temporarily for this module and the next, for example doing interactive GUI operations.

Pipeline cache consistency is ensured by hashing the internal module params and comparing that hash with the previously-known one from the cache line. If something outside the module is making the cache temporarily invalid, this is the way to go. The previous module's output may be fetched from cache if available, which is faster than simply disabling cache at all.

This is designed for mask previews, which have a special handling, in pipeline, where modules between the mask preview requesting module and the gamma.c module are bypassed, so the alpha channel is passed-through to be rendered by gamma.c without processing intermediate modules. This doesn't work if cache is enabled.

The pixelpipe code will propagate the bypass state to downstream pipe->pieces, so all modules coming later than this one in the pipeline will also have their cache disabled. That's how mask preview can work, because the pipeline is called in a recursive way, starting from the end.

Only one module from dev->iop list (modules tied to GUI) is allowed to bypass the cache at a time, other modules will lose their bypass flag if set.

◆ dt_iop_get_colorout_module()

dt_iop_module_t * dt_iop_get_colorout_module ( void  )

get module by name and colorout, works only with a dev mode

References darktable, darktable_t::develop, dt_iop_get_module_from_list(), and dt_develop_t::iop.

◆ dt_iop_get_localized_aliases()

const gchar * dt_iop_get_localized_aliases ( const gchar *  op)

◆ dt_iop_get_localized_name()

const gchar * dt_iop_get_localized_name ( const gchar *  op)

returns the localized plugin name for a given op name. must not be freed.

References darktable, darktable_t::iop, and dt_iop_module_t::op.

Referenced by dt_add_hist(), dt_history_get_items(), dt_history_get_items_as_string(), and dt_styles_get_item_list().

◆ dt_iop_get_module()

dt_iop_module_t * dt_iop_get_module ( const char *  op)

◆ dt_iop_get_module_by_instance_name()

dt_iop_module_t * dt_iop_get_module_by_instance_name ( GList *  modules,
const char *  operation,
const char *  multi_name 
)

returns module with op + multi_name or NULL if not found on the list, if multi_name == NULL do not check for it

References m, dt_iop_module_t::multi_name, and dt_iop_module_t::op.

Referenced by dt_ioppr_update_for_entries().

◆ dt_iop_get_module_by_op_priority()

dt_iop_module_t * dt_iop_get_module_by_op_priority ( GList *  modules,
const char *  operation,
const int  multi_priority 
)

returns module with op + multi_priority or NULL if not found on the list, if multi_priority == -1 do not check for it

References m, dt_iop_module_t::multi_priority, and dt_iop_module_t::op.

Referenced by dt_history_merge_module_into_history(), dt_ioppr_resync_iop_list(), and dt_styles_apply_style_item().

◆ dt_iop_get_module_flags()

int dt_iop_get_module_flags ( const char *  op)

get module flags, works in dev and lt mode

References darktable, and darktable_t::iop.

Referenced by dt_gui_hist_dialog_new().

◆ dt_iop_get_module_from_list()

dt_iop_module_t * dt_iop_get_module_from_list ( GList *  iop_list,
const char *  op 
)

◆ dt_iop_get_module_preferred_instance()

◆ dt_iop_gui_changed()

◆ dt_iop_gui_cleanup_module()

void dt_iop_gui_cleanup_module ( dt_iop_module_t module)

◆ dt_iop_gui_duplicate()

◆ dt_iop_gui_enter_critical_section()

static void dt_iop_gui_enter_critical_section ( dt_iop_module_t *const  module) & -> gui_lock)
inlinestatic

enter a GUI critical section by acquiring gui_data->lock

References dt_pthread_mutex_lock(), and dt_iop_roi_t::y.

Referenced by _auto_levels_callback(), _auto_levels_callback(), _auto_set_exposure(), _auto_set_illuminant(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_started_callback(), _do_get_structure_auto(), _do_get_structure_lines(), _do_get_structure_quad(), _draw(), _event_draw(), _get_structure(), _init_drawing(), _preview_pipe_finished_callback(), _process_common_setup(), _select_region_toggled_callback(), _select_region_toggled_callback(), _spot_settings_changed_callback(), area_button_release(), area_draw(), area_enter_notify(), area_leave_notify(), area_motion_notify(), auto_adjust_contrast_boost(), auto_adjust_exposure_boost(), button_pressed(), button_pressed(), button_released(), button_released(), checker_changed_callback(), commit_params(), commit_params_late(), commit_profile_callback(), corrections_done(), dt_iop_zonesystem_preview_draw(), gui_cache_init(), gui_focus(), gui_init(), gui_init(), gui_post_expose(), gui_post_expose(), gui_update(), gui_update(), invalidate_luminance_cache(), masks_selection_changed(), mouse_leave(), mouse_moved(), mouse_moved(), optimize_changed_callback(), process(), process(), process(), process_clusters(), process_common_cleanup(), process_common_setup(), process_drago(), process_internal(), reload_defaults(), rt_auto_levels_callback(), rt_curr_scale_update(), rt_develop_ui_pipe_finished_callback(), rt_display_wavelet_scale_callback(), run_profile_callback(), run_validation_callback(), safety_changed_callback(), scrolled(), start_profiling_callback(), switch_cursors(), toneeq_process(), update_curve_lut(), and update_histogram().

◆ dt_iop_gui_get_next_visible_module()

dt_iop_module_t * dt_iop_gui_get_next_visible_module ( dt_iop_module_t module)

returns the next visible module on the module list

References dt_iop_module_t::dev, dt_iop_gui_module_is_visible(), and dt_develop_t::iop.

Referenced by _dev_module_update_multishow(), _focus_previous_module(), and _gui_moveup_callback().

◆ dt_iop_gui_get_pluginui()

GtkWidget * dt_iop_gui_get_pluginui ( dt_iop_module_t module)

get the eventbox of plugin ui in expander

References DTGTK_EXPANDER, dtgtk_expander_get_frame(), and dt_iop_module_t::expander.

Referenced by _iop_dim_all_but(), and dt_iop_request_focus().

◆ dt_iop_gui_get_previous_visible_module()

dt_iop_module_t * dt_iop_gui_get_previous_visible_module ( dt_iop_module_t module)

returns the previous visible module on the module list

References dt_iop_module_t::dev, dt_iop_gui_module_is_visible(), and dt_develop_t::iop.

Referenced by _dev_module_update_multishow(), _focus_next_module(), and _gui_movedown_callback().

◆ dt_iop_gui_get_widget()

GtkWidget * dt_iop_gui_get_widget ( dt_iop_module_t module)

get the widget of plugin ui in expander

References DTGTK_EXPANDER, dtgtk_expander_get_body(), and dt_iop_module_t::expander.

◆ dt_iop_gui_init()

◆ dt_iop_gui_leave_critical_section()

static void dt_iop_gui_leave_critical_section ( dt_iop_module_t *const  module) & -> gui_lock)
inlinestatic

leave a GUI critical section by releasing gui_data->lock

References dt_pthread_mutex_unlock(), and dt_iop_roi_t::y.

Referenced by _auto_levels_callback(), _auto_levels_callback(), _auto_set_exposure(), _auto_set_illuminant(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_finished_callback(), _develop_ui_pipe_started_callback(), _do_get_structure_auto(), _do_get_structure_lines(), _do_get_structure_quad(), _draw(), _event_draw(), _get_structure(), _init_drawing(), _preview_pipe_finished_callback(), _process_common_setup(), _select_region_toggled_callback(), _select_region_toggled_callback(), _spot_settings_changed_callback(), area_button_release(), area_draw(), area_enter_notify(), area_leave_notify(), area_motion_notify(), auto_adjust_contrast_boost(), auto_adjust_exposure_boost(), button_pressed(), button_pressed(), button_released(), button_released(), checker_changed_callback(), commit_params(), commit_params_late(), commit_profile_callback(), corrections_done(), dt_iop_zonesystem_preview_draw(), gui_cache_init(), gui_focus(), gui_init(), gui_init(), gui_post_expose(), gui_post_expose(), gui_update(), gui_update(), invalidate_luminance_cache(), masks_selection_changed(), mouse_leave(), mouse_moved(), mouse_moved(), optimize_changed_callback(), process(), process(), process(), process_clusters(), process_common_cleanup(), process_common_setup(), process_drago(), process_internal(), reload_defaults(), rt_auto_levels_callback(), rt_curr_scale_update(), rt_develop_ui_pipe_finished_callback(), rt_display_wavelet_scale_callback(), run_profile_callback(), run_validation_callback(), safety_changed_callback(), scrolled(), start_profiling_callback(), switch_cursors(), toneeq_process(), update_curve_lut(), and update_histogram().

◆ dt_iop_gui_module_is_visible()

gboolean dt_iop_gui_module_is_visible ( dt_iop_module_t module)

◆ dt_iop_gui_rename_module()

◆ dt_iop_gui_reset()

void dt_iop_gui_reset ( dt_iop_module_t module)

reset the ui to its defaults

References darktable, dt_iop_is_hidden(), darktable_t::gui, and dt_gui_gtk_t::reset.

Referenced by _gui_reset_callback().

◆ dt_iop_gui_set_enable_button()

void dt_iop_gui_set_enable_button ( dt_iop_module_t module)

updates the enable button state. (take into account module->enabled and module->hide_enable_button

References dt_iop_gui_set_enable_button_icon(), dt_iop_module_t::enabled, FALSE, dt_iop_module_t::hide_enable_button, dt_iop_module_t::off, and TRUE.

Referenced by dt_dev_add_history_item_real(), dt_iop_gui_changed(), and dt_iop_gui_update_header().

◆ dt_iop_gui_set_expanded()

◆ dt_iop_gui_set_expander()

◆ dt_iop_gui_update()

◆ dt_iop_gui_update_expanded()

void dt_iop_gui_update_expanded ( dt_iop_module_t module)

refresh iop according to set expanded state

References DTGTK_EXPANDER, dtgtk_expander_set_expanded(), and dt_iop_module_t::expander.

Referenced by dt_iop_gui_update(), and enter().

◆ dt_iop_gui_update_header()

◆ dt_iop_have_required_input_format()

gboolean dt_iop_have_required_input_format ( const int  required_ch,
struct dt_iop_module_t *const  module,
const int  actual_pipe_ch,
const void *const __restrict__  ivoid,
void *const __restrict__  ovoid,
const dt_iop_roi_t *const  roi_in,
const dt_iop_roi_t *const  roi_out 
)

check whether we have the required number of channels in the input data; if not, copy the input buffer to the output buffer, set the module's trouble message, and return FALSE

◆ dt_iop_init_pipe()

void dt_iop_init_pipe ( struct dt_iop_module_t module,
struct dt_dev_pixelpipe_t pipe,
struct dt_dev_pixelpipe_iop_t piece 
)

initialize pipe.

References dt_dev_pixelpipe_iop_t::blendop_data.

Referenced by dt_dev_pixelpipe_create_nodes().

◆ dt_iop_is_first_instance()

gboolean dt_iop_is_first_instance ( GList *  modules,
dt_iop_module_t module 
)

returns true if module is the first instance of this operation in the pipe

References m, dt_iop_module_t::op, and TRUE.

Referenced by declare_cat_on_pipe().

◆ dt_iop_is_hidden()

◆ dt_iop_is_raster_mask_used()

gboolean dt_iop_is_raster_mask_used ( dt_iop_module_t module,
int  id 
)

iterates over the users hash table and checks if a specific mask is being used

References FALSE, key, dt_iop_module_t::raster_mask, dt_iop_module_t::source, TRUE, and dt_iop_module_t::users.

Referenced by dt_develop_blend_process(), and process().

◆ dt_iop_load_default_params()

◆ dt_iop_load_module()

◆ dt_iop_load_module_by_so()

◆ dt_iop_load_modules()

GList * dt_iop_load_modules ( struct dt_develop_t dev)

◆ dt_iop_load_modules_ext()

GList * dt_iop_load_modules_ext ( struct dt_develop_t dev,
gboolean  no_image 
)

◆ dt_iop_load_modules_so()

void dt_iop_load_modules_so ( void  )

loads and inits the modules in the plugins/ directory.

References _init_module_so(), darktable, dt_iop_load_module_so(), dt_module_load_modules(), and darktable_t::iop.

Referenced by dt_init().

◆ dt_iop_nap()

void dt_iop_nap ( int32_t  usec)

allow plugins to relinquish CPU and go to sleep for some time

Referenced by dt_dev_pixelpipe_process(), dt_dev_pixelpipe_process_rec(), dt_dev_process_image_job(), dt_dev_process_preview_job(), and dt_dev_wait_hash().

◆ dt_iop_queue_history_update()

void dt_iop_queue_history_update ( dt_iop_module_t module,
gboolean  extend_prior 
)

queue a delayed call to dt_dev_add_history_item to capture module parameters

queue a delayed call of the add_history function after user interaction, to capture parameter updates (but not too often).

References dt_develop_t::average_delay, darktable, darktable_t::develop, and dt_iop_module_t::timeout_handle.

Referenced by _move_point_internal(), _move_point_internal(), _move_point_internal(), _move_point_internal(), area_motion_notify(), lowlight_motion_notify(), and rawdenoise_motion_notify().

◆ dt_iop_refresh_center()

◆ dt_iop_refresh_preview()

◆ dt_iop_reload_defaults()

◆ dt_iop_request_focus()

void dt_iop_request_focus ( dt_iop_module_t module)

requests the focus for this plugin (to draw overlays over the center image)

References darktable_t::collection, darktable, darktable_t::develop, dt_collection_hint_message(), dt_control_change_cursor(), dt_control_queue_redraw_center(), dt_gui_add_class(), dt_gui_refocus_center(), dt_gui_remove_class(), dt_iop_color_picker_reset(), dt_iop_gui_blending_lose_focus(), dt_iop_gui_get_pluginui(), dt_masks_reset_form_gui(), dt_iop_module_t::expander, FALSE, darktable_t::gui, dt_develop_t::gui_module, dt_gui_gtk_t::reset, and TRUE.

Referenced by _add_shape(), _area_button_press_callback(), _area_scroll_callback(), _auto_levels_callback(), _auto_levels_callback(), _blendop_blendif_key_press(), _blendop_blendif_showmask_clicked(), _blendop_blendif_suppress_toggled(), _blendop_masks_add_shape(), _blendop_masks_show_and_edit(), _check_deleted_instances(), _color_picker_callback_button_press(), _display_mask_callback(), _display_mask_indicator_callback(), _edit_masks(), _enter_edit_mode(), _enter_edit_mode(), _event_fit_both_button_clicked(), _event_fit_h_button_clicked(), _event_fit_v_button_clicked(), _event_structure_auto_clicked(), _event_structure_lines_clicked(), _event_structure_quad_clicked(), _focus_module(), _gui_delete_callback(), _gui_off_button_press(), _gui_set_single_expanded(), _iop_plugin_body_button_press(), _iop_plugin_header_button_press(), _lib_modulegroups_scroll(), _lib_modulegroups_update_iop_visibility(), _menu_add_shape(), _modulegroups_switch_tab_next(), _modulegroups_switch_tab_previous(), _raster_combo_populate(), _select_region_toggled_callback(), _select_region_toggled_callback(), acquire_source_button_pressed(), acquire_target_button_pressed(), area_button_press(), area_button_press(), area_button_release(), auto_adjust_contrast_boost(), auto_adjust_exposure_boost(), btn_make_radio_callback(), button_pressed(), default_iop_focus(), dt_iop_gui_duplicate(), dt_iop_levels_button_press(), dt_iop_levels_scroll(), dt_masks_iop_combo_populate(), enter(), gui_reset(), mask_callback(), notebook_button_press(), profile_changed(), rt_add_shape(), rt_auto_levels_callback(), rt_display_wavelet_scale_callback(), rt_edit_masks_callback(), rt_select_algorithm_callback(), rt_showmask_callback(), rt_suppress_callback(), rt_wdbar_button_press(), rt_wdbar_scrolled(), show_luminance_mask_callback(), start_profiling_callback(), and workicc_changed().

◆ dt_iop_set_cache_bypass()

◆ dt_iop_set_darktable_iop_table()

◆ dt_iop_set_description()

const char ** dt_iop_set_description ( dt_iop_module_t module,
const char *  main_text,
const char *  purpose,
const char *  input,
const char *  process,
const char *  output 
)

References process().

Referenced by description().

◆ dt_iop_set_mask_mode()

void dt_iop_set_mask_mode ( dt_iop_module_t module,
int  mask_mode 
)

◆ dt_iop_so_is_hidden()

gboolean dt_iop_so_is_hidden ( dt_iop_module_so_t module)

checks if iop do have an ui

References FALSE, IOP_FLAGS_HIDDEN, dt_iop_module_so_t::op, and TRUE.

Referenced by dt_iop_is_hidden().

◆ dt_iop_unload_modules_so()

void dt_iop_unload_modules_so ( void  )

cleans up the dlopen refs.

References darktable, and darktable_t::iop.

Referenced by dt_cleanup().

◆ dt_iop_update_multi_priority()

◆ dt_sfence()

static void dt_sfence ( )
inlinestatic

References dt_iop_roi_t::y.