![]() |
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>
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 |
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) |
void | init_presets (dt_iop_module_so_t *self) |
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) |
static gboolean | dt_iop_colorcorrection_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data) |
static gboolean | dt_iop_colorcorrection_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
static gboolean | dt_iop_colorcorrection_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
static gboolean | dt_iop_colorcorrection_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
static gboolean | dt_iop_colorcorrection_scrolled (GtkWidget *widget, GdkEventScroll *event, gpointer user_data) |
static gboolean | dt_iop_colorcorrection_key_press (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
void | gui_init (struct dt_iop_module_t *self) |
void | gui_cleanup (struct dt_iop_module_t *self) |
#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.
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_COLOR.
const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
|
static |
References darktable, dt_iop_module_t::default_params, darktable_t::develop, dt_dev_add_history_item, FALSE, dt_iop_module_t::gui_data, 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, dt_iop_module_t::gui_data, height, Lab(), M_PI, dt_iop_module_t::params, 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, dt_iop_module_t::gui_data, 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, dt_iop_module_t::gui_data, height, 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(), dt_iop_module_t::gui_data, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
int flags | ( | ) |
void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
References 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(), 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 | ) |
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, and dt_dev_pixelpipe_iop_t::data_size.
void init_presets | ( | dt_iop_module_so_t * | self | ) |
References DEVELOP_BLEND_CS_RGB_DISPLAY, dt_gui_presets_add_generic(), and dt_iop_module_so_t::op.
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 | ||
) |
References dt_iop_colorcorrection_data_t::a_base, dt_iop_colorcorrection_data_t::a_scale, dt_iop_colorcorrection_data_t::b_base, dt_iop_colorcorrection_data_t::b_scale, dt_dev_pixelpipe_iop_t::colors, dt_dev_pixelpipe_iop_t::data, dt_iop_have_required_input_format(), DT_IS_ALIGNED, dt_iop_roi_t::height, dt_iop_colorcorrection_data_t::saturation, and dt_iop_roi_t::width.