![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <assert.h>#include <stddef.h>#include <glib/gprintf.h>#include <inttypes.h>#include <math.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <unistd.h>#include "develop/imageop_gui.h"#include "widgets/widget_settings.h"#include "system/atomic.h"#include "history/history.h"#include "caches/image_cache.h"#include "caches/mipmap_cache.h"#include "metadata/tags.h"#include "common/conf.h"#include "control/control.h"#include "control/signal.h"#include "control/jobs.h"#include "develop/blend.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/lightroom.h"#include "develop/masks.h"#include "caches/pixelpipe_cache.h"#include "gui/application.h"#include "develop/geometry/geometry.h"#include "develop/gui_throttle.h"#include "libs/colorpicker.h"#include "widgets/label.h"#include "widgets/widget_style.h"#include "gui/screen_metrics.h"
Include dependency graph for develop.c:Go to the source code of this file.
Data Structures | |
| struct | dt_dev_multishow_state_t |
Macros | |
| #define | DT_IOP_ORDER_INFO (dt_get_debug_flags() & DT_DEBUG_IOPORDER) |
Typedefs | |
| typedef struct dt_dev_multishow_state_t | dt_dev_multishow_state_t |
Functions | |
| GList * | dt_dev_load_modules (dt_develop_t *dev) |
| void | dt_dev_init (dt_develop_t *dev, int32_t gui_attached) |
| void | dt_dev_cleanup (dt_develop_t *dev) |
| static gboolean | _update_darkroom_roi (dt_develop_t *dev, dt_dev_pixelpipe_t *pipe, int *x, int *y, int *wd, int *ht, float *scale) |
| static gboolean | _darkroom_pipeline_inputs_ready (const dt_develop_t *dev) |
| int | dt_dev_get_thumbnail_size (dt_develop_t *dev) |
| gboolean | dt_dev_pixelpipe_has_preview_output (const dt_develop_t *dev, const dt_dev_pixelpipe_t *pipe, const dt_iop_roi_t *roi) |
| gboolean | dt_dev_pipelines_share_preview_output (dt_develop_t *dev) |
| Tell whether the darkroom main and preview pipes currently target the same GUI output. | |
| static void | dt_dev_resync_mipmap_cache (dt_develop_t *dev, dt_dev_pixelpipe_t *pipe, dt_iop_roi_t roi) |
| gboolean | _resync_pipe_with_history (dt_develop_t *dev, dt_dev_pixelpipe_t *pipe, dt_iop_roi_t *roi, gboolean *needs_update) |
| void | dt_dev_darkroom_pipeline (dt_develop_t *dev) |
| Run darkroom preview and main pipelines from one background loop. | |
| static int32_t | dt_dev_process_job_run (dt_job_t *job) |
| dt_job_t * | dt_dev_process_job_create (dt_develop_t *dev) |
| void | dt_dev_start_all_pipelines (dt_develop_t *dev) |
| static gboolean | _dt_dev_mipmap_prefetch_full (dt_develop_t *dev, const int32_t imgid) |
| static gboolean | _dt_dev_refresh_image_storage (dt_develop_t *dev, const int32_t imgid) |
| dt_dev_image_storage_t | dt_dev_ensure_image_storage (dt_develop_t *dev, const int32_t imgid) |
| static dt_dev_image_storage_t | _dt_dev_load_raw (dt_develop_t *dev, const int32_t imgid) |
| float | dt_dev_get_zoom_scale (const dt_develop_t *dev, const gboolean preview) |
| dt_dev_image_storage_t | dt_dev_load_image (dt_develop_t *dev, const int32_t imgid) |
| void | dt_dev_configure_real (dt_develop_t *dev, int wd, int ht) |
| gboolean | dt_dev_clamp_viewport_center (dt_develop_t *dev) |
| Clamp the viewport centre against the box currently visible at this zoom. | |
| void | dt_dev_check_zoom_pos_bounds (dt_develop_t *dev, float *dev_x, float *dev_y, float *box_w, float *box_h) |
| Ensure that the current ROI position is within allowed bounds . | |
| void | dt_dev_get_processed_size (const dt_develop_t *dev, int *procw, int *proch) |
| void | dt_dev_coordinates_widget_delta_to_image_delta (dt_develop_t *dev, float *points, size_t num_points) |
| Convert a widget-space distance to processed-image pixels. | |
| void | dt_dev_coordinates_widget_to_image_norm (dt_develop_t *dev, float *points, size_t num_points) |
| Coordinate conversion helpers between widget, normalized image, and absolute image spaces. | |
| void | dt_dev_coordinates_image_norm_to_widget (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_image_norm_to_image_abs (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_image_abs_to_image_norm (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_raw_abs_to_raw_norm (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_raw_norm_to_raw_abs (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_image_norm_to_raw_norm (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_raw_norm_to_image_norm (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_image_abs_to_raw_norm (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_image_norm_to_preview_abs (dt_develop_t *dev, float *points, size_t num_points) |
| void | dt_dev_coordinates_preview_abs_to_image_norm (dt_develop_t *dev, float *points, size_t num_points) |
| int | dt_dev_is_current_image (dt_develop_t *dev, int32_t imgid) |
| void | dt_dev_modulegroups_switch_tab (dt_develop_t *dev, dt_iop_module_t *module) |
| gboolean | dt_dev_masks_manager_is_visible (dt_develop_t *dev) |
| void | dt_dev_masks_list_change (dt_develop_t *dev) |
| void | dt_dev_masks_list_update (dt_develop_t *dev) |
| void | dt_dev_masks_list_remove (dt_develop_t *dev, int formid, int parentid) |
| void | dt_dev_masks_selection_change (dt_develop_t *dev, struct dt_iop_module_t *module, const int selectid, const int throw_event) |
| void | dt_dev_snapshot_request (dt_develop_t *dev, const char *filename) |
| dt_iop_module_t * | dt_dev_module_duplicate (dt_develop_t *dev, dt_iop_module_t *base) |
| void | dt_dev_module_remove (dt_develop_t *dev, dt_iop_module_t *module) |
| void | _dev_module_update_multishow (dt_develop_t *dev, struct dt_iop_module_t *module, const dt_dev_multishow_state_t *state) |
| void | dt_dev_modules_update_multishow (dt_develop_t *dev) |
| gchar * | dt_history_item_get_label (const struct dt_iop_module_t *module) |
| gchar * | dt_dev_get_multi_name (const struct dt_iop_module_t *module) |
| gchar * | dt_history_item_get_name (const struct dt_iop_module_t *module) |
| gchar * | dt_history_item_get_name_html (const struct dt_iop_module_t *module) |
| static int | dt_dev_distort_backtransform_locked (const dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count) |
| int | dt_dev_distort_transform_gui (dt_develop_t *dev, const double iop_order, const int transf_direction, float *points, size_t points_count) |
| The GUI's bounded transform folds, composed by the geometry service. | |
| int | dt_dev_distort_backtransform_gui (dt_develop_t *dev, const double iop_order, const int transf_direction, float *points, size_t points_count) |
| The inverse of dt_dev_distort_transform_gui(), same rules. | |
| gboolean | dt_dev_processed_size_gui (dt_develop_t *dev, int *width, int *height) |
| One module's own input and output rectangles, at full resolution. | |
| gboolean | dt_dev_module_geometry_gui (dt_develop_t *dev, dt_iop_module_t *module, dt_iop_roi_t *in, dt_iop_roi_t *out) |
| One module's own input and output rectangles at full resolution, from the geometry service. | |
| int | dt_dev_coordinates_raw_abs_to_image_abs (dt_develop_t *dev, float *points, size_t points_count) |
| int | dt_dev_coordinates_image_abs_to_raw_abs (dt_develop_t *dev, float *points, size_t points_count) |
| int | dt_dev_distort_transform_locked (const dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count) |
| int | dt_dev_distort_transform_plus (const dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count) |
| int | dt_dev_distort_backtransform_plus (const dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count) |
| dt_dev_pixelpipe_iop_t * | dt_dev_distort_get_iop_pipe (struct dt_dev_pixelpipe_t *pipe, struct dt_iop_module_t *module) |
| void | dt_dev_signal_modules_moved (dt_develop_t *dev) |
| void | dt_dev_undo_start_record (dt_develop_t *dev) |
| void | dt_dev_undo_end_record (dt_develop_t *dev) |
| gboolean | dt_masks_get_lock_mode (dt_develop_t *dev) |
| void | dt_masks_set_lock_mode (dt_develop_t *dev, gboolean mode) |
| int32_t | dt_dev_get_history_end_ext (dt_develop_t *dev) |
| Get the current history end index (GUI perspective). | |
| void | dt_dev_set_history_end_ext (dt_develop_t *dev, const uint32_t index) |
| Set the history end index (GUI perspective). | |
| void | dt_dev_append_changed_tag (const int32_t imgid) |
| void | dt_dev_masks_update_hash (dt_develop_t *dev) |
| float | dt_dev_get_natural_scale (dt_develop_t *dev) |
| float | dt_dev_get_fit_scale (dt_develop_t *dev) |
| Get the scale factor that maps preview-buffer pixels to GUI coordinates. | |
| float | dt_dev_get_overlay_scale (dt_develop_t *dev) |
| Get the overlay scale factor in GUI logical coordinates. | |
| float | dt_dev_get_widget_zoom_scale (const dt_develop_t *dev, const float scaling) |
| Convert a darkroom scaling factor to GUI logical zoom. | |
| void | dt_dev_get_widget_center (const dt_develop_t *dev, float *point) |
| Get the center of the darkroom widget in logical coordinates. | |
| void | dt_dev_get_image_box_in_widget (const dt_develop_t *dev, const int32_t width, const int32_t height, float *box) |
| Get the displayed image rectangle in darkroom widget coordinates. | |
| float | dt_dev_get_zoom_level (const dt_develop_t *dev) |
| void | dt_dev_reset_roi (dt_develop_t *dev) |
| void | dt_dev_convert_roi (const dt_develop_t *dev, const dt_iop_roi_t *roi_in, dt_iop_roi_t *roi_out, const dt_dev_roi_space_t from, const dt_dev_roi_space_t to) |
| Convert a full ROI object between pipeline raster coordinates and GUI logical coordinates. | |
| gboolean | dt_dev_clip_roi (dt_develop_t *dev, cairo_t *cr, int32_t width, int32_t height) |
| Clip the view to the ROI. WARNING: this must be done before any translation. | |
| static gboolean | _dev_translate_roi (dt_develop_t *dev, cairo_t *cr, int32_t width, int32_t height) |
| gboolean | dt_dev_rescale_roi (dt_develop_t *dev, cairo_t *cr, int32_t width, int32_t height) |
| Scale the ROI to fit within given width/height, centered. | |
| gboolean | dt_dev_rescale_roi_to_input (dt_develop_t *dev, cairo_t *cr, int32_t width, int32_t height) |
| Scale the ROI to fit the input size within given width/height, centered. | |
| gboolean | dt_dev_check_zoom_scale_bounds (dt_develop_t *dev) |
| Ensure that the current zoom level is within allowed bounds (for scrolling). | |
| void | dt_dev_update_mouse_effect_radius (dt_develop_t *dev) |
Convert absolute output-image coordinates to input image space by calling dt_dev_coordinates_image_abs_to_raw_abs() directly, then normalize with dt_dev_coordinates_raw_abs_to_raw_norm() when normalized raw coordinates are required. | |
| void | dt_dev_set_backbuf (dt_backbuf_t *backbuf, const int width, const int height, const size_t bpp, const int64_t hash, const int64_t history_hash) |
| #define DT_IOP_ORDER_INFO (dt_get_debug_flags() & DT_DEBUG_IOPORDER) |
| typedef struct dt_dev_multishow_state_t dt_dev_multishow_state_t |
|
static |
Definition at line 335 of file develop.c.
References dt_dev_geometry_get(), dt_dev_roi_request_preview_height(), dt_dev_roi_request_preview_width(), dt_dev_viewport_box_height(), dt_dev_viewport_box_width(), FALSE, geometry, dt_image_t::id, dt_develop_t::image_storage, and IS_NULL_PTR.
Referenced by dt_dev_darkroom_pipeline().
| void _dev_module_update_multishow | ( | dt_develop_t * | dev, |
| struct dt_iop_module_t * | module, | ||
| const dt_dev_multishow_state_t * | state | ||
| ) |
Definition at line 1502 of file develop.c.
References dt_ioppr_check_can_move_after_iop(), dt_ioppr_check_can_move_before_iop(), dt_iop_module_gui_t::expander, dt_iop_module_t::gui, dt_iop_module_t::instance, dt_develop_t::iop, IS_NULL_PTR, dt_iop_module_t::multi_priority, and state.
Referenced by dt_dev_modules_update_multishow().
|
static |
Definition at line 2052 of file develop.c.
References dt_dev_get_processed_size(), dt_dev_get_zoom_level(), dt_dev_viewport_center_x(), dt_dev_viewport_center_y(), dt_gui_get_global(), FALSE, height, dt_gui_gtk_t::ppd, TRUE, and width.
Referenced by dt_dev_rescale_roi(), and dt_dev_rescale_roi_to_input().
|
inlinestatic |
Definition at line 971 of file develop.c.
References dt_dev_ensure_image_storage(), dt_get_times(), and dt_show_times_f().
Referenced by dt_dev_load_image().
|
static |
Definition at line 915 of file develop.c.
References dt_mipmap_buffer_t::buf, dt_dev_geometry_set_raw_size(), DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, DT_MIPMAP_FULL, dt_mipmap_buffer_t::height, IS_NULL_PTR, and dt_mipmap_buffer_t::width.
Referenced by dt_dev_ensure_image_storage().
|
static |
Definition at line 946 of file develop.c.
References dt_image_t::dsc, dt_image_cache_get(), dt_image_cache_read_release(), dt_iop_buffer_dsc_update_bpp(), FALSE, dt_develop_t::image_storage, IS_NULL_PTR, and TRUE.
Referenced by dt_dev_ensure_image_storage().
| gboolean _resync_pipe_with_history | ( | dt_develop_t * | dev, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_iop_roi_t * | roi, | ||
| gboolean * | needs_update | ||
| ) |
Definition at line 553 of file develop.c.
References _update_darkroom_roi(), dt_dev_pixelpipe_t::busy_mutex, DT_DEBUG_DEV, DT_DEBUG_PIPE, dt_dev_get_history_hash(), DT_DEV_PIPE_TOP_CHANGED, DT_DEV_PIPE_UNCHANGED, dt_dev_pixelpipe_change(), dt_dev_pixelpipe_get_changed(), dt_dev_pixelpipe_get_history_hash(), dt_dev_pixelpipe_get_roi_in(), dt_dev_pixelpipe_or_changed(), dt_pixelpipe_get_global_hash(), dt_print(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, dt_dev_pixelpipe_t::pause, dt_dev_pixelpipe_t::processing, TRUE, and x.
Referenced by dt_dev_darkroom_pipeline().
|
static |
Definition at line 458 of file develop.c.
References dt_dev_roi_request_t::box_height, dt_dev_roi_request_t::box_width, dt_dev_roi_request_t::center_x, dt_dev_roi_request_t::center_y, dt_dev_roi_request_of_pipe(), dt_dev_roi_request_t::natural_scale, dt_develop_t::preview_pipe, dt_dev_roi_request_t::processed_height, dt_dev_roi_request_t::processed_width, dt_dev_roi_request_t::scaling, dt_dev_roi_request_t::valid, and x.
Referenced by _resync_pipe_with_history(), dt_dev_pipelines_share_preview_output(), and dt_dev_pixelpipe_has_preview_output().
| void dt_dev_append_changed_tag | ( | const int32_t | imgid | ) |
Definition at line 1912 of file develop.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_TAG_CHANGED, dt_tag_attach(), dt_tag_new(), and FALSE.
Referenced by dt_dev_load_image().
| void dt_dev_check_zoom_pos_bounds | ( | dt_develop_t * | dev, |
| float * | dev_x, | ||
| float * | dev_y, | ||
| float * | box_w, | ||
| float * | box_h | ||
| ) |
Ensure that the current ROI position is within allowed bounds .
| dev | the develop instance |
| dev_x | the normalized x position of ROI |
| dev_y | the normalized y position of ROI |
| box_w | the width of navigation's box |
| box_h | the height of navigation's box |
Definition at line 1074 of file develop.c.
References CLAMPF, dt_dev_get_processed_size(), dt_dev_get_zoom_level(), dt_dev_viewport_box_height(), dt_dev_viewport_box_width(), dt_dev_viewport_scaling(), and IS_NULL_PTR.
Referenced by _darkroom_edge_pan_apply(), _lib_navigation_draw_callback(), _lib_navigation_set_position(), dt_dev_clamp_viewport_center(), and mouse_moved().
| gboolean dt_dev_check_zoom_scale_bounds | ( | dt_develop_t * | dev | ) |
Ensure that the current zoom level is within allowed bounds (for scrolling).
| dev | the develop instance |
Definition at line 2091 of file develop.c.
References dt_dev_roi_request_natural_scale(), dt_dev_viewport_scaling(), dt_dev_viewport_set_scaling(), FALSE, scaling, and TRUE.
Referenced by _change_scaling().
| gboolean dt_dev_clamp_viewport_center | ( | dt_develop_t * | dev | ) |
Clamp the viewport centre against the box currently visible at this zoom.
Four call sites used to hand dt_dev_check_zoom_pos_bounds() the addresses of the centre fields and let it write through them. Nothing may hold a pointer into the viewport now – it publishes whole states – so the read/clamp/publish round trip lives here once instead of being spelled out at each site.
Definition at line 1065 of file develop.c.
References dt_dev_viewport_state_t::center_x, dt_dev_viewport_state_t::center_y, dt_dev_check_zoom_pos_bounds(), dt_dev_viewport_get(), and dt_dev_viewport_set_center().
Referenced by _change_scaling(), _key_scroll(), _zoom_preset_change(), and dt_masks_center_view_on_form().
| void dt_dev_cleanup | ( | dt_develop_t * | dev | ) |
Definition at line 237 of file develop.c.
References dt_develop_t::alliop, dt_develop_t::blend_params, dt_develop_t::chroma_adaptation, dt_develop_t::color_picker, dt_develop_t::colorscheme, dt_conf_set_float(), dt_conf_set_int(), dt_dev_free_history_item(), dt_dev_history_drop_pending_commits(), dt_dev_pixelpipe_cleanup(), dt_dev_viewport_free(), dt_free, dt_free_gpointer(), dt_geometry_chain_free(), dt_gui_throttle_cancel(), dt_iop_cleanup_module(), dt_masks_release_all_forms(), dt_pthread_mutex_destroy(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_pthread_rwlock_destroy(), dt_pthread_rwlock_unlock(), dt_pthread_rwlock_wrlock(), dt_develop_t::geometry_chain, dt_develop_t::gui_attached, dt_develop_t::history, dt_develop_t::history_mutex, dt_develop_t::iop, dt_develop_t::iop_order_list, IS_NULL_PTR, dt_develop_t::lower, dt_develop_t::masks_mutex, dt_develop_t::mode, dt_develop_t::overexposed, dt_develop_t::params, dt_develop_t::pipe, dt_develop_t::preview_pipe, dt_develop_t::primary_sample, dt_develop_t::proxy, dt_develop_t::rawoverexposed, dt_develop_t::threshold, dt_develop_t::transient_params, dt_develop_t::transient_params_mutex, dt_develop_t::undo_history_before_end, dt_develop_t::undo_history_before_iop_order_list, dt_develop_t::undo_history_before_snapshot, dt_develop_t::undo_history_depth, dt_develop_t::upper, dt_develop_t::viewport, and dt_develop_t::wb_coeffs.
Referenced by _engine_free(), _history_compress_apply(), _history_copy_and_paste_on_image_merge(), cleanup(), dt_dev_merge_history_into_image(), dt_dev_snapshot_capture(), dt_focus_draw_clusters(), dt_imageio_export_with_flags(), and dt_styles_apply_to_image_merge().
| gboolean dt_dev_clip_roi | ( | dt_develop_t * | dev, |
| cairo_t * | cr, | ||
| int32_t | width, | ||
| int32_t | height | ||
| ) |
Clip the view to the ROI. WARNING: this must be done before any translation.
| dev | the develop instance |
| cr | the cairo context to clip on |
| width | the view width |
| height | the view height |
Definition at line 2028 of file develop.c.
References dt_dev_get_overlay_scale(), dt_dev_roi_request_preview_height(), dt_dev_roi_request_preview_width(), dt_dev_viewport_border_size(), FALSE, height, TRUE, and width.
Referenced by expose(), expose(), and gui_post_expose().
| void dt_dev_configure_real | ( | dt_develop_t * | dev, |
| int | wd, | ||
| int | ht | ||
| ) |
Definition at line 1035 of file develop.c.
References dt_control_queue_redraw(), DT_DEBUG_DEV, dt_dev_convert_roi(), dt_dev_get_thumbnail_size(), dt_dev_pixelpipe_update_zoom_main, dt_dev_pixelpipe_update_zoom_preview, DT_DEV_ROI_GUI_LOGICAL, DT_DEV_ROI_PIPELINE, dt_dev_viewport_box_height(), dt_dev_viewport_box_width(), dt_dev_viewport_set_box(), dt_print(), dt_iop_roi_t::height, dt_iop_roi_t::width, and dt_iop_roi_t::x.
| void dt_dev_convert_roi | ( | const dt_develop_t * | dev, |
| const dt_iop_roi_t * | roi_in, | ||
| dt_iop_roi_t * | roi_out, | ||
| const dt_dev_roi_space_t | from, | ||
| const dt_dev_roi_space_t | to | ||
| ) |
Convert a full ROI object between pipeline raster coordinates and GUI logical coordinates.
The pipeline stores ROI geometry in real buffer pixels while Gtk events and drawing use logical coordinates. x/y/width/height cross that boundary through the ppd factor, while roi->scale remains the same because it expresses image-space sampling, not GUI density.
| dev | the develop instance carrying the ppd factor |
| roi_in | the source ROI |
| roi_out | the converted ROI |
| from | the source coordinate space |
| to | the destination coordinate space |
Definition at line 2006 of file develop.c.
References DT_DEV_ROI_GUI_LOGICAL, DT_DEV_ROI_PIPELINE, dt_gui_get_global(), factor, dt_iop_roi_t::height, IS_NULL_PTR, dt_gui_gtk_t::ppd, dt_iop_roi_t::scale, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
Referenced by dt_dev_configure_real().
| void dt_dev_coordinates_image_abs_to_image_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1219 of file develop.c.
References dt_dev_geometry_snapshot(), geometry, i, and IS_NULL_PTR.
Referenced by dt_dev_coordinates_raw_norm_to_image_norm(), dt_masks_center_view_on_form(), get_grab(), mouse_moved(), and set_points_from_grad().
| int dt_dev_coordinates_image_abs_to_raw_abs | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | points_count | ||
| ) |
reverse apply all transforms to the specified points (in virtual preview-pipe space)
Definition at line 1770 of file develop.c.
References DT_DEV_TRANSFORM_DIR_ALL, and dt_geometry_backtransform().
Referenced by _dt_masks_events_set_current_pos(), dt_dev_coordinates_image_abs_to_raw_norm(), dt_dev_coordinates_image_norm_to_raw_norm(), dt_masks_border_from_projected_handle(), dt_masks_rotate_with_anchor(), and dt_masks_set_source_pos_initial_value().
| void dt_dev_coordinates_image_abs_to_raw_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1285 of file develop.c.
References dt_dev_coordinates_image_abs_to_raw_abs(), and dt_dev_coordinates_raw_abs_to_raw_norm().
Referenced by _brush_events_button_released(), _brush_events_mouse_moved(), _polygon_events_mouse_moved(), button_released(), dt_masks_gui_delta_to_raw_norm(), and dt_masks_set_source_pos_initial_value().
| void dt_dev_coordinates_image_norm_to_image_abs | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1203 of file develop.c.
References dt_dev_geometry_snapshot(), geometry, i, and IS_NULL_PTR.
Referenced by _dt_masks_events_set_current_pos(), _picker_sample_box(), dt_dev_coordinates_image_norm_to_raw_norm(), get_point_scale(), and set_grad_from_points().
| void dt_dev_coordinates_image_norm_to_preview_abs | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1291 of file develop.c.
References dt_dev_roi_request_preview_height(), dt_dev_roi_request_preview_width(), i, and IS_NULL_PTR.
Referenced by _pixelpipe_pick_from_image(), button_pressed(), button_released(), dt_drawlayer_layer_points_to_widget_coords(), dt_drawlayer_widget_points_to_layer_coords(), get_grab(), gui_post_expose(), and mouse_moved().
| void dt_dev_coordinates_image_norm_to_raw_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1271 of file develop.c.
References dt_dev_coordinates_image_abs_to_raw_abs(), dt_dev_coordinates_image_norm_to_image_abs(), and dt_dev_coordinates_raw_abs_to_raw_norm().
Referenced by _picker_initialize_geometry_raw(), button_pressed(), dt_lib_colorpicker_set_box_area(), and dt_lib_colorpicker_set_point().
| void dt_dev_coordinates_image_norm_to_widget | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1173 of file develop.c.
References dt_dev_geometry_snapshot(), dt_dev_get_zoom_level(), dt_dev_viewport_center_x(), dt_dev_viewport_center_y(), dt_dev_viewport_widget_height(), dt_dev_viewport_widget_width(), dt_gui_get_global(), geometry, i, IS_NULL_PTR, and dt_gui_gtk_t::ppd.
Referenced by dt_drawlayer_layer_points_to_widget_coords().
| void dt_dev_coordinates_preview_abs_to_image_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1306 of file develop.c.
References dt_dev_roi_request_preview_height(), dt_dev_roi_request_preview_width(), i, and IS_NULL_PTR.
Referenced by _iop_clipping_set_max_clip(), _polygon_get_sizes(), _refresh_preview_cursor_sample(), _set_max_clip(), dt_drawlayer_layer_points_to_widget_coords(), and dt_drawlayer_widget_points_to_layer_coords().
| int dt_dev_coordinates_raw_abs_to_image_abs | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | points_count | ||
| ) |
apply all transforms to the specified points (in virtual preview-pipe space)
Definition at line 1765 of file develop.c.
References DT_DEV_TRANSFORM_DIR_ALL, and dt_geometry_transform().
Referenced by _circle_get_points(), _ellipse_get_points(), _gradient_get_points(), dt_dev_coordinates_raw_norm_to_image_norm(), and dt_masks_center_view_on_form().
| void dt_dev_coordinates_raw_abs_to_raw_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1237 of file develop.c.
References dt_dev_geometry_snapshot(), geometry, i, and IS_NULL_PTR.
Referenced by _gradient_get_pts_border(), dt_dev_coordinates_image_abs_to_raw_norm(), dt_dev_coordinates_image_norm_to_raw_norm(), dt_masks_gui_cursor_to_raw_norm(), and dt_masks_set_source_pos_initial_value().
| void dt_dev_coordinates_raw_norm_to_image_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1278 of file develop.c.
References dt_dev_coordinates_image_abs_to_image_norm(), dt_dev_coordinates_raw_abs_to_image_abs(), and dt_dev_coordinates_raw_norm_to_raw_abs().
Referenced by _darkroom_sample_raw_box_to_image_norm(), _darkroom_sample_raw_point_to_image_norm(), _picker_raw_box_to_image_norm(), _picker_raw_point_to_image_norm(), _sample_raw_box_to_image_norm(), _sample_raw_point_to_image_norm(), _studio_draw_one_sample(), _studio_picker_left_click(), _studio_picker_right_click(), button_pressed(), and mouse_moved().
| void dt_dev_coordinates_raw_norm_to_raw_abs | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Definition at line 1255 of file develop.c.
References dt_dev_geometry_snapshot(), geometry, i, and IS_NULL_PTR.
Referenced by _brush_initial_source_pos(), _brush_outline_transform(), _circle_initial_source_pos(), _ellipse_initial_source_pos(), _ellipse_points_to_transform(), _gradient_get_points(), _gradient_get_pts_border(), _points_to_transform(), _points_to_transform(), _polygon_initial_source_pos(), dt_dev_coordinates_raw_norm_to_image_norm(), dt_masks_border_from_projected_handle(), dt_masks_center_view_on_form(), and dt_masks_points_shift_to_source().
| void dt_dev_coordinates_widget_delta_to_image_delta | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Convert a widget-space distance to processed-image pixels.
Mouse drags and GUI handle sizes are expressed in darkroom logical pixels. Interactive modules compare them against image data, so this helper applies the current widget zoom once in the develop API instead of duplicating the same division in every callback.
| dev | the develop instance |
| points | pointer to num_points delta pairs stored as {dx, dy}; data is modified in place. |
| num_points | number of delta pairs referenced by points. |
Definition at line 1127 of file develop.c.
References dt_dev_get_zoom_level(), dt_gui_get_global(), i, IS_NULL_PTR, and dt_gui_gtk_t::ppd.
Referenced by _darkroom_edge_pan_apply(), button_pressed(), key_pressed(), and mouse_moved().
| void dt_dev_coordinates_widget_to_image_norm | ( | dt_develop_t * | dev, |
| float * | points, | ||
| size_t | num_points | ||
| ) |
Coordinate conversion helpers between widget, normalized image, and absolute image spaces.
Widget space is assumed to be the darkroom center view and doesn't account for borders, zooming, panning, etc. RAW space is the full-resolution input fed to the pipeline. Image space is the output image resulting from applying a full history over the full-resolution input. Preview space is the downscaled output image preview as displayed in darkroom.
| dev | develop instance |
| points | pointer to num_points coordinate pairs stored as {x, y}; data is modified in place. |
| num_points | number of coordinate pairs referenced by points. |
Definition at line 1144 of file develop.c.
References dt_dev_geometry_snapshot(), dt_dev_get_zoom_level(), dt_dev_viewport_center_x(), dt_dev_viewport_center_y(), dt_dev_viewport_widget_height(), dt_dev_viewport_widget_width(), dt_gui_get_global(), geometry, i, IS_NULL_PTR, and dt_gui_gtk_t::ppd.
Referenced by _dt_masks_events_set_current_pos(), button_pressed(), button_pressed(), button_released(), dt_drawlayer_widget_points_to_layer_coords(), get_point_scale(), gui_post_expose(), mouse_moved(), mouse_moved(), and scrolled().
| void dt_dev_darkroom_pipeline | ( | dt_develop_t * | dev | ) |
Run darkroom preview and main pipelines from one background loop.
Preview must be serviced before the main pipe so both darkroom pipelines can share freshly-published cachelines without cross-thread timeout heuristics. Pause state, dirty detection, history resync, ROI updates, and re-entry handling stay local to each pipe, but their execution order is now explicit and deterministic.
GUI sampling and picker notifications are intentionally delayed until both ordered pipe runs completed so GUI observers consume the preview-first, main-second cache state from the same loop.
A missing raster mask gets exactly one reconstruction pass. Keep the re-entry flag active for that pass so _bypass_cache() recomputes the provider instead of exact-hitting pixels without their side-band mask. If the retry still cannot provide it, release the flag and propagate the processing error without scheduling an infinite loop.
Snapshot the GUI request before processing because it may be cleared while this pipe is running although the resulting backbuffer still contains the requested mask preview.
Module cache requests deliberately stop before the end of the pipe. DT_SIGNAL_CACHELINE_READY notifies their caller when the requested cache line is written, but the final backbuffer remains stale. Advertising PIPE_FINISHED for such a pass would wake preview consumers and schedule another otherwise unnecessary processing pass.
A module cache request consumes the pipe change that started this worker pass, but intentionally stops before publishing the final backbuffer. Queue the full continuation explicitly instead of relying on a PIPE_FINISHED listener to notice the missing backbuffer. A newer GUI cache request may have arrived while processing; preserve it and only install the backbuffer request when no newer target is pending.
Use the full-frame preview backbuffer to initialize the mipmap cache without extra computations. Thumbnails consume that cache, so never publish a transient mask display there. Check both the request snapshot and the runtime display mode because modules may produce their mask through either mechanism.
This resamples non-linear uint8 at the end of the pipeline and is therefore a low-quality resampling path.
Definition at line 614 of file develop.c.
References _darkroom_pipeline_inputs_ready(), _resync_pipe_with_history(), dt_dev_pixelpipe_t::busy_mutex, dt_develop_t::completed, dt_atomic_get_int(), dt_atomic_set_int(), dt_control_log_busy_enter(), dt_control_log_busy_leave(), dt_control_queue_redraw(), dt_control_queue_redraw_center(), dt_control_running(), dt_control_signal_get_global(), dt_control_toast_busy_enter(), dt_control_toast_busy_leave(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_DEV, DT_DEBUG_PIPE, dt_dev_geometry_snapshot(), DT_DEV_PIPE_CACHE_REQUEST, DT_DEV_PIPE_REENTRY, DT_DEV_PIPE_ZOOMED, DT_DEV_PIXELPIPE_CACHE_REQUEST_BACKBUF, DT_DEV_PIXELPIPE_CACHE_REQUEST_MODULE, DT_DEV_PIXELPIPE_CACHE_REQUEST_NONE, DT_DEV_PIXELPIPE_DISPLAY_NONE, DT_DEV_PIXELPIPE_FULL, dt_dev_pixelpipe_get_cache_request(), dt_dev_pixelpipe_get_realtime(), dt_dev_pixelpipe_has_preview_output(), dt_dev_pixelpipe_has_reentry(), dt_dev_pixelpipe_is_backbufer_valid(), dt_dev_pixelpipe_or_changed(), DT_DEV_PIXELPIPE_PREVIEW, dt_dev_pixelpipe_process(), dt_dev_pixelpipe_reset_reentry(), dt_dev_pixelpipe_set_cache_request(), dt_dev_pixelpipe_set_input(), dt_dev_resync_mipmap_cache(), dt_dev_roi_request_get(), dt_dev_roi_request_latch(), dt_free, dt_get_times(), dt_gui_throttle_record_runtime(), dt_iop_nap(), DT_MIPMAP_FULL, dt_pixelpipe_get_pipe_name(), dt_print(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_show_times(), DT_SIGNAL_DEVELOP_PREVIEW_PIPE_FINISHED, DT_SIGNAL_DEVELOP_UI_PIPE_FINISHED, DT_SIGNAL_HISTORY_RESYNC, DT_THROTTLE_SLOT_MAIN, DT_THROTTLE_SLOT_OTHER, DT_THROTTLE_SLOT_PREVIEW, dt_develop_t::exit, FALSE, dt_dev_roi_request_t::generation, geometry, dt_develop_t::gui_module, i, dt_image_t::id, dt_develop_t::image_storage, IS_NULL_PTR, dt_dev_pixelpipe_t::mask_display, dt_develop_t::pipe, dt_develop_t::preview_pipe, dt_dev_pixelpipe_t::processing, dt_develop_t::progress, dt_iop_module_t::request_mask_display, dt_dev_pixelpipe_t::shutdown, dt_develop_t::total, TRUE, and dt_dev_pixelpipe_t::type.
Referenced by dt_dev_process_job_run().
| int dt_dev_distort_backtransform_gui | ( | dt_develop_t * | dev, |
| const double | iop_order, | ||
| const int | transf_direction, | ||
| float * | points, | ||
| size_t | points_count | ||
| ) |
The inverse of dt_dev_distort_transform_gui(), same rules.
Definition at line 1699 of file develop.c.
References dt_geometry_backtransform(), and IS_NULL_PTR.
Referenced by _commit_box(), _do_get_structure_quad(), _draw_save_lines_to_params(), button_pressed(), button_released(), commit_box(), dt_drawlayer_widget_points_to_layer_coords(), dt_masks_distort_backtransform(), get_point_scale(), mouse_moved(), and set_grad_from_points().
|
static |
Definition at line 1805 of file develop.c.
References DT_DEV_TRANSFORM_DIR_ALL, DT_DEV_TRANSFORM_DIR_FORW_INCL, dt_dev_pixelpipe_iop_t::enabled, and dt_dev_pixelpipe_t::nodes.
Referenced by dt_dev_distort_backtransform_plus().
| int dt_dev_distort_backtransform_plus | ( | const dt_dev_pixelpipe_t * | pipe, |
| const double | iop_order, | ||
| const int | transf_direction, | ||
| float * | points, | ||
| size_t | points_count | ||
| ) |
Definition at line 1826 of file develop.c.
References dt_dev_distort_backtransform_locked().
Referenced by _circle_get_mask(), _ellipse_get_mask(), _picker_sample_box(), _pixelpipe_pick_from_image(), dt_masks_distort_backtransform(), dt_masks_sample_grid_backtransform(), process(), process(), and process_cl().
| dt_dev_pixelpipe_iop_t * dt_dev_distort_get_iop_pipe | ( | struct dt_dev_pixelpipe_t * | pipe, |
| struct dt_iop_module_t * | module | ||
| ) |
get the iop_pixelpipe instance corresponding to the iop in the given pipe
Definition at line 1833 of file develop.c.
References dt_dev_pixelpipe_t::nodes.
Referenced by _build_pre_module_filter_string(), _create_background_layer_from_input(), _current_preview_hash(), and _current_preview_luminance_hash().
| int dt_dev_distort_transform_gui | ( | dt_develop_t * | dev, |
| const double | iop_order, | ||
| const int | transf_direction, | ||
| float * | points, | ||
| size_t | points_count | ||
| ) |
The GUI's bounded transform folds, composed by the geometry service.
GUI-side bounded transform folds. Ask the geometry service, fall back to the pixel-less pipe. Same iop_order bound and direction modes as dt_dev_distort_transform_plus().
Same contract as dt_dev_distort_transform_plus() – the iop_order bound and the five direction modes mean exactly what they mean there – but stated in terms of the dev rather than a pipe, because a GUI has no pipe of its own to name. It used to fall back to a pixel-less clone of the pipeline when the chain could not answer; that clone is deleted, so a chain that cannot answer returns 0 and leaves points untouched.
Definition at line 1691 of file develop.c.
References dt_geometry_transform(), and IS_NULL_PTR.
Referenced by _draw_retrieve_lines_from_params(), _iop_clipping_set_max_clip(), _set_max_clip(), button_pressed(), dt_drawlayer_layer_points_to_widget_coords(), dt_masks_distort_transform(), dt_masks_points_shift_to_source(), get_points(), gui_post_expose(), and set_points_from_grad().
| int dt_dev_distort_transform_locked | ( | const dt_dev_pixelpipe_t * | pipe, |
| const double | iop_order, | ||
| const int | transf_direction, | ||
| float * | points, | ||
| size_t | points_count | ||
| ) |
Definition at line 1776 of file develop.c.
References DT_DEV_TRANSFORM_DIR_ALL, DT_DEV_TRANSFORM_DIR_FORW_INCL, dt_dev_pixelpipe_iop_t::enabled, and dt_dev_pixelpipe_t::nodes.
Referenced by _distort_paths(), and dt_dev_distort_transform_plus().
| int dt_dev_distort_transform_plus | ( | const dt_dev_pixelpipe_t * | pipe, |
| const double | iop_order, | ||
| const int | transf_direction, | ||
| float * | points, | ||
| size_t | points_count | ||
| ) |
Definition at line 1797 of file develop.c.
References dt_dev_distort_transform_locked().
Referenced by _circle_get_area(), _circle_get_mask_roi(), _circle_get_source_area(), _distort_paths(), _ellipse_get_area(), _ellipse_get_mask_roi(), _ellipse_get_source_area(), _get_selected_area(), _get_selected_area(), _gradient_get_area(), _picker_get_module_bounds_image_norm(), _process(), dt_focus_draw_clusters(), dt_masks_distort_transform(), and rt_masks_point_calc_delta().
| dt_dev_image_storage_t dt_dev_ensure_image_storage | ( | dt_develop_t * | dev, |
| const int32_t | imgid | ||
| ) |
Definition at line 956 of file develop.c.
References _dt_dev_mipmap_prefetch_full(), _dt_dev_refresh_image_storage(), DT_DEV_IMAGE_STORAGE_DB_NOT_READ, DT_DEV_IMAGE_STORAGE_MIPMAP_NOT_FOUND, DT_DEV_IMAGE_STORAGE_OK, dt_image_cache_is_ready(), and IS_NULL_PTR.
Referenced by _dt_dev_load_raw(), _styles_init_source_dev(), dt_dev_pop_history_items_ext(), dt_dev_read_history_ext(), and dt_dev_replace_history_on_image().
| float dt_dev_get_fit_scale | ( | dt_develop_t * | dev | ) |
Get the scale factor that maps preview-buffer pixels to GUI coordinates.
The pipeline ROI is stored in raster pixels. GUI drawing still happens in Gtk logical coordinates, so this helper exposes the explicit raster-to-GUI conversion used by overlays.
| dev | the develop instance |
Definition at line 1953 of file develop.c.
References dt_dev_viewport_scaling(), dt_gui_get_global(), IS_NULL_PTR, and dt_gui_gtk_t::ppd.
Referenced by _darkroom_pickers_draw(), button_pressed(), dt_dev_get_overlay_scale(), and dt_dev_rescale_roi().
| int32_t dt_dev_get_history_end_ext | ( | struct dt_develop_t * | dev | ) |
Get the current history end index (GUI perspective).
The index is 1-based with 0 representing the raw input image. The value is sanitized against the actual history length.
| dev | Develop context. |
Definition at line 1899 of file develop.c.
References dt_develop_t::history, and dt_develop_t::history_end.
Referenced by _hm_backup_dest(), _hm_build_last_history_by_id(), _hm_build_override_map(), _hm_truncate_dest_redo_tail(), _lib_history_change_callback(), _lib_history_view_selection_changed(), _lib_snapshot_capture_state(), _lib_snapshots_add_button_clicked_callback(), _read_mask_row(), _remove_history_leaks(), dt_dev_history_commit_item_now(), dt_dev_history_compress_or_truncate(), dt_dev_history_compute_hash(), dt_dev_history_snapshot_take(), dt_dev_history_truncate(), dt_dev_history_undo_end_record_locked(), dt_dev_history_undo_start_record_locked(), dt_dev_module_remove(), dt_dev_modules_update_multishow(), dt_dev_pop_history_items_ext(), dt_geometry_chain_rebuild(), dt_history_merge(), dt_iop_module_instance_exists(), dt_masks_cleanup_unused(), and dt_styles_apply_to_image_merge().
| void dt_dev_get_image_box_in_widget | ( | const dt_develop_t * | dev, |
| int32_t | width, | ||
| int32_t | height, | ||
| float * | box | ||
| ) |
Get the displayed image rectangle in darkroom widget coordinates.
Input callbacks often need to know whether the pointer is inside the image or in the margin area. This exposes the current displayed backbuffer footprint in logical coordinates, including the ppd conversion.
| dev | the develop instance |
| width | the current darkroom widget width |
| height | the current darkroom widget height |
| box | returned image box stored as {x, y, width, height} |
Definition at line 1977 of file develop.c.
References dt_dev_roi_request_preview_height(), dt_dev_roi_request_preview_width(), dt_dev_viewport_border_size(), dt_dev_viewport_scaling(), dt_gui_get_global(), height, IS_NULL_PTR, dt_gui_gtk_t::ppd, and width.
Referenced by _build_preview_fallback_surface(), _darkroom_edge_pan_update_state(), gui_post_expose(), and mouse_in_imagearea().
| gchar * dt_dev_get_multi_name | ( | const struct dt_iop_module_t * | module | ) |
generates item multi-instance name without mnemonics
Definition at line 1637 of file develop.c.
References dt_iop_module_t::multi_name.
Referenced by _ioporder_create_graph_node(), and dt_masks_group_name_for_module().
| float dt_dev_get_natural_scale | ( | dt_develop_t * | dev | ) |
Definition at line 1944 of file develop.c.
References dt_dev_geometry_processed_height(), dt_dev_geometry_processed_width(), dt_dev_geometry_raw_inited(), dt_dev_viewport_box_height(), dt_dev_viewport_box_width(), and dt_dev_viewport_configured().
Referenced by gui_post_expose().
| float dt_dev_get_overlay_scale | ( | dt_develop_t * | dev | ) |
Get the overlay scale factor in GUI logical coordinates.
This is the GUI-space scale used to draw preview overlays from the raster backbuffer dimensions stored in the pipeline ROI.
| dev | the develop instance |
Definition at line 1959 of file develop.c.
References dt_dev_get_fit_scale().
Referenced by _draw_near_point(), button_pressed(), dt_dev_clip_roi(), dt_drawlayer_compute_view_patch(), expose(), expose(), gui_post_expose(), gui_post_expose(), and mouse_moved().
| void dt_dev_get_processed_size | ( | const dt_develop_t * | dev, |
| int * | procw, | ||
| int * | proch | ||
| ) |
Definition at line 1109 of file develop.c.
References dt_dev_geometry_snapshot(), geometry, and IS_NULL_PTR.
Referenced by _aspect_apply(), _aspect_ratio_get(), _change_scaling(), _dev_translate_roi(), _lib_navigation_set_position(), _ratio_get_aspect(), apply_box_aspect(), dt_dev_check_zoom_pos_bounds(), dt_masks_debug_write_png(), dt_masks_events_post_expose_with(), and gui_post_expose().
| int dt_dev_get_thumbnail_size | ( | dt_develop_t * | dev | ) |
Definition at line 353 of file develop.c.
References DT_DEBUG_DEV, dt_dev_geometry_raw_inited(), dt_dev_geometry_set_processed_size(), dt_dev_geometry_snapshot(), dt_dev_roi_request_get(), dt_dev_roi_request_publish(), dt_dev_update_mouse_effect_radius(), dt_dev_viewport_configured(), dt_geometry_chain_processed_size(), dt_geometry_chain_rebuild(), dt_geometry_self_check(), dt_get_wtime(), dt_print(), geometry, dt_develop_t::geometry_chain, dt_dev_roi_request_t::natural_scale, dt_dev_roi_request_t::preview_height, dt_dev_roi_request_t::preview_width, dt_dev_roi_request_t::processed_height, and dt_dev_roi_request_t::processed_width.
Referenced by _commit_gui(), _darkroom_image_loaded_callback(), _dt_dev_history_compress_internal(), _enter_edit_mode(), _enter_edit_mode(), _event_commit_clicked(), _event_commit_clicked(), _event_process_after_ui_callback(), _history_apply_history_end(), _pop_undo(), _studio_dev_setup(), do_crop(), dt_apply_dev_history_update(), dt_dev_configure_real(), dt_dev_history_truncate(), dt_dev_pop_history_items(), and gui_focus().
| void dt_dev_get_widget_center | ( | const dt_develop_t * | dev, |
| float * | point | ||
| ) |
Get the center of the darkroom widget in logical coordinates.
| dev | the develop instance |
| point | returned widget center stored as {x, y} |
Definition at line 1970 of file develop.c.
References dt_dev_viewport_widget_height(), dt_dev_viewport_widget_width(), and IS_NULL_PTR.
Referenced by _change_scaling(), and key_pressed().
| float dt_dev_get_widget_zoom_scale | ( | const dt_develop_t * | dev, |
| float | scaling | ||
| ) |
Convert a darkroom scaling factor to GUI logical zoom.
Pipeline zoom is tracked in raster-space units. Gtk callbacks and overlay drawing operate in logical widget coordinates, so the ppd correction belongs here rather than at every interactive call site.
| dev | the develop instance |
| scaling | the darkroom scaling factor to evaluate |
Definition at line 1964 of file develop.c.
References dt_dev_roi_request_natural_scale(), dt_gui_get_global(), IS_NULL_PTR, dt_gui_gtk_t::ppd, and scaling.
Referenced by _change_scaling().
| float dt_dev_get_zoom_level | ( | const dt_develop_t * | dev | ) |
Definition at line 1992 of file develop.c.
References dt_dev_roi_request_natural_scale(), dt_dev_viewport_scaling(), and IS_NULL_PTR.
Referenced by _dev_translate_roi(), dt_dev_check_zoom_pos_bounds(), dt_dev_coordinates_image_norm_to_widget(), dt_dev_coordinates_widget_delta_to_image_delta(), dt_dev_coordinates_widget_to_image_norm(), dt_dev_rescale_roi_to_input(), dt_dev_update_mouse_effect_radius(), and dt_masks_events_post_expose_with().
| float dt_dev_get_zoom_scale | ( | const dt_develop_t * | dev, |
| const gboolean | preview | ||
| ) |
Definition at line 989 of file develop.c.
References dt_dev_geometry_snapshot(), dt_dev_viewport_box_height(), dt_dev_viewport_box_width(), geometry, dt_develop_t::pipe, preview, dt_dev_pixelpipe_t::processed_height, and dt_dev_pixelpipe_t::processed_width.
Referenced by button_pressed(), and get_zoom_scale().
| void dt_dev_init | ( | dt_develop_t * | dev, |
| int32_t | gui_attached | ||
| ) |
Definition at line 143 of file develop.c.
References dt_develop_t::color_picker, dt_develop_t::colorscheme, dt_develop_t::display_histogram, dt_develop_t::display_samples, DT_CLIPPING_PREVIEW_GAMUT, DT_CLIPPING_PREVIEW_SATURATION, dt_conf_get_bool(), dt_conf_get_float(), dt_conf_get_int(), dt_dev_geometry_init(), dt_dev_load_modules(), DT_DEV_OVEREXPOSED_BLACKWHITE, DT_DEV_OVEREXPOSED_PURPLEGREEN, DT_DEV_OVEREXPOSED_REDBLUE, dt_dev_pixelpipe_init(), dt_dev_pixelpipe_init_preview(), DT_DEV_RAWOVEREXPOSED_BLACK, DT_DEV_RAWOVEREXPOSED_MODE_FALSECOLOR, DT_DEV_RAWOVEREXPOSED_MODE_MARK_CFA, DT_DEV_RAWOVEREXPOSED_RED, dt_dev_reset_roi(), dt_dev_roi_request_init(), dt_dev_set_backbuf(), dt_dev_set_history_hash(), dt_dev_viewport_new(), dt_geometry_chain_new(), dt_image_init(), DT_PIXELPIPE_CACHE_HASH_INVALID, dt_pthread_mutex_init(), dt_pthread_rwlock_init(), dt_pthread_rwlock_set_name(), dt_develop_t::geometry_chain, dt_develop_t::gui_attached, dt_develop_t::history_mutex, dt_develop_t::image_storage, dt_develop_t::iop, dt_develop_t::live_samples_enabled, dt_develop_t::lower, dt_develop_t::masks_mutex, dt_develop_t::mode, dt_develop_t::output_histogram, dt_develop_t::overexposed, dt_develop_t::pipe, dt_develop_t::preview_pipe, dt_develop_t::primary_sample, dt_develop_t::proxy, dt_develop_t::raw_histogram, dt_develop_t::rawoverexposed, dt_develop_t::restrict_histogram, dt_develop_t::threshold, dt_develop_t::transient_params_mutex, TRUE, dt_develop_t::upper, dt_develop_t::viewport, dt_develop_t::wb_coeffs, and dt_develop_t::wb_is_D65.
Referenced by _history_compress_apply(), _history_copy_and_paste_on_image_merge(), _styles_init_source_dev(), dt_dev_merge_history_into_image(), dt_dev_snapshot_capture(), dt_focus_draw_clusters(), dt_imageio_export_with_flags(), and init().
| int dt_dev_is_current_image | ( | dt_develop_t * | dev, |
| int32_t | imgid | ||
| ) |
checks if provided imgid is the image currently in develop
Definition at line 1323 of file develop.c.
References dt_image_t::id, and dt_develop_t::image_storage.
| dt_dev_image_storage_t dt_dev_load_image | ( | dt_develop_t * | dev, |
| const int32_t | imgid | ||
| ) |
Definition at line 1000 of file develop.c.
References _dt_dev_load_raw(), dt_dev_append_changed_tag(), dt_dev_get_global(), dt_dev_history_notify_change(), dt_dev_read_history_ext(), dt_dev_write_history_ext(), dt_image_cache_get(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), dt_pthread_rwlock_unlock(), dt_pthread_rwlock_wrlock(), dt_develop_t::history_mutex, dt_develop_t::image_storage, and IS_NULL_PTR.
Referenced by _studio_dev_setup(), dt_dev_snapshot_capture(), dt_focus_draw_clusters(), dt_imageio_export_with_flags(), and enter().
| GList * dt_dev_load_modules | ( | dt_develop_t * | dev | ) |
Definition at line 98 of file develop.c.
References dt_free, dt_iop_get_modules_so(), dt_iop_load_module_by_so(), dt_sort_iop_by_order(), and res.
Referenced by _studio_dev_setup(), dt_dev_init(), dt_dev_read_history_ext(), and enter().
| void dt_dev_masks_list_change | ( | dt_develop_t * | dev | ) |
Definition at line 1340 of file develop.c.
References dt_develop_t::list_change, dt_develop_t::masks, and dt_develop_t::proxy.
Referenced by dt_dev_read_history_ext().
| void dt_dev_masks_list_remove | ( | dt_develop_t * | dev, |
| int | formid, | ||
| int | parentid | ||
| ) |
Definition at line 1350 of file develop.c.
References dt_develop_t::list_remove, dt_develop_t::masks, and dt_develop_t::proxy.
| void dt_dev_masks_list_update | ( | dt_develop_t * | dev | ) |
Definition at line 1345 of file develop.c.
References dt_develop_t::list_update, dt_develop_t::masks, and dt_develop_t::proxy.
Referenced by dt_dev_history_commit_item_now().
| gboolean dt_dev_masks_manager_is_visible | ( | dt_develop_t * | dev | ) |
Definition at line 1334 of file develop.c.
References dt_develop_t::is_visible, dt_develop_t::masks, and dt_develop_t::proxy.
Referenced by expose().
| void dt_dev_masks_selection_change | ( | dt_develop_t * | dev, |
| struct dt_iop_module_t * | module, | ||
| const int | selectid, | ||
| const int | throw_event | ||
| ) |
Definition at line 1355 of file develop.c.
References dt_develop_t::masks, dt_develop_t::proxy, and dt_develop_t::selection_change.
Referenced by _blendop_masks_all_selection_changed(), _blendop_masks_group_selection_changed(), _masks_remove_or_delete_finish(), _tree_add_exist(), _tree_duplicate_shape(), dt_masks_events_button_released(), dt_masks_form_exit_creation(), and dt_masks_set_edit_mode().
| void dt_dev_masks_update_hash | ( | dt_develop_t * | dev | ) |
integrity hash of the forms/shapes stack
Definition at line 1921 of file develop.c.
References dt_masks_form_get_own_hash(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), dt_develop_t::forms, dt_develop_t::forms_changed, dt_develop_t::forms_hash, and dt_develop_t::masks_mutex.
Referenced by _delayed_history_commit(), and dt_dev_read_history_ext().
| dt_iop_module_t * dt_dev_module_duplicate | ( | dt_develop_t * | dev, |
| dt_iop_module_t * | base | ||
| ) |
duplicate a existent module
Definition at line 1370 of file develop.c.
References dt_iop_module_t::dev, dt_iop_load_module(), dt_iop_update_multi_priority(), dt_ioppr_insert_module_instance(), dt_ioppr_move_iop_after(), dt_sort_iop_by_order(), FALSE, dt_iop_module_t::instance, dt_develop_t::iop, dt_iop_module_t::multi_name, dt_iop_module_t::multi_priority, dt_iop_module_t::so, and TRUE.
| gboolean dt_dev_module_geometry_gui | ( | struct dt_develop_t * | dev, |
| struct dt_iop_module_t * | module, | ||
| dt_iop_roi_t * | in, | ||
| dt_iop_roi_t * | out | ||
| ) |
One module's own input and output rectangles at full resolution, from the geometry service.
Replaces resolving a piece and reading piece->buf_in / piece->buf_out. Returns FALSE when the service has none, leaving the out-params untouched – a disabled or absent module has no rectangles, and a caller that draws anyway draws somewhere arbitrary.
Definition at line 1751 of file develop.c.
References dt_geometry_chain_authoritative(), dt_geometry_chain_find(), FALSE, dt_develop_t::geometry_chain, dt_geometry_record_t::in, IS_NULL_PTR, dt_iop_module_t::multi_priority, dt_iop_module_t::op, out, dt_geometry_record_t::out, and TRUE.
Referenced by _aspect_ratio_get(), _commit_box(), _iop_clipping_set_max_clip(), _lens_corrections_available(), _ratio_get_aspect(), _set_max_clip(), button_pressed(), commit_box(), do_crop(), dt_drawlayer_raw_placement_gui(), gui_post_expose(), mouse_moved(), set_grad_from_points(), and set_points_from_grad().
| void dt_dev_module_remove | ( | dt_develop_t * | dev, |
| struct dt_iop_module_t * | module | ||
| ) |
remove an existent module
Definition at line 1442 of file develop.c.
References DT_DEBUG_HISTORY, dt_dev_free_history_item(), dt_dev_get_history_end_ext(), dt_dev_history_undo_end_record_locked(), dt_dev_history_undo_invalidate_module(), dt_dev_history_undo_start_record_locked(), dt_dev_set_history_end_ext(), dt_print(), dt_pthread_rwlock_unlock(), dt_pthread_rwlock_wrlock(), dt_develop_t::gui_attached, dt_develop_t::history, dt_develop_t::history_mutex, dt_develop_t::iop, IS_NULL_PTR, MAX, dt_dev_history_item_t::multi_name, and dt_dev_history_item_t::op_name.
Referenced by _gui_delete_callback().
| void dt_dev_modulegroups_switch_tab | ( | dt_develop_t * | dev, |
| struct dt_iop_module_t * | module | ||
| ) |
request modulegroups to show the group of the given module
Definition at line 1328 of file develop.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_DEVELOP_MODULEGROUPS_SET, and IS_NULL_PTR.
Referenced by dt_iop_request_focus().
| void dt_dev_modules_update_multishow | ( | dt_develop_t * | dev | ) |
Definition at line 1545 of file develop.c.
References _dev_module_update_multishow(), dt_dev_get_history_end_ext(), dt_iop_gui_module_is_visible(), dt_ioppr_check_iop_order(), dt_develop_t::history, dt_iop_module_t::instance, dt_dev_multishow_state_t::instance_counts, dt_develop_t::iop, key, and state.
Referenced by _update_iop_visibility().
| gboolean dt_dev_pipelines_share_preview_output | ( | dt_develop_t * | dev | ) |
Tell whether the darkroom main and preview pipes currently target the same GUI output.
When both pipes would render the same geometry, preview must run first so the main pipe can reuse its backbuffer instead of recomputing the same image concurrently.
Definition at line 504 of file develop.c.
References _update_darkroom_roi(), dt_dev_roi_request_valid(), FALSE, dt_develop_t::gui_attached, IS_NULL_PTR, dt_develop_t::pipe, and dt_develop_t::preview_pipe.
Referenced by expose().
| gboolean dt_dev_pixelpipe_has_preview_output | ( | const dt_develop_t * | dev, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_iop_roi_t * | roi | ||
| ) |
Definition at line 402 of file develop.c.
References _update_darkroom_roi(), dt_dev_roi_request_of_pipe(), FALSE, dt_develop_t::gui_attached, height, dt_iop_roi_t::height, IS_NULL_PTR, dt_dev_roi_request_t::natural_scale, dt_dev_roi_request_t::preview_height, dt_dev_roi_request_t::preview_width, dt_iop_roi_t::scale, dt_dev_roi_request_t::valid, width, dt_iop_roi_t::width, x, dt_iop_roi_t::x, and dt_iop_roi_t::y.
Referenced by __attribute__(), __attribute__(), __attribute__(), _process_common_setup(), commit_params(), commit_params(), distort_backtransform(), distort_transform(), dt_dev_darkroom_pipeline(), process(), process(), process_cl(), process_cl(), process_common_cleanup(), process_drago(), and process_wavelets().
| dt_job_t * dt_dev_process_job_create | ( | dt_develop_t * | dev | ) |
Definition at line 900 of file develop.c.
References dt_control_job_create(), dt_control_job_set_params(), dt_dev_process_job_run(), and IS_NULL_PTR.
Referenced by dt_dev_start_all_pipelines().
|
static |
Definition at line 893 of file develop.c.
References dt_control_job_get_params(), and dt_dev_darkroom_pipeline().
Referenced by dt_dev_process_job_create().
| gboolean dt_dev_processed_size_gui | ( | dt_develop_t * | dev, |
| int * | width, | ||
| int * | height | ||
| ) |
One module's own input and output rectangles, at full resolution.
The developed image's full-resolution size for a GUI caller: the geometry service, then the published record, in that order of freshness. FALSE when neither has one.
What a module GUI used to get by resolving its piece on a pixel-less clone of the pipeline and reading piece->buf_in / piece->buf_out. Those rectangles are a product of the size fold, and the geometry service performs that fold over records for EVERY module – not only the ones that change geometry, because not only those read the result: iop/graduatednd.c has no geometry callbacks at all and normalises its overlay against its own output rectangle.
in and out are untouched and the caller must not draw. A module that is disabled or absent has no rectangles.The developed image's full-resolution size, for a GUI caller.
Two sources, in order of freshness, which is why this exists rather than a plain read of the geometry record: the chain is recomputed the moment the module stack changes, while the record is only republished when the size path runs. Code that needed the newest answer used to reach into a pipe's processed_width field to get it, and had to keep its own fallback for the case where that pipe had none.
Definition at line 1730 of file develop.c.
References dt_dev_geometry_snapshot(), dt_geometry_chain_authoritative(), dt_geometry_chain_processed_size(), FALSE, geometry, dt_develop_t::geometry_chain, height, IS_NULL_PTR, TRUE, and width.
| gboolean dt_dev_rescale_roi | ( | dt_develop_t * | dev, |
| cairo_t * | cr, | ||
| int32_t | width, | ||
| int32_t | height | ||
| ) |
Scale the ROI to fit within given width/height, centered.
| dev | the develop instance |
| cr | the cairo context to draw on |
| width | the widget width |
| height | the widget height |
Definition at line 2071 of file develop.c.
References _dev_translate_roi(), dt_dev_get_fit_scale(), FALSE, height, TRUE, and width.
Referenced by _darkroom_pickers_draw(), expose(), expose(), and gui_post_expose().
| gboolean dt_dev_rescale_roi_to_input | ( | dt_develop_t * | dev, |
| cairo_t * | cr, | ||
| int32_t | width, | ||
| int32_t | height | ||
| ) |
Scale the ROI to fit the input size within given width/height, centered.
| dev | the develop instance |
| cr | the cairo context to draw on |
| width | the widget width |
| height | the widget height |
Definition at line 2081 of file develop.c.
References _dev_translate_roi(), dt_dev_get_zoom_level(), dt_gui_get_global(), FALSE, height, dt_gui_gtk_t::ppd, TRUE, and width.
Referenced by _overlay_apply_transform(), and gui_post_expose().
| void dt_dev_reset_roi | ( | dt_develop_t * | dev | ) |
Definition at line 1998 of file develop.c.
References dt_dev_viewport_reset().
Referenced by dt_dev_init(), and reset().
|
static |
Definition at line 521 of file develop.c.
References dt_dev_pixelpipe_t::backbuf, dt_dev_pixelpipe_t::dev, dt_colorprofiles_settings_t::display_type, dt_colorprofiles_get_settings(), dt_dev_backbuf_snapshot(), dt_dev_pixelpipe_cache_rdlock_entry(), dt_dev_pixelpipe_cache_ref_count_entry(), dt_dev_pixelpipe_cache_ref_entry_by_hash(), dt_dev_pixelpipe_get_hash(), dt_mipmap_cache_get_fitting_size(), dt_mipmap_cache_swap_at_size(), FALSE, dt_backbuf_state_t::height, dt_image_t::id, dt_develop_t::image_storage, TRUE, and dt_backbuf_state_t::width.
Referenced by dt_dev_darkroom_pipeline().
| void dt_dev_set_backbuf | ( | dt_backbuf_t * | backbuf, |
| const int | width, | ||
| const int | height, | ||
| const size_t | bpp, | ||
| const int64_t | hash, | ||
| const int64_t | history_hash | ||
| ) |
Definition at line 2134 of file develop.c.
References dt_backbuf_t::bpp, bpp, dt_atomic_set_uint64(), dt_dev_backbuf_publish_begin(), dt_dev_backbuf_publish_end(), dt_backbuf_t::hash, height, dt_backbuf_t::height, dt_backbuf_t::history_hash, width, and dt_backbuf_t::width.
Referenced by _clear_histogram_backbuf(), _publisher_main(), _refresh_global_histogram_backbuf_for_hash(), _studio_dev_teardown(), _update_backbuf_cache_reference(), dt_dev_init(), dt_dev_pixelpipe_cleanup(), dt_dev_pixelpipe_init_cached(), leave(), test_field_by_field_read_crosses_publications(), test_single_field_setter_is_a_publication(), and test_snapshot_never_crosses_publications().
| void dt_dev_set_history_end_ext | ( | struct dt_develop_t * | dev, |
| const uint32_t | index | ||
| ) |
Set the history end index (GUI perspective).
The index is 1-based with 0 representing the raw input image. The value is sanitized against the actual history length.
| dev | Develop context. |
| index | New history end index. |
Definition at line 1905 of file develop.c.
References dt_dev_history_compute_hash(), dt_dev_set_history_hash(), dt_develop_t::history, and dt_develop_t::history_end.
Referenced by _dt_dev_history_compress_internal(), _history_apply_history_end(), _hm_restore_dest_from_backup(), _pop_undo(), _styles_rebuild_history_from_items(), dt_dev_add_history_item_ext(), dt_dev_module_remove(), dt_dev_read_history_ext(), dt_dev_snapshot_capture(), and dt_history_merge().
| void dt_dev_signal_modules_moved | ( | dt_develop_t * | dev | ) |
reorder the module list
Definition at line 1848 of file develop.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_DEVELOP_MODULE_MOVED, and IS_NULL_PTR.
Referenced by dt_dev_history_refresh_nodes_ext(), and dt_iop_gui_commit_iop_order_change().
| void dt_dev_snapshot_request | ( | dt_develop_t * | dev, |
| const char * | filename | ||
| ) |
request snapshot
Definition at line 1362 of file develop.c.
References dt_control_queue_redraw_center(), dt_develop_t::filename, dt_develop_t::proxy, dt_develop_t::request, dt_develop_t::snapshot, and TRUE.
| void dt_dev_start_all_pipelines | ( | dt_develop_t * | dev | ) |
Definition at line 908 of file develop.c.
References dt_control_add_job_res(), dt_control_get_global(), DT_CTL_WORKER_DARKROOM, dt_dev_process_job_create(), dt_develop_t::pipelines_started, and TRUE.
Referenced by _darkroom_image_loaded_callback(), and _studio_dev_setup().
| void dt_dev_undo_end_record | ( | dt_develop_t * | dev | ) |
Definition at line 1865 of file develop.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_history_undo_end_record(), DT_SIGNAL_DEVELOP_HISTORY_CHANGE, DT_VIEW_DARKROOM, dt_view_manager_get_current_view(), dt_view_manager_get_global(), and dt_develop_t::gui_attached.
Referenced by _darkroom_image_loaded_callback(), _gui_delete_callback(), _history_apply_history_end(), _styles_apply_callback(), _tree_delete_unused(), compress_history_callback(), delete_history_callback(), dt_dev_history_commit_item_now(), dt_drawlayer_commit_dabs(), and gui_focus().
| void dt_dev_undo_start_record | ( | dt_develop_t * | dev | ) |
Definition at line 1854 of file develop.c.
References dt_dev_history_undo_start_record(), DT_VIEW_DARKROOM, dt_view_manager_get_current_view(), dt_view_manager_get_global(), and dt_develop_t::gui_attached.
Referenced by _darkroom_image_loaded_callback(), _gui_delete_callback(), _history_apply_history_end(), _styles_apply_callback(), _tree_delete_unused(), compress_history_callback(), delete_history_callback(), dt_dev_history_commit_item_now(), dt_drawlayer_commit_dabs(), and gui_focus().
| void dt_dev_update_mouse_effect_radius | ( | dt_develop_t * | dev | ) |
Convert absolute output-image coordinates to input image space by calling dt_dev_coordinates_image_abs_to_raw_abs() directly, then normalize with dt_dev_coordinates_raw_abs_to_raw_norm() when normalized raw coordinates are required.
Definition at line 2117 of file develop.c.
References DT_DEBUG_MASKS, dt_dev_get_zoom_level(), DT_PIXEL_APPLY_DPI, dt_print(), dt_screen_ppd(), dt_widget_mouse_radius(), and dt_widget_set_mouse_radius().
Referenced by dt_dev_get_thumbnail_size(), and dt_dev_pixelpipe_change_zoom_main().
| gchar * dt_history_item_get_label | ( | const struct dt_iop_module_t * | module | ) |
generate item multi-instance name with mnemonics, for Gtk labels
Definition at line 1613 of file develop.c.
References dt_free, and dt_iop_module_t::multi_name.
Referenced by _iop_panel_label().
| gchar * dt_history_item_get_name | ( | const struct dt_iop_module_t * | module | ) |
Get the module multi name, or the module name if no multi name is provided
Definition at line 1645 of file develop.c.
References delete_underscore(), dt_capitalize_label(), dt_free, and dt_iop_module_t::multi_name.
Referenced by _darkroom_autoset_label(), _gui_changed_callback(), _gui_off_callback(), _lib_snapshots_add_button_clicked_callback(), _mask_indicator_tooltip(), _modchooser_run(), _print_nan_debug(), _print_perf_debug(), _tree_format_form_usage_label(), dt_dev_pixelpipe_process_rec(), dt_iop_gui_init_blendif(), dt_iop_gui_init_masks(), dt_iop_set_mask_mode(), dt_masks_group_name_for_module(), and dt_masks_iop_combo_populate().
| gchar * dt_history_item_get_name_html | ( | const struct dt_iop_module_t * | module | ) |
Definition at line 1661 of file develop.c.
References delete_underscore(), dt_free, and dt_iop_module_t::multi_name.
| gboolean dt_masks_get_lock_mode | ( | dt_develop_t * | dev | ) |
Definition at line 1877 of file develop.c.
References dt_gui_get_global(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, dt_develop_t::gui_attached, dt_develop_t::mask_lock, mutex, and state.
| void dt_masks_set_lock_mode | ( | dt_develop_t * | dev, |
| gboolean | mode | ||
| ) |
Definition at line 1889 of file develop.c.
References dt_gui_get_global(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_develop_t::gui_attached, dt_develop_t::mask_lock, and mutex.