![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/bilateral.h"#include "common/bilateralcl.h"#include "common/math.h"#include "common/opencl.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "develop/imageop_gui.h"#include "develop/tiling.h"#include "gui/gtk.h"#include "iop/iop_api.h"#include <assert.h>#include <stdlib.h>#include <string.h>#include <gtk/gtk.h>#include <inttypes.h>
Include dependency graph for globaltonemap.c:Go to the source code of this file.
Data Structures | |
| struct | dt_iop_global_tonemap_params_t |
| struct | dt_iop_global_tonemap_data_t |
| struct | dt_iop_global_tonemap_gui_data_t |
Macros | |
| #define | REDUCESIZE 64 |
Typedefs | |
| typedef enum _iop_operator_t | _iop_operator_t |
| typedef struct dt_iop_global_tonemap_params_t | dt_iop_global_tonemap_params_t |
| typedef struct dt_iop_global_tonemap_data_t | dt_iop_global_tonemap_data_t |
| typedef struct dt_iop_global_tonemap_gui_data_t | dt_iop_global_tonemap_gui_data_t |
Enumerations | |
| enum | _iop_operator_t { OPERATOR_REINHARD , OPERATOR_FILMIC , OPERATOR_DRAGO } |
| #define REDUCESIZE 64 |
Definition at line 64 of file globaltonemap.c.
| typedef enum _iop_operator_t _iop_operator_t |
| typedef struct dt_iop_global_tonemap_data_t dt_iop_global_tonemap_data_t |
| typedef struct dt_iop_global_tonemap_gui_data_t dt_iop_global_tonemap_gui_data_t |
| typedef struct dt_iop_global_tonemap_params_t dt_iop_global_tonemap_params_t |
| enum _iop_operator_t |
| Enumerator | |
|---|---|
| OPERATOR_REINHARD | |
| OPERATOR_FILMIC | |
| OPERATOR_DRAGO | |
Definition at line 68 of file globaltonemap.c.
| void cleanup_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 375 of file globaltonemap.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 354 of file globaltonemap.c.
References d, dt_dev_pixelpipe_iop_t::data, OPERATOR_DRAGO, p, and dt_dev_pixelpipe_iop_t::process_tiling_ready.
| 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 globaltonemap.c.
References IOP_CS_LAB.
| int default_group | ( | ) |
Definition at line 125 of file globaltonemap.c.
References IOP_GROUP_TONES.
| const char * deprecated_msg | ( | ) |
Definition at line 115 of file globaltonemap.c.
| int flags | ( | ) |
Definition at line 120 of file globaltonemap.c.
References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_DEPRECATED, IOP_FLAGS_INCLUDE_IN_STYLES, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_changed | ( | dt_iop_module_t * | self, |
| GtkWidget * | w, | ||
| void * | previous | ||
| ) |
Definition at line 381 of file globaltonemap.c.
References g, dt_iop_module_t::gui_data, IS_NULL_PTR, OPERATOR_DRAGO, p, and dt_iop_module_t::params.
Referenced by gui_update().
| void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
Definition at line 426 of file globaltonemap.c.
References IOP_GUI_FREE.
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
Definition at line 405 of file globaltonemap.c.
References dt_bauhaus_combobox_from_params(), dt_bauhaus_slider_from_params(), dt_bauhaus_slider_set_digits(), g, and IOP_GUI_ALLOC.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
Refresh GUI controls from current params and configuration.
Definition at line 393 of file globaltonemap.c.
References dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), g, gui_changed(), and dt_iop_module_t::gui_data.
| void init_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 369 of file globaltonemap.c.
References dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| void input_format | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece, | ||
| dt_iop_buffer_dsc_t * | dsc | ||
| ) |
Definition at line 135 of file globaltonemap.c.
References dt_iop_buffer_dsc_t::channels, dt_iop_buffer_dsc_t::datatype, default_input_format(), and TYPE_FLOAT.
| int legacy_params | ( | dt_iop_module_t * | self, |
| const void *const | old_params, | ||
| const int | old_version, | ||
| void * | new_params, | ||
| const int | new_version | ||
| ) |
Definition at line 143 of file globaltonemap.c.
References n.
| const char * name | ( | ) |
Definition at line 110 of file globaltonemap.c.
| 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 281 of file globaltonemap.c.
References dt_dev_pixelpipe_iop_t::buf_in, dt_dev_pixelpipe_iop_t::data, dt_iop_global_tonemap_data_t::detail, dt_bilateral_blur(), dt_bilateral_free(), dt_bilateral_init(), dt_bilateral_slice_to_output(), dt_bilateral_splat(), dt_dev_get_module_scale(), DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_iop_roi_t::height, IS_NULL_PTR, dt_dev_pixelpipe_t::mask_display, dt_iop_global_tonemap_data_t::operator, OPERATOR_DRAGO, OPERATOR_FILMIC, OPERATOR_REINHARD, ovoid, process_drago(), process_filmic(), process_reinhard(), dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, sigma_r, sigma_s, and dt_iop_roi_t::width.
|
inlinestatic |
Definition at line 181 of file globaltonemap.c.
References __OMP_PARALLEL_FOR__, dt_iop_global_tonemap_data_t::bias, ch, dt_iop_module_t::dev, dt_iop_global_tonemap_data_t::drago, dt_control_log(), dt_dev_pixelpipe_has_preview_output(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), eps, g, dt_dev_pixelpipe_iop_t::global_hash, dt_develop_t::gui_attached, dt_iop_module_t::gui_data, dt_iop_roi_t::height, IS_NULL_PTR, k, lw, max, dt_iop_global_tonemap_data_t::max_light, out, ovoid, and dt_iop_roi_t::width.
Referenced by process().
|
inlinestatic |
Definition at line 260 of file globaltonemap.c.
References __OMP_PARALLEL_FOR__, ch, dt_iop_roi_t::height, k, out, ovoid, dt_iop_roi_t::width, and x.
Referenced by process().
|
inlinestatic |
Definition at line 160 of file globaltonemap.c.
References __OMP_PARALLEL_FOR__, ch, dt_iop_roi_t::height, k, out, ovoid, and dt_iop_roi_t::width.
Referenced by process().
| void tiling_callback | ( | struct dt_iop_module_t * | self, |
| const struct dt_dev_pixelpipe_t * | pipe, | ||
| const struct dt_dev_pixelpipe_iop_t * | piece, | ||
| struct dt_develop_tiling_t * | tiling | ||
| ) |
Definition at line 326 of file globaltonemap.c.
References dt_dev_pixelpipe_iop_t::buf_in, d, dt_dev_pixelpipe_iop_t::data, dt_bilateral_memory_use2(), dt_bilateral_singlebuffer_size2(), dt_dev_get_module_scale(), height, dt_iop_roi_t::height, MAX, dt_dev_pixelpipe_iop_t::roi_in, sigma_r, sigma_s, width, and dt_iop_roi_t::width.