Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
develop.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2021 darktable developers.
4
5 darktable is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 darktable is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include <cairo.h>
22#include <glib.h>
23#include <inttypes.h>
24#include <stdint.h>
25
26#include "common/debug.h"
27#include "common/darktable.h"
28#include "common/dtpthread.h"
29#include "common/image.h"
30#include "control/settings.h"
31#include "develop/imageop.h"
32#include "develop/dev_history.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38struct dt_iop_module_t;
39
46
56
62
69
78
105
113
121
128{
129 struct dt_iop_module_t *module;
130 float (*get_exposure)(struct dt_iop_module_t *exp);
131 float (*get_black)(struct dt_iop_module_t *exp);
133
134struct dt_dev_pixelpipe_t;
135
136typedef struct dt_backbuf_t
137{
138 void *buffer; // image data
139 size_t width; // pixel size of image
140 size_t height; // pixel size of image
141 uint64_t hash; // checksum/integrity hash, for example to connect to a cacheline
142 const char *op; // name of the backbuf
143 size_t bpp; // bits per pixels
145
146
147typedef struct dt_develop_t
148{
149 // != 0 if the gui should be notified of changes in hist stack and modules should be
150 // gui_init'ed.
151 int32_t gui_attached;
152
153 int exit; // set to 1 to close background darkroom pipeline threads
156 struct dt_iop_module_t *gui_module; // this module claims gui expose/event callbacks.
157
158 // darkroom border size: ISO 12646 borders or user-defined borders
159 int32_t border_size;
160
161 // Those are the darkroom main widget size, aka max paintable area.
162 // This size is allocated by Gtk from the window size minus all panels.
163 // It is NOT the size of the backbuffer/ROI.
165
166 // width = orig_width - 2 * border_size,
167 // height = orig_height - 2 * border_size,
168 // aka the surface actually covered by an image backbuffer (ROI)
169 // set by `dt_dev_configure()`
170 int32_t width, height;
171
172 // natural scaling = MIN(dev->width / dev->pipe->processed_width, dev->height / dev->pipe->processed_height)
173 // aka ensure that image fits into widget minus margins/borders.
175
176 // User-defined scaling factor, related to GUI zoom.
177 // Applies on top of natural scale
178 float scaling;
179
180 // Relative coordinates of the center of the ROI, expressed with
181 // regard to the complete image.
182 float x, y;
183
184 // image processing pipeline with caching
186
187 // image under consideration, which
188 // is copied each time an image is changed. this means we have some information
189 // always cached (might be out of sync, so stars are not reliable), but for the iops
190 // it's quite a convenience to access trivial stuff which is constant anyways without
191 // calling into the cache explicitly. this should never be accessed directly, but
192 // by the iop through the copy their respective pixelpipe holds, for thread-safety.
194
195 // history stack
196 dt_pthread_mutex_t history_mutex;
197 int32_t history_end;
199
200 // operations pipeline
203 // iop's to be deleted
205
206 // iop order
209
210 // profiles info
212
213 // histogram for display.
216
217 // list of forms iop can use for masks or whatever
219 // integrity hash of forms
221 // forms have been added or removed or changed and need to be committed to history
225 // all forms to be linked here for cleanup:
227
228 dt_backbuf_t raw_histogram; // backbuf to prepare the raw histogram (before white balance)
229 dt_backbuf_t output_histogram; // backbuf to prepare the display-agnostic output histogram (in the middle of colorout)
230 dt_backbuf_t display_histogram; // backbuf to prepare the display-referred output histogram (at the far end of the pipe)
231
232 // if dev is GUI-attached, auto save history 15s after the last change is made.
234
235 // Track history changes from C. Note: we have a DB variant.
237
238 /* proxy for communication between plugins and develop/darkroom */
239 struct
240 {
241 // list of exposure iop instances, with plugin hooks, used by histogram dragging functions
242 // each element is dt_dev_proxy_exposure_t
244
245 // modulegroups plugin hooks
246 struct
247 {
248 struct dt_lib_module_t *module;
249 /* switch module group */
250 void (*set)(struct dt_lib_module_t *self, uint32_t group);
251 /* get current module group */
252 uint32_t (*get)(struct dt_lib_module_t *self);
253 /* get activated module group */
254 uint32_t (*get_activated)(struct dt_lib_module_t *self);
255 /* test if iop group flags matches modulegroup */
256 gboolean (*test)(struct dt_lib_module_t *self, uint32_t group, uint32_t iop_group);
257 /* switch to modulegroup */
259 /* update modulegroup visibility */
261 /* test if module is preset in one of the current groups */
262 gboolean (*test_visible)(struct dt_lib_module_t *self, gchar *module);
264
265 // snapshots plugin hooks
266 struct
267 {
268 // this flag is set by snapshot plugin to signal that expose of darkroom
269 // should store cairo surface as snapshot to disk using filename.
270 gboolean request;
271 const gchar *filename;
273
274 // masks plugin hooks
275 struct
276 {
277 struct dt_lib_module_t *module;
278 /* treview list refresh */
280 void (*list_remove)(struct dt_lib_module_t *self, int formid, int parentid);
282 /* selected forms change */
283 void (*selection_change)(struct dt_lib_module_t *self, struct dt_iop_module_t *module, const int selectid, const int throw_event);
285
286 // what is the ID of the module currently doing pipeline chromatic adaptation ?
287 // this is to prevent multiple modules/instances from doing white balance globally.
288 // only used to display warnings in GUI of modules that should probably not be doing white balance
290
291 // is the WB module using D65 illuminant and not doing full chromatic adaptation ?
292 gboolean wb_is_D65;
293 dt_aligned_pixel_t wb_coeffs;
294
296
297 // for the overexposure indicator
298 struct
299 {
300 GtkWidget *floating_window, *button; // yes, having gtk stuff in here is ugly. live with it.
301
302 gboolean enabled;
304 float lower;
305 float upper;
308
309 // for the raw overexposure indicator
310 struct
311 {
312 GtkWidget *floating_window, *button; // yes, having gtk stuff in here is ugly. live with it.
313
314 gboolean enabled;
319
320 struct
321 {
322 GtkWidget *floating_window, *button; // 10 years later, still ugly
323
327
328 // ISO 12646-compliant colour assessment conditions
329 struct
330 {
331 GtkWidget *button; // yes, ugliness is the norm. what did you expect ?
332 gboolean enabled;
334
335 // the display profile related things (softproof, gamut check, profiles ...)
336 struct
337 {
340
341 int mask_form_selected_id; // select a mask inside an iop
342 gboolean darkroom_skip_mouse_events; // skip mouse events for masks
343 gboolean mask_lock;
346
347void dt_dev_init(dt_develop_t *dev, int32_t gui_attached);
349
352// launch jobs above
355
356// Lazy helpers that will update GUI pipelines (main image and small preview)
357// only when needed, and only the one(s) needed.
359#define dt_dev_refresh_ui_images(dev) DT_DEBUG_TRACE_WRAPPER(DT_DEBUG_DEV, dt_dev_refresh_ui_images_real, (dev))
360
361int dt_dev_load_image(dt_develop_t *dev, const int32_t imgid);
363int dt_dev_is_current_image(dt_develop_t *dev, int32_t imgid);
364
365
366// Force a full rebuild of the pipe, needed when module order is changed.
367// Resync the full history, which may be expensive.
368// Pixelpipe cache will need to be flushed too when this is called,
369// for raster masks to work properly.
371
373// Invalidate the main image preview in darkroom, resync only the last history item.
374// This is the most common usecase when interacting with modules and masks.
375#define dt_dev_invalidate(dev) DT_DEBUG_TRACE_WRAPPER(DT_DEBUG_DEV, dt_dev_invalidate_real, (dev))
376
378// Invalidate the thumbnail preview in darkroom, resync only the last history item.
379#define dt_dev_invalidate_preview(dev) DT_DEBUG_TRACE_WRAPPER(DT_DEBUG_DEV, dt_dev_invalidate_preview_real, (dev))
380
382// Invalidate the main image and the thumbnail in darkroom, resync only the last history item.
383#define dt_dev_invalidate_all(dev) DT_DEBUG_TRACE_WRAPPER(DT_DEBUG_DEV, dt_dev_invalidate_all_real, (dev))
384
386// Invalidate the main image preview in darkroom.
387// This doesn't resync history at all, only update the coordinates of the region of interest (ROI).
388#define dt_dev_invalidate_zoom(dev) DT_DEBUG_TRACE_WRAPPER(DT_DEBUG_DEV, dt_dev_invalidate_zoom_real, (dev))
389
391
392// Invalidate the main image and the thumbnail in darkroom.
393// Resync the whole history, which may be expensive.
395
396// Invalidate the main image in darkroom.
397// Resync the whole history, which may be expensive.
399
401
402// Flush caches of dev pipes and force a full recompute
404
405void dt_dev_get_processed_size(const dt_develop_t *dev, int *procw, int *proch);
406
407float dt_dev_get_zoom_scale(dt_develop_t *dev, gboolean preview);
408
420void dt_dev_get_pointer_full_pos(dt_develop_t *dev, const float px, const float py, float *mouse_x, float *mouse_y);
421
422void dt_dev_configure_real(dt_develop_t *dev, int wd, int ht);
423#define dt_dev_configure(dev, wd, ht) DT_DEBUG_TRACE_WRAPPER(DT_DEBUG_DEV, dt_dev_configure_real, (dev), (wd), (ht))
424
425void dt_dev_check_zoom_pos_bounds(dt_develop_t *dev, float *dev_x, float *dev_y, float *box_w, float *box_h);
426
427/*
428 * exposure plugin hook, set the exposure and the black level
429 */
430
435
436/*
437 * modulegroups plugin hooks
438 */
444void dt_dev_modulegroups_set(dt_develop_t *dev, uint32_t group);
449
451void dt_dev_snapshot_request(dt_develop_t *dev, const char *filename);
452
454void dt_dev_average_delay_update(const dt_times_t *start, uint32_t *average_delay);
455
456/*
457 * masks plugin hooks
458 */
461void dt_dev_masks_list_remove(dt_develop_t *dev, int formid, int parentid);
462void dt_dev_masks_selection_change(dt_develop_t *dev, struct dt_iop_module_t *module, const int selectid, const int throw_event);
463
466
467/*
468 * multi instances
469 */
476
478gchar *dt_history_item_get_name(const struct dt_iop_module_t *module);
479gchar *dt_history_item_get_name_html(const struct dt_iop_module_t *module);
480
482gchar *dt_history_item_get_label(const struct dt_iop_module_t *module);
483
484
485/*
486 * distort functions
487 */
489int dt_dev_distort_transform(dt_develop_t *dev, float *points, size_t points_count);
491int dt_dev_distort_backtransform(dt_develop_t *dev, float *points, size_t points_count);
493int dt_dev_distort_transform_plus(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction,
494 float *points, size_t points_count);
497 const int transf_direction, float *points, size_t points_count);
499int dt_dev_distort_backtransform_plus(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction,
500 float *points, size_t points_count);
503 const int transf_direction, float *points, size_t points_count);
504
507 struct dt_iop_module_t *module);
508/*
509 * hash functions
510 */
514int dt_dev_wait_hash(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, dt_pthread_mutex_t *lock,
515 const volatile uint64_t *const hash);
521int dt_dev_sync_pixelpipe_hash(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, dt_pthread_mutex_t *lock,
522 const volatile uint64_t *const hash);
523
524/*
525 * history undo support helpers for darkroom
526 */
527
528/* all history change must be enclosed into a start / end call */
531
532// Getter and setter for global mask lock (GUI)
533// Can be overriden by key accels
534
536void dt_masks_set_lock_mode(dt_develop_t *dev, gboolean mode);
537
538// Count all the mask forms used x history entries, up to a certain threshold.
539// Stop counting when the threshold is reached, for performance.
540guint dt_dev_mask_history_overload(GList *dev_history, guint threshold);
541
542// Write the `darktable|changed` tag on the current picture upon history modification
543void dt_dev_append_changed_tag(const int32_t imgid);
544
559void dt_dev_get_final_size(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const int32_t imgid, const int input_width, const int input_height, int *processed_width, int *processed_height);
560
561
562// This needs to run after `dt_dev_pixelpipe_get_roi_out()` so `pipe->processed_width`
563// and `pipe->processed_height` are defined.
564// Natural scale is the rescaling factor such that the full-res pipeline output
565// (real or virtual) fits within darkroom widget area (minus borders/margins)
567
568// Reset darkroom ROI scaling and position
570
581gboolean dt_dev_clip_roi(dt_develop_t *dev, cairo_t *cr, int32_t width, int32_t height);
582
593gboolean dt_dev_rescale_roi(dt_develop_t *dev, cairo_t *cr, int32_t width, int32_t height);
594
602
603#ifdef __cplusplus
604}
605#endif
606
607// clang-format off
608// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
609// vim: shiftwidth=2 expandtab tabstop=2 cindent
610// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
611// clang-format on
int width
Definition bilateral.h:1
int height
Definition bilateral.h:1
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
void dt_dev_get_final_size(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const int32_t imgid, const int input_width, const int input_height, int *processed_width, int *processed_height)
Compute the theoritical final size of a pipeline taking the full-resolution image at input.
Definition develop.c:1387
int dt_dev_wait_hash(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, dt_pthread_mutex_t *lock, const volatile uint64_t *const hash)
Definition develop.c:1201
void dt_dev_masks_list_change(dt_develop_t *dev)
Definition develop.c:844
int dt_dev_distort_backtransform_locked(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count)
Definition develop.c:1148
void dt_dev_get_processed_size(const dt_develop_t *dev, int *procw, int *proch)
Definition develop.c:743
void dt_masks_set_lock_mode(dt_develop_t *dev, gboolean mode)
Definition develop.c:1331
dt_dev_overexposed_colorscheme_t
Definition develop.h:41
@ DT_DEV_OVEREXPOSED_PURPLEGREEN
Definition develop.h:44
@ DT_DEV_OVEREXPOSED_REDBLUE
Definition develop.h:43
@ DT_DEV_OVEREXPOSED_BLACKWHITE
Definition develop.h:42
uint32_t dt_dev_modulegroups_get(dt_develop_t *dev)
Definition develop.c:824
void dt_dev_invalidate_preview_real(dt_develop_t *dev)
Definition develop.c:362
void dt_dev_reprocess_all(dt_develop_t *dev)
Definition develop.c:733
void dt_dev_cleanup(dt_develop_t *dev)
Definition develop.c:176
void dt_dev_module_remove(dt_develop_t *dev, struct dt_iop_module_t *module)
Definition develop.c:956
dt_dev_overlay_colors_t
Definition develop.h:48
@ DT_DEV_OVERLAY_CYAN
Definition develop.h:53
@ DT_DEV_OVERLAY_YELLOW
Definition develop.h:52
@ DT_DEV_OVERLAY_RED
Definition develop.h:50
@ DT_DEV_OVERLAY_GREEN
Definition develop.h:51
@ DT_DEV_OVERLAY_GRAY
Definition develop.h:49
@ DT_DEV_OVERLAY_MAGENTA
Definition develop.h:54
void dt_dev_process_image_job(dt_develop_t *dev)
Definition develop.c:615
int dt_dev_distort_transform_plus(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count)
Definition develop.c:1138
int dt_dev_distort_backtransform(dt_develop_t *dev, float *points, size_t points_count)
Definition develop.c:1103
dt_dev_pixelpipe_display_mask_t
Definition develop.h:80
@ DT_DEV_PIXELPIPE_DISPLAY_a
Definition develop.h:86
@ DT_DEV_PIXELPIPE_DISPLAY_OUTPUT
Definition develop.h:84
@ DT_DEV_PIXELPIPE_DISPLAY_G
Definition develop.h:89
@ DT_DEV_PIXELPIPE_DISPLAY_L
Definition develop.h:85
@ DT_DEV_PIXELPIPE_DISPLAY_CHANNEL
Definition develop.h:83
@ DT_DEV_PIXELPIPE_DISPLAY_ANY
Definition develop.h:102
@ DT_DEV_PIXELPIPE_DISPLAY_LCH_h
Definition develop.h:93
@ DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_hz
Definition develop.h:99
@ DT_DEV_PIXELPIPE_DISPLAY_HSL_H
Definition develop.h:94
@ DT_DEV_PIXELPIPE_DISPLAY_PASSTHRU_MONO
Definition develop.h:101
@ DT_DEV_PIXELPIPE_DISPLAY_HSL_S
Definition develop.h:95
@ DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_Cz
Definition develop.h:98
@ DT_DEV_PIXELPIPE_DISPLAY_LCH_C
Definition develop.h:92
@ DT_DEV_PIXELPIPE_DISPLAY_b
Definition develop.h:87
@ DT_DEV_PIXELPIPE_DISPLAY_STICKY
Definition develop.h:103
@ DT_DEV_PIXELPIPE_DISPLAY_MASK
Definition develop.h:82
@ DT_DEV_PIXELPIPE_DISPLAY_JzCzhz_Jz
Definition develop.h:97
@ DT_DEV_PIXELPIPE_DISPLAY_PASSTHRU
Definition develop.h:100
@ DT_DEV_PIXELPIPE_DISPLAY_NONE
Definition develop.h:81
@ DT_DEV_PIXELPIPE_DISPLAY_HSL_l
Definition develop.h:96
@ DT_DEV_PIXELPIPE_DISPLAY_GRAY
Definition develop.h:91
@ DT_DEV_PIXELPIPE_DISPLAY_B
Definition develop.h:90
@ DT_DEV_PIXELPIPE_DISPLAY_R
Definition develop.h:88
dt_dev_transform_direction_t
Definition develop.h:71
@ DT_DEV_TRANSFORM_DIR_BACK_EXCL
Definition develop.h:76
@ DT_DEV_TRANSFORM_DIR_BACK_INCL
Definition develop.h:75
@ DT_DEV_TRANSFORM_DIR_FORW_INCL
Definition develop.h:73
@ DT_DEV_TRANSFORM_DIR_ALL
Definition develop.h:72
@ DT_DEV_TRANSFORM_DIR_FORW_EXCL
Definition develop.h:74
void dt_dev_invalidate_zoom_real(dt_develop_t *dev)
Definition develop.c:334
int dt_dev_distort_backtransform_plus(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count)
Definition develop.c:1177
void dt_dev_append_changed_tag(const int32_t imgid)
Definition develop.c:1353
void dt_dev_invalidate_all_real(dt_develop_t *dev)
Definition develop.c:376
void dt_dev_masks_selection_change(dt_develop_t *dev, struct dt_iop_module_t *module, const int selectid, const int throw_event)
Definition develop.c:859
void dt_dev_init(dt_develop_t *dev, int32_t gui_attached)
Definition develop.c:77
int dt_dev_is_current_image(dt_develop_t *dev, int32_t imgid)
Definition develop.c:785
void dt_dev_undo_start_record(dt_develop_t *dev)
Definition develop.c:1295
void dt_dev_get_pointer_full_pos(dt_develop_t *dev, const float px, const float py, float *mouse_x, float *mouse_y)
Get the pointer position in relation of processed image [0..1]. This takes into account the borders a...
Definition develop.c:769
dt_dev_rawoverexposed_mode_t
Definition develop.h:57
@ DT_DEV_RAWOVEREXPOSED_MODE_FALSECOLOR
Definition develop.h:60
@ DT_DEV_RAWOVEREXPOSED_MODE_MARK_CFA
Definition develop.h:58
@ DT_DEV_RAWOVEREXPOSED_MODE_MARK_SOLID
Definition develop.h:59
void dt_dev_snapshot_request(dt_develop_t *dev, const char *filename)
Definition develop.c:866
void dt_dev_modulegroups_update_visibility(dt_develop_t *dev)
Definition develop.c:838
gboolean dt_masks_get_lock_mode(dt_develop_t *dev)
Definition develop.c:1319
float dt_dev_exposure_get_black(dt_develop_t *dev)
Definition develop.c:809
gchar * dt_history_item_get_label(const struct dt_iop_module_t *module)
Definition develop.c:1058
void dt_dev_modulegroups_set(dt_develop_t *dev, uint32_t group)
Definition develop.c:818
gchar * dt_history_item_get_name_html(const struct dt_iop_module_t *module)
Definition develop.c:1086
void dt_dev_modulegroups_switch(dt_develop_t *dev, struct dt_iop_module_t *module)
Definition develop.c:832
void dt_dev_check_zoom_pos_bounds(dt_develop_t *dev, float *dev_x, float *dev_y, float *box_w, float *box_h)
Definition develop.c:702
gboolean dt_dev_check_zoom_scale_bounds(dt_develop_t *dev)
Ensure that the current zoom level is within allowed bounds.
Definition develop.c:1490
int dt_dev_distort_transform_locked(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, float *points, size_t points_count)
Definition develop.c:1109
dt_clipping_preview_mode_t
Definition develop.h:115
@ DT_CLIPPING_PREVIEW_ANYRGB
Definition develop.h:117
@ DT_CLIPPING_PREVIEW_GAMUT
Definition develop.h:116
@ DT_CLIPPING_PREVIEW_SATURATION
Definition develop.h:119
@ DT_CLIPPING_PREVIEW_LUMINANCE
Definition develop.h:118
struct dt_dev_pixelpipe_iop_t * dt_dev_distort_get_iop_pipe(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, struct dt_iop_module_t *module)
Definition develop.c:1186
void dt_dev_invalidate_zoom_preview(dt_develop_t *dev)
Definition develop.c:348
void dt_dev_reset_roi(dt_develop_t *dev)
Definition develop.c:1442
struct dt_iop_module_t * dt_dev_module_duplicate(dt_develop_t *dev, struct dt_iop_module_t *base)
Definition develop.c:884
float dt_dev_get_natural_scale(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe)
Definition develop.c:1431
dt_dev_pipe_type_t
Definition develop.h:123
@ DT_DEV_PREVIEW_PIPE
Definition develop.h:125
@ DT_DEV_PIPE
Definition develop.h:124
void dt_dev_process_preview(dt_develop_t *dev)
Definition develop.c:251
void dt_dev_invalidate_real(dt_develop_t *dev)
Definition develop.c:320
void dt_dev_average_delay_update(const dt_times_t *start, uint32_t *average_delay)
Definition develop.c:873
int dt_dev_sync_pixelpipe_hash(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe, const double iop_order, const int transf_direction, dt_pthread_mutex_t *lock, const volatile uint64_t *const hash)
Definition develop.c:1243
void dt_dev_configure_real(dt_develop_t *dev, int wd, int ht)
Definition develop.c:678
void dt_dev_process_preview_job(dt_develop_t *dev)
Definition develop.c:609
void dt_dev_pixelpipe_resync_all(dt_develop_t *dev)
Definition develop.c:312
void dt_dev_masks_update_hash(dt_develop_t *dev)
Definition develop.c:1366
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.
Definition develop.c:1450
dt_dev_rawoverexposed_colorscheme_t
Definition develop.h:63
@ DT_DEV_RAWOVEREXPOSED_RED
Definition develop.h:64
@ DT_DEV_RAWOVEREXPOSED_BLUE
Definition develop.h:66
@ DT_DEV_RAWOVEREXPOSED_BLACK
Definition develop.h:67
@ DT_DEV_RAWOVEREXPOSED_GREEN
Definition develop.h:65
void dt_dev_undo_end_record(dt_develop_t *dev)
Definition develop.c:1308
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.
Definition develop.c:1472
float dt_dev_get_zoom_scale(dt_develop_t *dev, gboolean preview)
Definition develop.c:644
void dt_dev_modules_update_multishow(dt_develop_t *dev)
Definition develop.c:1041
dt_develop_detail_mmask_t
Definition develop.h:107
@ DT_DEV_DETAIL_MASK_DEMOSAIC
Definition develop.h:110
@ DT_DEV_DETAIL_MASK_REQUIRED
Definition develop.h:109
@ DT_DEV_DETAIL_MASK_RAWPREPARE
Definition develop.h:111
@ DT_DEV_DETAIL_MASK_NONE
Definition develop.h:108
guint dt_dev_mask_history_overload(GList *dev_history, guint threshold)
Definition dev_history.c:905
int dt_dev_distort_transform(dt_develop_t *dev, float *points, size_t points_count)
Definition develop.c:1099
void dt_dev_masks_list_update(dt_develop_t *dev)
Definition develop.c:849
int dt_dev_load_image(dt_develop_t *dev, const int32_t imgid)
Definition develop.c:651
void dt_dev_reorder_gui_module_list(dt_develop_t *dev)
Definition develop.c:1279
void dt_dev_pixelpipe_rebuild(struct dt_develop_t *dev)
Definition develop.c:275
uint64_t dt_dev_hash(dt_develop_t *dev, struct dt_dev_pixelpipe_t *pipe)
Definition develop.c:1263
float dt_dev_exposure_get_exposure(dt_develop_t *dev)
Definition develop.c:799
void dt_dev_masks_list_remove(dt_develop_t *dev, int formid, int parentid)
Definition develop.c:854
void dt_dev_process_image(dt_develop_t *dev)
Definition develop.c:243
void dt_dev_pixelpipe_resync_preview(dt_develop_t *dev)
Definition develop.c:303
gchar * dt_history_item_get_name(const struct dt_iop_module_t *module)
Definition develop.c:1071
void dt_dev_refresh_ui_images_real(dt_develop_t *dev)
Definition develop.c:259
enum dt_develop_detail_mmask_t dt_develop_detail_mask_t
void dt_dev_pixelpipe_resync_main(dt_develop_t *dev)
Definition develop.c:294
unsigned __int64 uint64_t
Definition strptime.c:71
Definition develop.h:137
size_t height
Definition develop.h:140
uint64_t hash
Definition develop.h:141
size_t width
Definition develop.h:139
void * buffer
Definition develop.h:138
size_t bpp
Definition develop.h:143
const char * op
Definition develop.h:142
Definition pixelpipe_hb.h:46
struct dt_iop_module_t *struct dt_dev_pixelpipe_t * pipe
Definition pixelpipe_hb.h:48
uint64_t hash
Definition pixelpipe_hb.h:73
Definition pixelpipe_hb.h:126
Definition develop.h:128
struct dt_iop_module_t *float(* get_exposure)(struct dt_iop_module_t *exp)
Definition develop.h:130
float(* get_black)(struct dt_iop_module_t *exp)
Definition develop.h:131
Definition develop.h:148
void(* list_update)(struct dt_lib_module_t *self)
Definition develop.h:281
int32_t height
Definition develop.h:170
struct dt_develop_t::@22 iso_12646
int32_t gui_attached
Definition develop.h:151
GList * iop_order_list
Definition develop.h:208
dt_image_t image_storage
Definition develop.h:193
uint64_t history_hash
Definition develop.h:236
uint32_t(* get)(struct dt_lib_module_t *self)
Definition develop.h:252
uint32_t average_delay
Definition develop.h:154
struct dt_develop_t::@18::@24 modulegroups
int32_t orig_height
Definition develop.h:164
struct dt_lib_module_t *void(* set)(struct dt_lib_module_t *self, uint32_t group)
Definition develop.h:250
struct dt_develop_t::@23 profile
int iop_order_version
Definition develop.h:207
float x
Definition develop.h:182
dt_dev_rawoverexposed_colorscheme_t colorscheme
Definition develop.h:316
int32_t border_size
Definition develop.h:159
dt_backbuf_t display_histogram
Definition develop.h:230
uint32_t * histogram_pre_levels
Definition develop.h:214
GList * iop
Definition develop.h:202
gboolean request
Definition develop.h:270
struct dt_develop_t::@20 rawoverexposed
dt_backbuf_t output_histogram
Definition develop.h:229
int32_t history_end
Definition develop.h:197
gboolean wb_is_D65
Definition develop.h:292
struct dt_develop_t::@21 display
gboolean(* test_visible)(struct dt_lib_module_t *self, gchar *module)
Definition develop.h:262
struct dt_develop_t::@18::@25 snapshot
void(* list_remove)(struct dt_lib_module_t *self, int formid, int parentid)
Definition develop.h:280
void(* update_visibility)(struct dt_lib_module_t *self)
Definition develop.h:260
struct dt_iop_module_t * gui_module
Definition develop.h:156
void(* switch_group)(struct dt_lib_module_t *self, struct dt_iop_module_t *module)
Definition develop.h:258
dt_dev_proxy_exposure_t exposure
Definition develop.h:243
dt_clipping_preview_mode_t mode
Definition develop.h:306
uint32_t preview_average_delay
Definition develop.h:155
uint32_t(* get_activated)(struct dt_lib_module_t *self)
Definition develop.h:254
struct dt_develop_t::@19 overexposed
float brightness
Definition develop.h:324
int32_t orig_width
Definition develop.h:164
struct dt_lib_module_t *void(* list_change)(struct dt_lib_module_t *self)
Definition develop.h:279
gboolean forms_changed
Definition develop.h:222
GtkWidget * floating_window
Definition develop.h:300
gboolean(* test)(struct dt_lib_module_t *self, uint32_t group, uint32_t iop_group)
Definition develop.h:256
float lower
Definition develop.h:304
float y
Definition develop.h:182
struct dt_dev_pixelpipe_t * preview_pipe
Definition develop.h:185
struct dt_develop_t::@18 proxy
struct dt_masks_form_t * form_visible
Definition develop.h:223
GList * history
Definition develop.h:198
int mask_form_selected_id
Definition develop.h:341
GList * allprofile_info
Definition develop.h:211
gboolean darkroom_skip_mouse_events
Definition develop.h:342
GList * alliop
Definition develop.h:204
dt_pthread_mutex_t history_mutex
Definition develop.h:196
dt_aligned_pixel_t wb_coeffs
Definition develop.h:293
dt_dev_overexposed_colorscheme_t colorscheme
Definition develop.h:303
GList * allforms
Definition develop.h:226
dt_backbuf_t raw_histogram
Definition develop.h:228
float scaling
Definition develop.h:178
struct dt_masks_form_gui_t * form_gui
Definition develop.h:224
GtkWidget * button
Definition develop.h:300
void(* selection_change)(struct dt_lib_module_t *self, struct dt_iop_module_t *module, const int selectid, const int throw_event)
Definition develop.h:283
int border
Definition develop.h:325
gint drawing_timeout
Definition develop.h:344
uint32_t * histogram_pre_tonecurve
Definition develop.h:214
uint32_t histogram_pre_levels_max
Definition develop.h:215
GtkWidget * gamut_button
Definition develop.h:338
struct dt_develop_t::@18::@26 masks
struct dt_iop_module_t * chroma_adaptation
Definition develop.h:289
gboolean mask_lock
Definition develop.h:343
gboolean enabled
Definition develop.h:302
int exit
Definition develop.h:153
int32_t iop_instance
Definition develop.h:201
uint64_t forms_hash
Definition develop.h:220
dt_dev_rawoverexposed_mode_t mode
Definition develop.h:315
const gchar * filename
Definition develop.h:271
uint32_t histogram_pre_tonecurve_max
Definition develop.h:215
float threshold
Definition develop.h:317
guint auto_save_timeout
Definition develop.h:233
struct dt_dev_pixelpipe_t * pipe
Definition develop.h:185
float upper
Definition develop.h:305
GtkWidget * softproof_button
Definition develop.h:338
int32_t width
Definition develop.h:170
GList * forms
Definition develop.h:218
float natural_scale
Definition develop.h:174
Definition common/image.h:195
Definition imageop.h:182
struct dt_develop_t * dev
Definition imageop.h:227
int iop_order
Definition imageop.h:196
Definition libs/lib.h:75
Definition masks.h:272
Definition masks.h:234
Definition darktable.h:605