![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/colorspaces_inline_conversions.h"#include "common/darktable.h"#include "common/debug.h"#include "common/opencl.h"#include "control/conf.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop_gui.h"#include "dtgtk/drawingarea.h"#include "gui/draw.h"#include "gui/gtk.h"#include "gui/presets.h"#include "iop/iop_api.h"#include <inttypes.h>#include <math.h>#include <stdlib.h>#include <string.h>
Include dependency graph for lowlight.c:Data Structures | |
| struct | dt_iop_lowlight_params_t |
| struct | dt_iop_lowlight_gui_data_t |
| struct | dt_iop_lowlight_data_t |
| struct | dt_iop_lowlight_global_data_t |
Macros | |
| #define | DT_IOP_LOWLIGHT_INSET DT_PIXEL_APPLY_DPI(5) |
| #define | DT_IOP_LOWLIGHT_RES 64 |
| #define | DT_IOP_LOWLIGHT_BANDS 6 |
| #define | DT_IOP_LOWLIGHT_LUT_RES 0x10000 |
Typedefs | |
| typedef struct dt_iop_lowlight_params_t | dt_iop_lowlight_params_t |
| typedef struct dt_iop_lowlight_gui_data_t | dt_iop_lowlight_gui_data_t |
| typedef struct dt_iop_lowlight_data_t | dt_iop_lowlight_data_t |
| typedef struct dt_iop_lowlight_global_data_t | dt_iop_lowlight_global_data_t |
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) |
| static float | lookup (const float *lut, const float i) |
| void | process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const i, void *const o, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
| 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 | gui_update (struct dt_iop_module_t *self) |
| void | init (dt_iop_module_t *module) |
| void | init_presets (dt_iop_module_so_t *self) |
| static void | dt_iop_lowlight_get_params (dt_iop_lowlight_params_t *p, const double mouse_x, const double mouse_y, const float rad) |
| static gboolean | lowlight_draw (GtkWidget *widget, cairo_t *crf, gpointer user_data) |
| static gboolean | lowlight_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
| static gboolean | lowlight_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static gboolean | lowlight_button_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static gboolean | lowlight_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
| static gboolean | lowlight_scrolled (GtkWidget *widget, GdkEventScroll *event, gpointer user_data) |
| void | gui_init (struct dt_iop_module_t *self) |
| void | gui_cleanup (struct dt_iop_module_t *self) |
| #define DT_IOP_LOWLIGHT_BANDS 6 |
| #define DT_IOP_LOWLIGHT_INSET DT_PIXEL_APPLY_DPI(5) |
| #define DT_IOP_LOWLIGHT_LUT_RES 0x10000 |
| #define DT_IOP_LOWLIGHT_RES 64 |
| typedef struct dt_iop_lowlight_data_t dt_iop_lowlight_data_t |
| typedef struct dt_iop_lowlight_global_data_t dt_iop_lowlight_global_data_t |
| typedef struct dt_iop_lowlight_gui_data_t dt_iop_lowlight_gui_data_t |
| typedef struct dt_iop_lowlight_params_t dt_iop_lowlight_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_iop_lowlight_data_t::curve, dt_dev_pixelpipe_iop_t::data, and dt_draw_curve_destroy().
| 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 | ||
| ) |
| 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_EFFECTS.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
|
static |
References DT_IOP_LOWLIGHT_BANDS, and f().
Referenced by lowlight_draw(), and lowlight_motion_notify().
| int flags | ( | ) |
| void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
References CATMULL_ROM, darktable, dt_iop_module_t::default_params, dt_bauhaus_slider_from_params(), dt_bauhaus_slider_set_format(), DT_BAUHAUS_SPACE, dt_conf_get_int(), dt_draw_curve_add_point(), dt_draw_curve_new(), DT_IOP_LOWLIGHT_BANDS, dtgtk_drawing_area_new_with_aspect_ratio(), FALSE, darktable_t::gui, IOP_GUI_ALLOC, lowlight_button_press(), lowlight_button_release(), lowlight_draw(), lowlight_leave_notify(), lowlight_motion_notify(), lowlight_scrolled(), dt_gui_gtk_t::scroll_mask, dt_iop_module_t::timeout_handle, void(), and dt_iop_module_t::widget.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
| void init | ( | dt_iop_module_t * | module | ) |
References dt_iop_default_init(), DT_IOP_LOWLIGHT_BANDS, and dt_iop_lowlight_params_t::transition_x.
| void init_global | ( | dt_iop_module_so_t * | module | ) |
References dt_opencl_create_kernel(), and dt_iop_lowlight_global_data_t::kernel_lowlight.
| void init_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
References CATMULL_ROM, dt_iop_lowlight_data_t::curve, 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_LOWLIGHT_BANDS, dt_iop_lowlight_params_t::transition_x, dt_iop_lowlight_params_t::transition_y, and void().
| void init_presets | ( | dt_iop_module_so_t * | self | ) |
|
static |
References DT_IOP_LOWLIGHT_LUT_RES, f(), MAX, and MIN.
Referenced by process().
|
static |
References darktable, dt_iop_module_t::default_params, darktable_t::develop, dt_dev_add_history_item, dt_draw_curve_calc_value(), DT_IOP_LOWLIGHT_BANDS, DT_IOP_LOWLIGHT_INSET, FALSE, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, dt_iop_lowlight_params_t::transition_x, dt_iop_lowlight_params_t::transition_y, TRUE, dt_iop_module_t::widget, and width.
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_curve_calc_values(), dt_draw_curve_set_point(), dt_draw_grid(), DT_IOP_LOWLIGHT_BANDS, dt_iop_lowlight_get_params(), DT_IOP_LOWLIGHT_INSET, DT_IOP_LOWLIGHT_RES, DT_PIXEL_APPLY_DPI, f(), dt_iop_module_t::gui_data, height, M_PI, dt_bauhaus_t::pango_font_desc, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
|
static |
References dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
|
static |
References dist(), DT_IOP_LOWLIGHT_BANDS, dt_iop_lowlight_get_params(), DT_IOP_LOWLIGHT_INSET, dt_iop_queue_history_update(), FALSE, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, TRUE, and width.
Referenced by gui_init().
|
static |
References dt_conf_get_int(), dt_conf_set_int(), dt_gui_get_scroll_unit_deltas(), DT_IOP_LOWLIGHT_BANDS, dt_modifier_is(), dtgtk_drawing_area_set_aspect_ratio(), dt_iop_module_t::gui_data, and TRUE.
Referenced by gui_init().
| const char * name | ( | ) |
| void process | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | i, | ||
| void *const | o, | ||
| const dt_iop_roi_t *const | roi_in, | ||
| const dt_iop_roi_t *const | roi_out | ||
| ) |