![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"
#include "common/iop_profile.h"
#include "common/colorspaces_inline_conversions.h"
#include "common/imagebuf.h"
#include "common/math.h"
#include "control/control.h"
#include "develop/imageop.h"
#include "develop/imageop_gui.h"
#include "dtgtk/drawingarea.h"
#include "gui/color_picker_proxy.h"
#include "gui/draw.h"
#include "gui/presets.h"
#include "libs/colorpicker.h"
#include "libs/lib.h"
Data Structures | |
struct | dt_iop_colorzones_node_t |
struct | dt_iop_colorzones_params_t |
struct | dt_iop_colorzones_gui_data_t |
struct | dt_iop_colorzones_data_t |
struct | dt_iop_colorzones_global_data_t |
Macros | |
#define | DT_IOP_COLORZONES_INSET DT_PIXEL_APPLY_DPI(5) |
#define | DT_IOP_COLORZONES_CURVE_INFL .3f |
#define | DT_IOP_COLORZONES_RES 256 |
#define | DT_IOP_COLORZONES_LUT_RES 0x10000 |
#define | DT_IOP_COLORZONES_BANDS 8 |
#define | DT_IOP_COLORZONES_MAXNODES 20 |
#define | DT_IOP_COLORZONES_DEFAULT_STEP (0.001f) |
#define | DT_IOP_COLORZONES_MIN_X_DISTANCE 0.0025f |
#define | DT_IOP_COLORZONES1_BANDS 6 |
#define | DT_COLORZONES_CELLSI 64 |
#define | DT_COLORZONES_CELLSJ 36 |
#define | COLORZONES_DRAW_BACKGROUD_BOX |
Typedefs | |
typedef enum dt_iop_colorzones_modes_t | dt_iop_colorzones_modes_t |
typedef enum dt_iop_colorzones_splines_version_t | dt_iop_colorzones_splines_version_t |
typedef enum dt_iop_colorzones_channel_t | dt_iop_colorzones_channel_t |
typedef struct dt_iop_colorzones_node_t | dt_iop_colorzones_node_t |
typedef struct dt_iop_colorzones_params_t | dt_iop_colorzones_params_t |
typedef struct dt_iop_colorzones_gui_data_t | dt_iop_colorzones_gui_data_t |
typedef struct dt_iop_colorzones_data_t | dt_iop_colorzones_data_t |
typedef struct dt_iop_colorzones_global_data_t | dt_iop_colorzones_global_data_t |
Enumerations | |
enum | dt_iop_colorzones_modes_t { DT_IOP_COLORZONES_MODE_SMOOTH = 0 , DT_IOP_COLORZONES_MODE_STRONG = 1 } |
enum | dt_iop_colorzones_splines_version_t { DT_IOP_COLORZONES_SPLINES_V1 = 0 , DT_IOP_COLORZONES_SPLINES_V2 = 1 } |
enum | dt_iop_colorzones_channel_t { DT_IOP_COLORZONES_L = 0 , DT_IOP_COLORZONES_C = 1 , DT_IOP_COLORZONES_h = 2 , DT_IOP_COLORZONES_MAX_CHANNELS = 3 } |
Functions | |
const char * | name () |
const char ** | description (struct dt_iop_module_t *self) |
int | flags () |
int | default_group () |
int | default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
int | legacy_params (dt_iop_module_t *self, const void *const old_params, const int old_version, void *new_params, const int new_version) |
static float | _curve_to_mouse (const float x, const float zoom_factor, const float offset) |
static float | _mouse_to_curve (const float x, const float zoom_factor, const float offset) |
static void | dt_iop_colorzones_get_params (dt_iop_colorzones_params_t *p, dt_iop_colorzones_gui_data_t *c, const int ch, const double mouse_x, const double mouse_y, const float radius) |
static float | lookup (const float *lut, const float i) |
static float | strength (float value, float strength) |
void | process_display (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
void | process_v1 (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
void | process_v3 (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
void | process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
void | init_presets (dt_iop_module_so_t *self) |
static void | _reset_display_selection (dt_iop_module_t *self) |
static void | _reset_nodes (dt_iop_colorzones_params_t *p, const int ch, const _Bool touch_edges) |
static void | _reset_parameters (dt_iop_colorzones_params_t *p, const int channel, const int splines_version) |
static int | _select_base_display_color (dt_iop_module_t *self, float *picked_color, float *picker_min, float *picker_max) |
static void | _draw_color_picker (dt_iop_module_t *self, cairo_t *cr, dt_iop_colorzones_params_t *p, dt_iop_colorzones_gui_data_t *c, const int width, const int height, const float *const picker_color, const float *const picker_min, const float *const picker_max) |
static void | _draw_background (cairo_t *cr, dt_iop_colorzones_params_t *p, dt_iop_colorzones_gui_data_t *c, const int select_by_picker, const int width, const int height, const float *picked_color) |
static gboolean | _area_draw_callback (GtkWidget *widget, cairo_t *crf, dt_iop_module_t *self) |
static gboolean | _bottom_area_draw_callback (GtkWidget *widget, cairo_t *crf, dt_iop_module_t *self) |
static gboolean | _bottom_area_button_press_callback (GtkWidget *widget, GdkEventButton *event, dt_iop_module_t *self) |
static gboolean | _sanity_check (const float x, const int selected, const int nodes, const dt_iop_colorzones_node_t *curve) |
static gboolean | _move_point_internal (dt_iop_module_t *self, GtkWidget *widget, int node, float dx, float dy, guint state) |
static void | _delete_node (dt_iop_module_t *self, dt_iop_colorzones_node_t *curve, int *nodes, int node, gboolean zero) |
static int | _add_node (dt_iop_colorzones_node_t *curve, int *nodes, float x, float y) |
static gboolean | _area_scrolled_callback (GtkWidget *widget, GdkEventScroll *event, dt_iop_module_t *self) |
static gboolean | _area_motion_notify_callback (GtkWidget *widget, GdkEventMotion *event, dt_iop_module_t *self) |
static gboolean | _area_button_press_callback (GtkWidget *widget, GdkEventButton *event, dt_iop_module_t *self) |
static gboolean | _area_button_release_callback (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | _area_enter_notify_callback (GtkWidget *widget, GdkEventCrossing *event, dt_iop_module_t *self) |
static gboolean | _area_leave_notify_callback (GtkWidget *widget, GdkEventCrossing *event, dt_iop_module_t *self) |
static gboolean | _area_resized_callback (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
static gboolean | _area_key_press_callback (GtkWidget *widget, GdkEventKey *event, dt_iop_module_t *self) |
static void | _channel_tabs_switch_callback (GtkNotebook *notebook, GtkWidget *page, guint page_num, dt_iop_module_t *self) |
void | gui_changed (dt_iop_module_t *self, GtkWidget *w, void *previous) |
static void | _interpolator_callback (GtkWidget *widget, dt_iop_module_t *self) |
static void | _edit_by_area_callback (GtkWidget *widget, dt_iop_module_t *self) |
static void | _display_mask_callback (GtkToggleButton *togglebutton, dt_iop_module_t *module) |
void | color_picker_apply (dt_iop_module_t *self, GtkWidget *picker, dt_dev_pixelpipe_iop_t *piece) |
void | gui_reset (struct dt_iop_module_t *self) |
void | gui_focus (struct dt_iop_module_t *self, gboolean in) |
void | gui_init (struct dt_iop_module_t *self) |
void | gui_update (struct dt_iop_module_t *self) |
void | gui_cleanup (struct dt_iop_module_t *self) |
void | init_global (dt_iop_module_so_t *module) |
void | cleanup_global (dt_iop_module_so_t *module) |
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) |
void | init_pipe (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
void | cleanup_pipe (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
void | init (dt_iop_module_t *module) |
#define COLORZONES_DRAW_BACKGROUD_BOX |
#define DT_COLORZONES_CELLSI 64 |
#define DT_COLORZONES_CELLSJ 36 |
#define DT_IOP_COLORZONES1_BANDS 6 |
#define DT_IOP_COLORZONES_BANDS 8 |
#define DT_IOP_COLORZONES_CURVE_INFL .3f |
#define DT_IOP_COLORZONES_DEFAULT_STEP (0.001f) |
#define DT_IOP_COLORZONES_INSET DT_PIXEL_APPLY_DPI(5) |
#define DT_IOP_COLORZONES_LUT_RES 0x10000 |
#define DT_IOP_COLORZONES_MAXNODES 20 |
#define DT_IOP_COLORZONES_MIN_X_DISTANCE 0.0025f |
#define DT_IOP_COLORZONES_RES 256 |
typedef enum dt_iop_colorzones_channel_t dt_iop_colorzones_channel_t |
typedef struct dt_iop_colorzones_data_t dt_iop_colorzones_data_t |
typedef struct dt_iop_colorzones_global_data_t dt_iop_colorzones_global_data_t |
typedef struct dt_iop_colorzones_gui_data_t dt_iop_colorzones_gui_data_t |
typedef enum dt_iop_colorzones_modes_t dt_iop_colorzones_modes_t |
typedef struct dt_iop_colorzones_node_t dt_iop_colorzones_node_t |
typedef struct dt_iop_colorzones_params_t dt_iop_colorzones_params_t |
|
inlinestatic |
References DT_IOP_COLORZONES_MIN_X_DISTANCE, dt_iop_colorzones_node_t::x, and dt_iop_colorzones_node_t::y.
Referenced by _area_button_press_callback(), _area_motion_notify_callback(), and color_picker_apply().
|
static |
References _add_node(), _curve_to_mouse(), _delete_node(), _mouse_to_curve(), _reset_nodes(), dt_iop_colorzones_params_t::curve_num_nodes, dt_iop_colorzones_params_t::curve_type, dt_develop_t::darkroom_skip_mouse_events, darktable, dt_iop_module_t::default_params, darktable_t::develop, dist(), dt_bauhaus_combobox_set(), dt_dev_add_history_item, dt_draw_curve_calc_value(), dt_iop_color_picker_reset(), DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_INSET, DT_IOP_COLORZONES_MAXNODES, DT_IOP_COLORZONES_SPLINES_V1, dt_modifier_is(), FALSE, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, TRUE, dt_iop_module_t::widget, width, dt_iop_colorzones_node_t::x, and dt_iop_colorzones_node_t::y.
Referenced by gui_init().
|
static |
References dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, FALSE, dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
|
static |
References _curve_to_mouse(), _draw_background(), _draw_color_picker(), _mouse_to_curve(), _select_base_display_color(), darktable_t::bauhaus, dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, dt_cairo_image_surface_create(), dt_draw_curve_add_point(), dt_draw_curve_calc_values(), dt_draw_curve_calc_values_V2(), dt_draw_curve_destroy(), dt_draw_curve_new(), dt_draw_curve_set_point(), dt_draw_histogram_8_zoomed(), dt_iop_colorzones_get_params(), DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_INSET, DT_IOP_COLORZONES_MAX_CHANNELS, DT_IOP_COLORZONES_RES, DT_IOP_COLORZONES_SPLINES_V1, DT_M_PI, DT_PIXEL_APPLY_DPI, DT_REQUEST_COLORPICK_MODULE, dt_iop_module_t::enabled, FALSE, dt_iop_module_t::gui_data, height, dt_iop_module_t::histogram, dt_iop_module_t::histogram_max, M_PI, dt_bauhaus_t::pango_font_desc, dt_iop_module_t::params, dt_iop_module_t::request_color_pick, TRUE, and width.
Referenced by gui_init().
|
static |
References dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
|
static |
References _move_point_internal(), dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, dt_iop_color_picker_reset(), DT_IOP_COLORZONES_DEFAULT_STEP, FALSE, dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
|
static |
References dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
|
static |
References _add_node(), _curve_to_mouse(), _mouse_to_curve(), _move_point_internal(), dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, dist(), dt_dev_add_history_item, dt_iop_color_picker_reset(), dt_iop_colorzones_get_params(), DT_IOP_COLORZONES_INSET, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, TRUE, dt_iop_module_t::widget, width, dt_iop_colorzones_node_t::x, and dt_iop_colorzones_node_t::y.
Referenced by gui_init().
|
static |
References TRUE.
Referenced by gui_init().
|
static |
References _mouse_to_curve(), _move_point_internal(), dt_develop_t::darkroom_skip_mouse_events, darktable, darktable_t::develop, dt_conf_get_int(), dt_conf_set_int(), dt_gui_get_scroll_unit_delta(), dt_gui_get_scroll_unit_deltas(), dt_iop_color_picker_reset(), DT_IOP_COLORZONES_DEFAULT_STEP, dt_modifier_is(), dtgtk_drawing_area_set_aspect_ratio(), dt_iop_module_t::gui_data, dt_iop_module_t::params, TRUE, and dt_iop_module_t::widget.
Referenced by gui_init().
|
static |
References FALSE, dt_iop_module_t::gui_data, TRUE, and dt_iop_module_t::widget.
Referenced by gui_init().
|
static |
References _draw_color_picker(), _mouse_to_curve(), _select_base_display_color(), COLORZONES_DRAW_BACKGROUD_BOX, dt_cairo_image_surface_create(), DT_COLORZONES_CELLSI, DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_INSET, DT_IOP_COLORZONES_L, DT_PIXEL_APPLY_DPI, dt_iop_module_t::enabled, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
|
static |
|
static |
Referenced by _area_button_press_callback(), _area_draw_callback(), _area_motion_notify_callback(), and _draw_color_picker().
|
static |
|
static |
|
static |
References _mouse_to_curve(), COLORZONES_DRAW_BACKGROUD_BOX, DT_COLORZONES_CELLSI, DT_COLORZONES_CELLSJ, dt_conf_get_float(), DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_L, height, and width.
Referenced by _area_draw_callback().
|
static |
References _curve_to_mouse(), dt_lib_t::colorpicker, darktable, dt_iop_module_t::dev, DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_L, dt_ioppr_get_iop_work_profile_info(), dt_ioppr_get_pipe_output_profile_info(), dt_ioppr_transform_image_colorspace(), dt_ioppr_transform_image_colorspace_rgb(), dt_Lab_2_LCH(), DT_LIB_COLORPICKER_STATISTIC_MAX, DT_LIB_COLORPICKER_STATISTIC_MEAN, DT_LIB_COLORPICKER_STATISTIC_MIN, DT_PIXEL_APPLY_DPI, DT_REQUEST_COLORPICK_MODULE, height, dt_develop_t::iop, IOP_CS_LAB, IOP_CS_RGB, darktable_t::lib, dt_lib_t::live_samples, dt_develop_t::pipe, dt_lib_t::proxy, dt_iop_module_t::request_color_pick, dt_colorpicker_sample_t::scope, and width.
Referenced by _area_draw_callback(), and _bottom_area_draw_callback().
|
static |
References darktable, darktable_t::gui, dt_iop_module_t::gui_data, and dt_gui_gtk_t::reset.
Referenced by gui_init().
|
static |
|
static |
|
static |
References _sanity_check(), DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_MIN_X_DISTANCE, DT_IOP_COLORZONES_SPLINES_V1, dt_iop_queue_history_update(), FALSE, dt_iop_module_t::gui_data, dt_iop_module_t::params, TRUE, dt_iop_colorzones_node_t::x, and dt_iop_colorzones_node_t::y.
Referenced by _area_key_press_callback(), _area_motion_notify_callback(), and _area_scrolled_callback().
|
static |
References darktable, dt_iop_refresh_center(), FALSE, darktable_t::gui, dt_iop_module_t::gui_data, and dt_gui_gtk_t::reset.
Referenced by gui_changed(), gui_focus(), and gui_reset().
|
static |
Referenced by _area_button_press_callback(), and _reset_parameters().
|
static |
References _reset_nodes(), CATMULL_ROM, DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_MAX_CHANNELS, and DT_IOP_COLORZONES_MODE_SMOOTH.
Referenced by gui_changed(), and init().
|
static |
References DT_IOP_COLORZONES_MIN_X_DISTANCE, FALSE, and TRUE.
Referenced by _move_point_internal().
|
static |
References dt_Lab_2_LCH(), DT_REQUEST_COLORPICK_MODULE, dt_sRGB_to_XYZ(), dt_XYZ_to_Lab(), dt_iop_module_t::picked_color, dt_iop_module_t::picked_color_max, dt_iop_module_t::picked_color_min, and dt_iop_module_t::request_color_pick.
Referenced by _area_draw_callback(), and _bottom_area_draw_callback().
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 | ||
) |
void color_picker_apply | ( | dt_iop_module_t * | self, |
GtkWidget * | picker, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References _add_node(), dt_iop_colorzones_params_t::curve, dt_iop_colorzones_params_t::curve_num_nodes, dt_iop_colorzones_params_t::curve_type, darktable, dt_iop_module_t::default_params, darktable_t::develop, dt_control_queue_redraw_widget(), dt_dev_add_history_item, DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_L, DT_IOP_COLORZONES_MAXNODES, dt_key_modifier_state(), dt_modifier_is(), dt_iop_module_t::gui_data, dt_iop_module_t::params, dt_iop_module_t::picked_color, dt_iop_module_t::picked_color_max, dt_iop_module_t::picked_color_min, TRUE, dt_iop_module_t::widget, dt_iop_colorzones_node_t::x, and dt_iop_colorzones_node_t::y.
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 dt_draw_curve_t::c, dt_iop_colorzones_data_t::channel, dt_iop_colorzones_data_t::curve, dt_iop_colorzones_data_t::curve_nodes, dt_iop_colorzones_data_t::curve_type, dt_dev_pixelpipe_iop_t::data, DT_DEV_PIXELPIPE_PREVIEW, dt_draw_curve_add_point(), dt_draw_curve_calc_values(), dt_draw_curve_calc_values_V2(), dt_draw_curve_destroy(), dt_draw_curve_new(), dt_draw_curve_set_point(), DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_LUT_RES, DT_IOP_COLORZONES_MAX_CHANNELS, DT_IOP_COLORZONES_MAXNODES, DT_IOP_COLORZONES_SPLINES_V1, DT_REQUEST_ON, dt_iop_module_t::gui_data, dt_iop_colorzones_data_t::lut, CurveData::m_numAnchors, dt_iop_colorzones_data_t::mode, dt_dev_pixelpipe_iop_t::process_cl_ready, dt_dev_pixelpipe_iop_t::request_histogram, strength(), and dt_dev_pixelpipe_t::type.
int default_colorspace | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
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 _mouse_to_curve(), DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_SPLINES_V1, f(), and m.
Referenced by _area_draw_callback(), and _area_motion_notify_callback().
int flags | ( | ) |
References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_INCLUDE_IN_STYLES, and IOP_FLAGS_SUPPORTS_BLENDING.
void gui_changed | ( | dt_iop_module_t * | self, |
GtkWidget * | w, | ||
void * | previous | ||
) |
void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
void gui_focus | ( | struct dt_iop_module_t * | self, |
gboolean | in | ||
) |
References _reset_display_selection().
void gui_init | ( | struct dt_iop_module_t * | self | ) |
References _area_button_press_callback(), _area_button_release_callback(), _area_draw_callback(), _area_enter_notify_callback(), _area_key_press_callback(), _area_leave_notify_callback(), _area_motion_notify_callback(), _area_resized_callback(), _area_scrolled_callback(), _bottom_area_button_press_callback(), _bottom_area_draw_callback(), _channel_tabs_switch_callback(), _display_mask_callback(), _edit_by_area_callback(), _interpolator_callback(), darktable_t::bauhaus, darktable, dt_iop_module_t::default_params, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_from_params(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_remove_at(), dt_bauhaus_slider_from_params(), dt_bauhaus_slider_set_format(), DT_BAUHAUS_SPACE, dt_bauhaus_widget_set_label(), DT_COLOR_PICKER_AREA, dt_color_picker_new_with_cst(), DT_COLOR_PICKER_POINT_AREA, dt_conf_get_int(), dt_draw_curve_add_point(), dt_draw_curve_new(), dt_gui_add_class(), DT_GUI_MODULE, DT_IOP_COLORZONES_BANDS, DT_IOP_COLORZONES_MAX_CHANNELS, DT_PIXEL_APPLY_DPI, dt_ui_notebook_new(), dt_ui_notebook_page(), dtgtk_cairo_paint_colorpicker_set_values(), dtgtk_cairo_paint_showmask(), dtgtk_drawing_area_new_with_aspect_ratio(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_new(), dtgtk_togglebutton_set_paint(), FALSE, darktable_t::gui, dt_iop_module_t::histogram_cst, IOP_CS_LCH, IOP_GUI_ALLOC, dt_gui_gtk_t::scroll_mask, dt_iop_module_t::timeout_handle, TRUE, and dt_iop_module_t::widget.
void gui_reset | ( | struct dt_iop_module_t * | self | ) |
References _reset_display_selection(), dt_iop_color_picker_reset(), dt_iop_module_t::gui_data, and TRUE.
void gui_update | ( | struct dt_iop_module_t * | self | ) |
void init | ( | dt_iop_module_t * | module | ) |
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_iop_colorzones_params_t::channel, dt_iop_colorzones_data_t::channel, dt_iop_colorzones_data_t::curve, dt_iop_colorzones_params_t::curve, dt_iop_colorzones_data_t::curve_nodes, dt_iop_colorzones_params_t::curve_num_nodes, dt_iop_colorzones_params_t::curve_type, dt_iop_colorzones_data_t::curve_type, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::data_size, dt_iop_module_t::default_params, dt_draw_curve_add_point(), dt_draw_curve_new(), DT_IOP_COLORZONES_MAX_CHANNELS, dt_iop_colorzones_params_t::mode, dt_iop_colorzones_data_t::mode, dt_iop_colorzones_node_t::x, and dt_iop_colorzones_node_t::y.
void init_presets | ( | dt_iop_module_so_t * | self | ) |
References CATMULL_ROM, darktable, darktable_t::db, DEVELOP_BLEND_CS_RGB_DISPLAY, dt_database_release_transaction, dt_database_start_transaction, dt_gui_presets_add_generic(), DT_IOP_COLORZONES_BANDS, DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_L, DT_IOP_COLORZONES_MODE_SMOOTH, DT_IOP_COLORZONES_SPLINES_V2, MONOTONE_HERMITE, and dt_iop_module_so_t::op.
int legacy_params | ( | dt_iop_module_t * | self, |
const void *const | old_params, | ||
const int | old_version, | ||
void * | new_params, | ||
const int | new_version | ||
) |
|
static |
References DT_IOP_COLORZONES_LUT_RES, f(), MAX, and MIN.
Referenced by process_display(), process_v1(), and process_v3().
const char * name | ( | ) |
void process | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const void *const | ivoid, | ||
void *const | ovoid, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
References dt_dev_pixelpipe_iop_t::data, dt_iop_module_t::dev, DT_DEV_PIXELPIPE_FULL, DT_IOP_COLORZONES_MODE_SMOOTH, dt_develop_t::gui_attached, dt_iop_module_t::gui_data, dt_develop_t::gui_module, dt_iop_colorzones_data_t::mode, dt_develop_t::pipe, dt_dev_pixelpipe_iop_t::pipe, process_display(), process_v1(), and process_v3().
void process_display | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const void *const | ivoid, | ||
void *const | ovoid, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
References dt_iop_colorzones_data_t::channel, dt_dev_pixelpipe_iop_t::colors, dt_dev_pixelpipe_iop_t::data, DT_DEV_PIXELPIPE_DISPLAY_MASK, DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_L, dt_iop_image_copy_by_size(), dt_Lab_2_LCH(), dt_iop_module_t::gui_data, dt_iop_roi_t::height, lookup(), dt_iop_colorzones_data_t::lut, dt_dev_pixelpipe_iop_t::pipe, and dt_iop_roi_t::width.
Referenced by process().
void process_v1 | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const void *const | ivoid, | ||
void *const | ovoid, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
References dt_iop_colorzones_data_t::channel, dt_dev_pixelpipe_iop_t::colors, dt_dev_pixelpipe_iop_t::data, DT_IOP_COLORZONES_C, DT_IOP_COLORZONES_h, DT_IOP_COLORZONES_L, dt_Lab_2_LCH(), dt_LCH_2_Lab(), dt_iop_roi_t::height, lookup(), dt_iop_colorzones_data_t::lut, and dt_iop_roi_t::width.
Referenced by process().
void process_v3 | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const void *const | ivoid, | ||
void *const | ovoid, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
|
inlinestatic |
References strength().
Referenced by build_round_stamp(), button_released(), commit_params(), heat_PDE_diffusion(), legacy_params(), process(), strength(), transition_map(), and wavelets_process().