![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <assert.h>#include <stdlib.h>#include <string.h>#include "bauhaus/bauhaus.h"#include "common/debug.h"#include "common/math.h"#include "common/opencl.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_gui.h"#include "dtgtk/gradientslider.h"#include "dtgtk/togglebutton.h"#include "gui/color_picker_proxy.h"#include "gui/gtk.h"#include "gui/presets.h"#include "iop/iop_api.h"
Include dependency graph for relight.c:Go to the source code of this file.
Data Structures | |
| struct | dt_iop_relight_params_t |
| struct | dt_iop_relight_gui_data_t |
| struct | dt_iop_relight_data_t |
Macros | |
| #define | GAUSS(a, b, c, x) (a * powf(2.718281828f, (-powf((x - b), 2) / (powf(c, 2))))) |
| #define | NEUTRAL_GRAY 0.5 |
Typedefs | |
| typedef struct dt_iop_relight_params_t | dt_iop_relight_params_t |
| typedef struct dt_iop_relight_gui_data_t | dt_iop_relight_gui_data_t |
| typedef struct dt_iop_relight_data_t | dt_iop_relight_data_t |
| #define NEUTRAL_GRAY 0.5 |
| typedef struct dt_iop_relight_data_t dt_iop_relight_data_t |
| typedef struct dt_iop_relight_gui_data_t dt_iop_relight_gui_data_t |
| typedef struct dt_iop_relight_params_t dt_iop_relight_params_t |
|
static |
Definition at line 175 of file relight.c.
References darktable, darktable_t::develop, dt_dev_add_history_item, dt_iop_color_picker_reset(), dtgtk_gradient_slider_get_value(), darktable_t::gui, p, dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
| void cleanup_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 202 of file relight.c.
References dt_dev_pixelpipe_iop_t::data, and dt_free_align.
| void color_picker_apply | ( | dt_iop_module_t * | self, |
| GtkWidget * | picker, | ||
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 215 of file relight.c.
References DTGTK_GRADIENT_SLIDER, dtgtk_gradient_slider_set_picker_meanminmax(), g, dt_iop_module_t::gui_data, max, min, dt_iop_module_t::picked_color, dt_iop_module_t::picked_color_max, and dt_iop_module_t::picked_color_min.
| 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 185 of file relight.c.
References d, dt_dev_pixelpipe_iop_t::data, and p.
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 130 of file relight.c.
References IOP_CS_LAB.
| int default_group | ( | ) |
Definition at line 125 of file relight.c.
References IOP_GROUP_EFFECTS.
| int flags | ( | ) |
Definition at line 115 of file relight.c.
References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_DEPRECATED, IOP_FLAGS_INCLUDE_IN_STYLES, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
Definition at line 234 of file relight.c.
References _gradient_L, center_callback(), dt_bauhaus_slider_from_params(), dt_bauhaus_slider_set_format(), dt_color_picker_new(), DT_COLOR_PICKER_POINT_AREA, DT_GUI_BOX_SPACING, DTGTK_GRADIENT_SLIDER, dtgtk_gradient_slider_new_with_color_and_name(), FALSE, g, IOP_GUI_ALLOC, NEUTRAL_GRAY, TRUE, and dt_iop_module_t::widget.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
Refresh GUI controls from current params and configuration.
Definition at line 208 of file relight.c.
References dtgtk_gradient_slider_set_value(), g, dt_iop_module_t::gui_data, p, and dt_iop_module_t::params.
| void init_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 196 of file relight.c.
References dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| void init_presets | ( | dt_iop_module_so_t * | self | ) |
Definition at line 81 of file relight.c.
References darktable, darktable_t::db, DEVELOP_BLEND_CS_RGB_DISPLAY, dt_database_release_transaction, dt_database_start_transaction, dt_gui_presets_add_generic(), and dt_iop_module_so_t::op.
| __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 138 of file relight.c.
References __OMP_PARALLEL_FOR__, dt_iop_relight_data_t::center, ch, dt_iop_buffer_dsc_t::channels, CLIP, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::dsc_in, dt_iop_relight_data_t::ev, GAUSS, dt_iop_roi_t::height, k, out, ovoid, dt_dev_pixelpipe_iop_t::roi_out, dt_iop_roi_t::width, dt_iop_relight_data_t::width, and x.