![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "develop/imageop_gui.h"#include <assert.h>#include <stdlib.h>#include <string.h>#include "system/macros.h"#include "system/openmp.h"#include "system/target_clones.h"#include "system/mem_alloc.h"#include "system/simd.h"#include "common/module_versioning.h"#include "common/utility.h"#include "pixel/gaussian.h"#include "math/math.h"#include "control/control.h"#include "control/signal.h"#include "develop/develop.h"#include "common/logging.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "widgets/drawingarea.h"#include "iop/iop_api.h"#include <librsvg/rsvg.h>#include "gui/screen_metrics.h"#include <librsvg/rsvg-cairo.h>
Include dependency graph for zonesystem.c:Go to the source code of this file.
Data Structures | |
| struct | dt_iop_zonesystem_params_t |
| struct | dt_iop_zonesystem_data_t |
| struct | dt_iop_zonesystem_gui_data_t |
Macros | |
| #define | MAX_ZONE_SYSTEM_SIZE 24 |
| #define | DT_ZONESYSTEM_INSET DT_PIXEL_APPLY_DPI(5) |
| #define | DT_ZONESYSTEM_BAR_SPLIT_WIDTH 0.0 |
| #define | DT_ZONESYSTEM_REFERENCE_SPLIT 0.30 |
Typedefs | |
| typedef struct dt_iop_zonesystem_params_t | dt_iop_zonesystem_params_t |
| typedef struct dt_iop_zonesystem_data_t | dt_iop_zonesystem_data_t |
| typedef struct dt_iop_zonesystem_gui_data_t | dt_iop_zonesystem_gui_data_t |
| #define DT_ZONESYSTEM_BAR_SPLIT_WIDTH 0.0 |
Definition at line 477 of file zonesystem.c.
| #define DT_ZONESYSTEM_INSET DT_PIXEL_APPLY_DPI(5) |
Definition at line 476 of file zonesystem.c.
| #define DT_ZONESYSTEM_REFERENCE_SPLIT 0.30 |
Definition at line 478 of file zonesystem.c.
| #define MAX_ZONE_SYSTEM_SIZE 24 |
Definition at line 88 of file zonesystem.c.
| typedef struct dt_iop_zonesystem_data_t dt_iop_zonesystem_data_t |
and pixelpipe data is just the same
| typedef struct dt_iop_zonesystem_gui_data_t dt_iop_zonesystem_gui_data_t |
| typedef struct dt_iop_zonesystem_params_t dt_iop_zonesystem_params_t |
gui params.
|
inlinestatic |
Definition at line 200 of file zonesystem.c.
References dt_iop_module_t::dev, dt_dev_pixelpipe_has_preview_output(), dt_free, dt_iop_gui_data(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), g, dt_develop_t::gui_attached, height, dt_iop_roi_t::height, IS_NULL_PTR, width, and dt_iop_roi_t::width.
|
inlinestatic |
Definition at line 173 of file zonesystem.c.
Referenced by commit_params(), dt_iop_zonesystem_bar_button_press(), dt_iop_zonesystem_bar_draw(), dt_iop_zonesystem_bar_motion_notify(), and dt_iop_zonesystem_preview_draw().
|
static |
Definition at line 799 of file zonesystem.c.
References dt_control_queue_redraw_widget(), dt_iop_gui_data(), and g.
Referenced by gui_cleanup(), and gui_init().
|
inlinestatic |
Definition at line 165 of file zonesystem.c.
Referenced by dt_iop_zonesystem_bar_button_press().
| void cleanup_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 356 of file zonesystem.c.
References dt_dev_pixelpipe_iop_t::data, and dt_free_align.
| void commit_params | ( | struct dt_iop_module_t * | self, |
| dt_iop_params_t * | p1, | ||
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 328 of file zonesystem.c.
References _iop_zonesystem_calculate_zonemap(), d, dt_dev_pixelpipe_iop_t::data, k, MAX_ZONE_SYSTEM_SIZE, p, and size.
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 159 of file zonesystem.c.
References IOP_CS_LAB.
| int default_group | ( | ) |
Definition at line 154 of file zonesystem.c.
References IOP_GROUP_TONES.
| const char * deprecated_msg | ( | ) |
Definition at line 149 of file zonesystem.c.
|
static |
Definition at line 571 of file zonesystem.c.
References _iop_zonesystem_calculate_zonemap(), _iop_zonesystem_zone_index_from_lightness(), dt_iop_module_t::dev, dt_dev_add_history_item, dt_iop_gui_data(), DT_ZONESYSTEM_INSET, g, k, MAX_ZONE_SYSTEM_SIZE, p, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
|
static |
Definition at line 611 of file zonesystem.c.
References dt_iop_gui_data(), FALSE, g, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 479 of file zonesystem.c.
References _iop_zonesystem_calculate_zonemap(), dt_cairo_image_surface_create(), dt_iop_gui_data(), DT_PIXEL_APPLY_DPI, DT_ZONESYSTEM_BAR_SPLIT_WIDTH, DT_ZONESYSTEM_INSET, DT_ZONESYSTEM_REFERENCE_SPLIT, g, height, i, k, MAX_ZONE_SYSTEM_SIZE, p, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
|
static |
Definition at line 639 of file zonesystem.c.
References dt_iop_gui_data(), FALSE, g, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 648 of file zonesystem.c.
References _iop_zonesystem_calculate_zonemap(), dt_iop_module_t::dev, dt_dev_add_history_item, dt_iop_gui_data(), DT_ZONESYSTEM_INSET, DT_ZONESYSTEM_REFERENCE_SPLIT, FALSE, g, dt_iop_module_t::gui, height, MAX_ZONE_SYSTEM_SIZE, p, dt_iop_module_t::params, TRUE, dt_iop_module_gui_t::widget, and width.
Referenced by gui_init().
|
static |
Definition at line 622 of file zonesystem.c.
References dt_iop_module_t::dev, dt_dev_add_history_item, dt_gui_get_scroll_unit_deltas(), MAX_ZONE_SYSTEM_SIZE, p, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 705 of file zonesystem.c.
References _iop_zonesystem_calculate_zonemap(), CLIP, color, dt_cairo_image_surface_create(), dt_free, dt_iop_gui_data(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), DT_PIXEL_APPLY_DPI, dt_iop_module_t::enabled, dt_iop_module_gui_t::expander, g, dt_iop_module_t::gui, height, k, MAX_ZONE_SYSTEM_SIZE, p, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
| int flags | ( | ) |
Definition at line 143 of file zonesystem.c.
References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_DEPRECATED, IOP_FLAGS_INCLUDE_IN_STYLES, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
Definition at line 463 of file zonesystem.c.
References _iop_zonesystem_redraw_preview_callback(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, dt_iop_gui_data(), g, and IOP_GUI_FREE.
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
Definition at line 411 of file zonesystem.c.
References _iop_zonesystem_redraw_preview_callback(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, DT_GUI_BOX_SPACING, dt_iop_zonesystem_bar_button_press(), dt_iop_zonesystem_bar_button_release(), dt_iop_zonesystem_bar_draw(), dt_iop_zonesystem_bar_leave_notify(), dt_iop_zonesystem_bar_motion_notify(), dt_iop_zonesystem_bar_scrolled(), dt_iop_zonesystem_preview_draw(), DT_PIXEL_APPLY_DPI, DT_SIGNAL_DEVELOP_PREVIEW_PIPE_FINISHED, dt_widget_scroll_mask(), dtgtk_drawing_area_new_with_aspect_ratio(), FALSE, g, dt_iop_module_t::gui, IOP_GUI_ALLOC, size_allocate_callback(), TRUE, and dt_iop_module_gui_t::widget.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
Refresh GUI controls from current params and configuration.
gui callbacks, these are needed.
gui setup and update, these are needed.
Definition at line 362 of file zonesystem.c.
References dt_iop_gui_data(), and g.
| void init_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 350 of file zonesystem.c.
References dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| const char * name | ( | ) |
Definition at line 138 of file zonesystem.c.
| __DT_CLONE_TARGETS__ int process | ( | struct dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | ivoid, | ||
| void *const | ovoid | ||
| ) |
Definition at line 298 of file zonesystem.c.
References __OMP_PARALLEL_FOR__, CLAMPS, d, dt_dev_pixelpipe_iop_t::data, for_each_channel, dt_iop_roi_t::height, k, out, ovoid, process_common_cleanup(), process_common_setup(), dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, size, and dt_iop_roi_t::width.
|
static |
Definition at line 229 of file zonesystem.c.
References __OMP_PARALLEL_FOR__, ch, dt_iop_buffer_dsc_t::channels, CLAMPS, d, dt_dev_pixelpipe_iop_t::data, dt_iop_module_t::dev, dt_dev_pixelpipe_iop_t::dsc_in, DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_dev_pixelpipe_has_preview_output(), dt_free, dt_gaussian_blur(), dt_gaussian_free(), dt_gaussian_init(), DT_IOP_GAUSSIAN_ZERO, dt_iop_gui_data(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), g, dt_develop_t::gui_attached, height, dt_iop_roi_t::height, IS_NULL_PTR, k, dt_dev_pixelpipe_t::mask_display, ovoid, dt_iop_roi_t::scale, sigma, size, width, and dt_iop_roi_t::width.
Referenced by process().
|
static |
Definition at line 387 of file zonesystem.c.
References dt_free, dt_iop_gui_data(), dt_util_get_logo(), g, and MIN.
Referenced by gui_init().