![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"
#include "common/opencl.h"
#include "control/control.h"
#include "develop/imageop.h"
#include "develop/imageop_gui.h"
#include "gui/gtk.h"
#include "iop/iop_api.h"
#include <assert.h>
#include <gtk/gtk.h>
#include <stdlib.h>
Data Structures | |
struct | dt_iop_colorcontrast_params1_t |
struct | dt_iop_colorcontrast_params_t |
struct | dt_iop_colorcontrast_gui_data_t |
struct | dt_iop_colorcontrast_data_t |
struct | dt_iop_colorcontrast_global_data_t |
Typedefs | |
typedef struct dt_iop_colorcontrast_params1_t | dt_iop_colorcontrast_params1_t |
typedef struct dt_iop_colorcontrast_params_t | dt_iop_colorcontrast_params_t |
typedef struct dt_iop_colorcontrast_gui_data_t | dt_iop_colorcontrast_gui_data_t |
typedef struct dt_iop_colorcontrast_data_t | dt_iop_colorcontrast_data_t |
typedef struct dt_iop_colorcontrast_global_data_t | dt_iop_colorcontrast_global_data_t |
Functions | |
const char * | name () |
const char * | aliases () |
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 void | clamped_scaling (float *const restrict out, const float *const restrict in, const dt_aligned_pixel_t slope, const dt_aligned_pixel_t offset, const dt_aligned_pixel_t low, const dt_aligned_pixel_t high) |
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_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 *params, 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 (dt_iop_module_t *self) |
void | gui_init (dt_iop_module_t *self) |
typedef struct dt_iop_colorcontrast_data_t dt_iop_colorcontrast_data_t |
typedef struct dt_iop_colorcontrast_gui_data_t dt_iop_colorcontrast_gui_data_t |
typedef struct dt_iop_colorcontrast_params1_t dt_iop_colorcontrast_params1_t |
typedef struct dt_iop_colorcontrast_params_t dt_iop_colorcontrast_params_t |
const char * aliases | ( | ) |
|
inlinestatic |
References CLAMPS, and for_each_channel.
Referenced by process().
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 * | params, | ||
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
commit is the synch point between core and gui, so it copies params to pipe data.
References dt_iop_colorcontrast_data_t::a_offset, dt_iop_colorcontrast_data_t::a_steepness, dt_iop_colorcontrast_data_t::b_offset, dt_iop_colorcontrast_data_t::b_steepness, dt_dev_pixelpipe_iop_t::data, and dt_iop_colorcontrast_data_t::unbound.
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().
int flags | ( | ) |
void gui_init | ( | dt_iop_module_t * | self | ) |
References dt_bauhaus_slider_from_params(), and IOP_GUI_ALLOC.
void gui_update | ( | dt_iop_module_t * | self | ) |
References dt_bauhaus_slider_set(), dt_iop_module_t::gui_data, and dt_iop_module_t::params.
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.
int legacy_params | ( | dt_iop_module_t * | self, |
const void *const | old_params, | ||
const int | old_version, | ||
void * | new_params, | ||
const int | new_version | ||
) |
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_iop_colorcontrast_params_t::a_offset, dt_iop_colorcontrast_params_t::a_steepness, dt_iop_colorcontrast_params_t::b_offset, dt_iop_colorcontrast_params_t::b_steepness, clamped_scaling(), dt_dev_pixelpipe_iop_t::colors, dt_dev_pixelpipe_iop_t::data, dt_iop_have_required_input_format(), DT_IS_ALIGNED, for_each_channel, dt_iop_roi_t::height, dt_iop_colorcontrast_params_t::unbound, and dt_iop_roi_t::width.