![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/iop_profile.h"
#include "bauhaus/bauhaus.h"
#include "common/colorspaces_inline_conversions.h"
#include "common/rgb_norms.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 "libs/colorpicker.h"
Data Structures | |
struct | dt_iop_rgblevels_params_t |
struct | dt_iop_rgblevels_gui_data_t |
struct | dt_iop_rgblevels_data_t |
struct | dt_iop_rgblevels_global_data_t |
Macros | |
#define | DT_GUI_CURVE_EDITOR_INSET DT_PIXEL_APPLY_DPI(5) |
#define | RGBLEVELS_MIN 0.f |
#define | RGBLEVELS_MID 0.5f |
#define | RGBLEVELS_MAX 1.f |
Typedefs | |
typedef enum dt_iop_rgblevels_channel_t | dt_iop_rgblevels_channel_t |
typedef enum dt_iop_rgblevels_autoscale_t | dt_iop_rgblevels_autoscale_t |
typedef struct dt_iop_rgblevels_params_t | dt_iop_rgblevels_params_t |
typedef struct dt_iop_rgblevels_gui_data_t | dt_iop_rgblevels_gui_data_t |
typedef struct dt_iop_rgblevels_data_t | dt_iop_rgblevels_data_t |
typedef struct dt_iop_rgblevels_global_data_t | dt_iop_rgblevels_global_data_t |
Enumerations | |
enum | dt_iop_rgblevels_channel_t { DT_IOP_RGBLEVELS_R = 0 , DT_IOP_RGBLEVELS_G = 1 , DT_IOP_RGBLEVELS_B = 2 , DT_IOP_RGBLEVELS_MAX_CHANNELS = 3 } |
enum | dt_iop_rgblevels_autoscale_t { DT_IOP_RGBLEVELS_LINKED_CHANNELS = 0 , DT_IOP_RGBLEVELS_INDEPENDENT_CHANNELS = 1 } |
#define DT_GUI_CURVE_EDITOR_INSET DT_PIXEL_APPLY_DPI(5) |
#define RGBLEVELS_MAX 1.f |
#define RGBLEVELS_MID 0.5f |
#define RGBLEVELS_MIN 0.f |
typedef enum dt_iop_rgblevels_autoscale_t dt_iop_rgblevels_autoscale_t |
typedef enum dt_iop_rgblevels_channel_t dt_iop_rgblevels_channel_t |
typedef struct dt_iop_rgblevels_data_t dt_iop_rgblevels_data_t |
typedef struct dt_iop_rgblevels_global_data_t dt_iop_rgblevels_global_data_t |
typedef struct dt_iop_rgblevels_gui_data_t dt_iop_rgblevels_gui_data_t |
typedef struct dt_iop_rgblevels_params_t dt_iop_rgblevels_params_t |
|
static |
References _turn_selregion_picker_off(), darktable, dt_iop_module_t::default_params, darktable_t::develop, dt_dev_add_history_item, dt_iop_request_focus(), FALSE, dt_iop_module_t::gui_data, dt_develop_t::gui_module, dt_iop_rgblevels_params_t::levels, 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, and TRUE.
Referenced by gui_init().
|
static |
References darktable_t::bauhaus, darktable, dt_cairo_image_surface_create(), dt_draw_histogram_8(), dt_draw_vertical_lines(), DT_GUI_CURVE_EDITOR_INSET, DT_IOP_RGBLEVELS_B, DT_IOP_RGBLEVELS_G, DT_IOP_RGBLEVELS_INDEPENDENT_CHANNELS, DT_IOP_RGBLEVELS_LINKED_CHANNELS, DT_IOP_RGBLEVELS_MAX_CHANNELS, DT_IOP_RGBLEVELS_R, DT_PIXEL_APPLY_DPI, dt_iop_module_t::enabled, FALSE, dt_bauhaus_t::graph_colors, dt_iop_module_t::gui_data, height, dt_iop_module_t::histogram, dt_iop_module_t::histogram_max, dt_iop_module_t::params, set_color(), TRUE, and width.
Referenced by gui_init().
|
static |
References dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
|
static |
References _rgblevels_move_handle(), dist(), DT_GUI_CURVE_EDITOR_INSET, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
|
static |
References _rgblevels_move_handle(), _turn_selregion_picker_off(), darktable, darktable_t::develop, dt_conf_get_int(), dt_conf_set_int(), dt_gui_get_scroll_unit_deltas(), dt_iop_request_focus(), dt_modifier_is(), dtgtk_drawing_area_set_aspect_ratio(), FALSE, dt_iop_module_t::gui_data, dt_develop_t::gui_module, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
References DT_IOP_RGBLEVELS_INDEPENDENT_CHANNELS, dt_rgb_norm(), DT_RGB_NORM_NONE, height, and width.
Referenced by process().
|
static |
References _turn_selregion_picker_off(), darktable, dt_iop_module_t::dev, darktable_t::develop, dt_dev_add_history_item, dt_dev_invalidate_all, dt_dev_refresh_ui_images, dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_iop_request_focus(), darktable_t::gui, dt_iop_module_t::gui_data, dt_iop_module_t::off, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
|
static |
References _turn_select_region_off().
Referenced by gui_init().
|
static |
|
static |
References darktable, darktable_t::develop, dt_dev_add_history_item, dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), darktable_t::gui, dt_iop_module_t::gui_data, gui_update(), dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_cleanup(), and gui_init().
|
static |
References dt_iop_module_t::dev, DT_ALIGNED_ARRAY, dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_BACK_INCL, height, dt_iop_roi_t::height, dt_iop_module_t::iop_order, MAX, MIN, dt_dev_pixelpipe_iop_t::pipe, dt_iop_roi_t::scale, width, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
Referenced by process().
|
static |
References darktable, darktable_t::develop, dt_dev_add_history_item, dt_iop_module_t::gui_data, levels(), and TRUE.
Referenced by _area_motion_notify_callback(), and _area_scroll_callback().
|
static |
References DT_IOP_RGBLEVELS_INDEPENDENT_CHANNELS, DT_IOP_RGBLEVELS_LINKED_CHANNELS, FALSE, and TRUE.
Referenced by gui_changed(), and gui_update().
|
static |
References darktable, darktable_t::develop, dt_dev_add_history_item, dt_iop_color_picker_reset(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_iop_request_focus(), darktable_t::gui, dt_iop_module_t::gui_data, dt_iop_module_t::off, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
|
static |
References darktable, darktable_t::gui, dt_iop_module_t::gui_data, dt_gui_gtk_t::reset, and dt_iop_module_t::widget.
Referenced by gui_init().
|
static |
References dt_iop_module_t::gui_data.
Referenced by _color_picker_callback(), _turn_selregion_picker_off(), and gui_focus().
|
static |
References _turn_select_region_off(), dt_iop_color_picker_reset(), and TRUE.
Referenced by _area_button_press_callback(), _area_scroll_callback(), _auto_levels_callback(), button_pressed(), gui_changed(), and gui_reset().
int button_pressed | ( | struct dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
double | pressure, | ||
int | which, | ||
int | type, | ||
uint32_t | state | ||
) |
int button_released | ( | struct dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
int | which, | ||
uint32_t | state | ||
) |
void change_image | ( | struct dt_iop_module_t * | self | ) |
References DT_IOP_RGBLEVELS_R, and dt_iop_module_t::gui_data.
Referenced by gui_init().
void cleanup_global | ( | dt_iop_module_so_t * | self | ) |
void cleanup_pipe | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References dt_dev_pixelpipe_iop_t::data.
void color_picker_apply | ( | dt_iop_module_t * | self, |
GtkWidget * | picker, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
void commit_params | ( | dt_iop_module_t * | self, |
dt_iop_params_t * | p1, | ||
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References _compute_lut(), dt_iop_rgblevels_params_t::autoscale, dt_dev_pixelpipe_iop_t::data, DT_DEV_PIXELPIPE_PREVIEW, DT_IOP_RGBLEVELS_LINKED_CHANNELS, DT_IOP_RGBLEVELS_MAX_CHANNELS, DT_REQUEST_ON, dt_iop_rgblevels_params_t::levels, dt_iop_rgblevels_data_t::params, dt_dev_pixelpipe_iop_t::request_histogram, 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_RGB.
int default_group | ( | ) |
References IOP_GROUP_COLOR.
const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
int flags | ( | ) |
References IOP_FLAGS_DEPRECATED, and IOP_FLAGS_SUPPORTS_BLENDING.
void gui_changed | ( | dt_iop_module_t * | self, |
GtkWidget * | w, | ||
void * | previous | ||
) |
void gui_cleanup | ( | dt_iop_module_t * | self | ) |
void gui_focus | ( | struct dt_iop_module_t * | self, |
gboolean | in | ||
) |
References _turn_select_region_off().
void gui_init | ( | dt_iop_module_t * | self | ) |
References _area_button_press_callback(), _area_button_release_callback(), _area_draw_callback(), _area_leave_notify_callback(), _area_motion_notify_callback(), _area_scroll_callback(), _auto_levels_callback(), _color_picker_callback(), _develop_ui_pipe_finished_callback(), _select_region_toggled_callback(), _tab_switch_callback(), change_image(), darktable, dt_bauhaus_combobox_from_params(), dt_color_picker_new(), DT_COLOR_PICKER_POINT, dt_conf_get_int(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gui_add_class(), DT_PIXEL_APPLY_DPI, DT_SIGNAL_DEVELOP_PREVIEW_PIPE_FINISHED, dt_ui_notebook_page(), dtgtk_cairo_paint_colorpicker(), dtgtk_drawing_area_new_with_aspect_ratio(), dtgtk_togglebutton_new(), FALSE, darktable_t::gui, IOP_GUI_ALLOC, dt_gui_gtk_t::scroll_mask, darktable_t::signals, TRUE, and dt_iop_module_t::widget.
void gui_post_expose | ( | struct dt_iop_module_t * | self, |
cairo_t * | cr, | ||
int32_t | width, | ||
int32_t | height, | ||
int32_t | pointerx, | ||
int32_t | pointery | ||
) |
References dt_dev_pixelpipe_t::backbuf_height, dt_dev_pixelpipe_t::backbuf_width, darktable, darktable_t::develop, dt_control_get_dev_closeup(), dt_control_get_dev_zoom(), dt_control_get_dev_zoom_x(), dt_control_get_dev_zoom_y(), dt_dev_get_zoom_scale(), dt_iop_module_t::enabled, dt_iop_module_t::gui_data, height, dt_develop_t::preview_pipe, and width.
void gui_reset | ( | struct dt_iop_module_t * | self | ) |
void gui_update | ( | dt_iop_module_t * | self | ) |
void init | ( | dt_iop_module_t * | self | ) |
void init_global | ( | dt_iop_module_so_t * | self | ) |
void init_pipe | ( | 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_dev_pixelpipe_iop_t::data_size.
int mouse_moved | ( | struct dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
double | pressure, | ||
int | which | ||
) |
const char * name | ( | ) |
void process | ( | 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 _auto_levels(), _get_selected_area(), dt_iop_rgblevels_params_t::autoscale, dt_dev_pixelpipe_iop_t::colors, darktable, dt_dev_pixelpipe_iop_t::data, DT_DEV_PIXELPIPE_PREVIEW, dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_iop_have_required_input_format(), DT_IOP_RGBLEVELS_INDEPENDENT_CHANNELS, dt_ioppr_get_pipe_work_profile_info(), dt_rgb_norm(), DT_RGB_NORM_NONE, for_each_channel, darktable_t::gui, dt_iop_module_t::gui_data, dt_iop_roi_t::height, dt_iop_rgblevels_data_t::inv_gamma, levels(), dt_iop_rgblevels_params_t::levels, dt_iop_rgblevels_data_t::lut, dt_iop_rgblevels_data_t::params, dt_dev_pixelpipe_iop_t::pipe, dt_iop_rgblevels_params_t::preserve_colors, dt_gui_gtk_t::reset, and dt_iop_roi_t::width.