![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/colorspaces.h"#include "common/opencl.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_gui.h"#include "dtgtk/drawingarea.h"#include "gui/gtk.h"#include "gui/presets.h"#include "iop/iop_api.h"#include <assert.h>#include <math.h>#include <stdlib.h>#include <string.h>
Include dependency graph for colorcorrection.c:Data Structures | |
| struct | dt_iop_colorcorrection_params_t |
| struct | dt_iop_colorcorrection_gui_data_t |
| struct | dt_iop_colorcorrection_data_t |
| struct | dt_iop_colorcorrection_global_data_t |
Macros | |
| #define | DT_COLORCORRECTION_INSET DT_PIXEL_APPLY_DPI(5) |
| #define | DT_COLORCORRECTION_MAX 40. |
| #define | COLORCORRECTION_DEFAULT_STEP (0.5f) |
Typedefs | |
| typedef struct dt_iop_colorcorrection_params_t | dt_iop_colorcorrection_params_t |
| typedef struct dt_iop_colorcorrection_gui_data_t | dt_iop_colorcorrection_gui_data_t |
| typedef struct dt_iop_colorcorrection_data_t | dt_iop_colorcorrection_data_t |
| typedef struct dt_iop_colorcorrection_global_data_t | dt_iop_colorcorrection_global_data_t |
| #define COLORCORRECTION_DEFAULT_STEP (0.5f) |
| #define DT_COLORCORRECTION_INSET DT_PIXEL_APPLY_DPI(5) |
| #define DT_COLORCORRECTION_MAX 40. |
| typedef struct dt_iop_colorcorrection_data_t dt_iop_colorcorrection_data_t |
| typedef struct dt_iop_colorcorrection_params_t dt_iop_colorcorrection_params_t |
| void cleanup_global | ( | dt_iop_module_so_t * | module | ) |
| void cleanup_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
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 | ||
| ) |
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 | ||
| ) |
References IOP_CS_LAB.
| int default_group | ( | ) |
References IOP_GROUP_COLOR.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
|
static |
References d, darktable, dt_iop_module_t::default_params, darktable_t::develop, dt_dev_add_history_item, FALSE, g, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
References dt_cairo_image_surface_create(), DT_COLORCORRECTION_INSET, DT_COLORCORRECTION_MAX, DT_PIXEL_APPLY_DPI, g, dt_iop_module_t::gui_data, height, i, Lab, M_PI, p, dt_iop_module_t::params, rgb, TRUE, and width.
Referenced by gui_init().
|
static |
References COLORCORRECTION_DEFAULT_STEP, darktable, darktable_t::develop, DT_COLORCORRECTION_MAX, dt_dev_add_history_item, FALSE, g, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
References TRUE, and dt_iop_module_t::widget.
Referenced by gui_init().
|
static |
References darktable, darktable_t::develop, DT_COLORCORRECTION_INSET, DT_COLORCORRECTION_MAX, dt_dev_add_history_item, DT_PIXEL_APPLY_DPI, g, dt_iop_module_t::gui_data, height, p, dt_iop_module_t::params, thrs, TRUE, dt_iop_module_t::widget, and width.
Referenced by gui_init().
|
static |
References dt_bauhaus_slider_set(), dt_gui_get_scroll_unit_deltas(), g, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
| int flags | ( | ) |
| void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
References g, dt_iop_module_t::gui_data, and IOP_GUI_FREE.
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
References darktable, dt_bauhaus_slider_from_params(), DT_BAUHAUS_SPACE, DT_COLORSPACE_LAB, DT_COLORSPACE_SRGB, dt_colorspaces_get_profile(), dt_iop_colorcorrection_button_press(), dt_iop_colorcorrection_draw(), dt_iop_colorcorrection_key_press(), dt_iop_colorcorrection_leave_notify(), dt_iop_colorcorrection_motion_notify(), dt_iop_colorcorrection_scrolled(), DT_PROFILE_DIRECTION_ANY, DT_PROFILE_DIRECTION_IN, dtgtk_drawing_area_new_with_aspect_ratio(), g, darktable_t::gui, IOP_GUI_ALLOC, dt_colorspaces_color_profile_t::profile, dt_gui_gtk_t::scroll_mask, TRUE, and dt_iop_module_t::widget.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
References dt_bauhaus_slider_set(), g, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, and dt_iop_module_t::widget.
| void init_global | ( | dt_iop_module_so_t * | module | ) |
| void init_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
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 | ) |
| const char * name | ( | ) |
| int process | ( | struct dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | i, | ||
| void *const | o | ||
| ) |
References d, dt_dev_pixelpipe_iop_t::data, DT_IS_ALIGNED, dt_iop_roi_t::height, i, out, dt_dev_pixelpipe_iop_t::roi_out, void(), and dt_iop_roi_t::width.