![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "bauhaus/bauhaus.h"
#include "common/colorspaces.h"
#include "common/debug.h"
#include "common/opencl.h"
#include "control/control.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_math.h"
#include "develop/imageop_gui.h"
#include "develop/tiling.h"
#include "dtgtk/gradientslider.h"
#include "gui/color_picker_proxy.h"
#include "gui/draw.h"
#include "gui/gtk.h"
#include "gui/presets.h"
#include "iop/iop_api.h"
Data Structures | |
struct | dt_iop_graduatednd_params_t |
struct | dt_iop_graduatednd_global_data_t |
struct | dt_iop_graduatednd_gui_data_t |
struct | dt_iop_graduatednd_data_t |
struct | dt_iop_vector_2d_t |
Typedefs | |
typedef struct dt_iop_graduatednd_params_t | dt_iop_graduatednd_params_t |
typedef struct dt_iop_graduatednd_global_data_t | dt_iop_graduatednd_global_data_t |
typedef struct dt_iop_graduatednd_gui_data_t | dt_iop_graduatednd_gui_data_t |
typedef struct dt_iop_graduatednd_data_t | dt_iop_graduatednd_data_t |
typedef struct dt_iop_vector_2d_t | dt_iop_vector_2d_t |
Functions | |
void | init_presets (dt_iop_module_so_t *self) |
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 | f (const float t, const float c, const float x) |
static float | dist_seg (float xa, float ya, float xb, float yb, float xc, float yc) |
static int | set_grad_from_points (struct dt_iop_module_t *self, float xa, float ya, float xb, float yb, float *rotation, float *offset) |
static int | set_points_from_grad (struct dt_iop_module_t *self, float *xa, float *ya, float *xb, float *yb, float rotation, float offset) |
static void | update_saturation_slider_end_color (GtkWidget *slider, float hue) |
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_post_expose (struct dt_iop_module_t *self, cairo_t *cr, int32_t width, int32_t height, int32_t pointerx, int32_t pointery) |
int | mouse_moved (struct dt_iop_module_t *self, double x, double y, double pressure, int which) |
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) |
int | scrolled (dt_iop_module_t *self, double x, double y, int up, uint32_t state) |
static float | density_times_length (const float dens, const float length) |
static float | compute_density (const float dens, const float length) |
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 | gui_changed (dt_iop_module_t *self, GtkWidget *w, void *previous) |
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 | gui_init (struct dt_iop_module_t *self) |
typedef struct dt_iop_graduatednd_data_t dt_iop_graduatednd_data_t |
typedef struct dt_iop_graduatednd_global_data_t dt_iop_graduatednd_global_data_t |
typedef struct dt_iop_graduatednd_gui_data_t dt_iop_graduatednd_gui_data_t |
typedef struct dt_iop_graduatednd_params_t dt_iop_graduatednd_params_t |
typedef struct dt_iop_vector_2d_t dt_iop_vector_2d_t |
int button_pressed | ( | struct dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
double | pressure, | ||
int | which, | ||
int | type, | ||
uint32_t | state | ||
) |
References dt_iop_module_t::dev, dt_dev_get_pointer_zoom_pos(), and dt_iop_module_t::gui_data.
int button_released | ( | struct dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
int | which, | ||
uint32_t | state | ||
) |
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 color_picker_apply | ( | dt_iop_module_t * | self, |
GtkWidget * | picker, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
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 | ||
) |
|
inlinestatic |
References CLIP, density_times_length(), and DT_M_LN2f.
Referenced by process().
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_EFFECTS.
|
inlinestatic |
Referenced by compute_density().
const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
|
static |
Referenced by mouse_moved().
|
inlinestatic |
Referenced by __attribute__(), _blend_hardlight(), _blend_linearlight(), _blend_multiply(), _blend_overlay(), _blend_screen(), _blend_softlight(), _blend_vividlight(), _circle_get_mask(), _circle_get_mask_roi(), _colorspaces_get_base_name(), _colorspaces_is_base_name(), _compute_upsampling_kernel(), _dt_focus_update(), _dt_Hue_2_RGB(), _dup_masks_form_cb(), _fill_mask(), _get_total_memory(), _image_distance_transform(), _lib_masks_list_recurs(), _masks_cleanup_unused(), _print_nan_debug(), _process(), _quantize(), _read_pbm(), _read_pgm(), _read_ppm(), _retouch_fill(), _simplex(), _simplex_2d_noise(), _tonecurve_apply(), _track_add_point(), apply_legacy_curve(), area_draw(), cbrt_5f(), clamp(), demosaic_ppg(), denoiseprofile_draw(), doubleToRawLongBits(), draw_f_boxes(), dsvd(), dt_bauhaus_combobox_from_params(), dt_bauhaus_slider_from_params(), dt_bauhaus_toggle_from_params(), dt_bauhaus_value_changed_default_callback(), dt_bauhaus_widget_set_quad_paint(), dt_conf_init(), dt_conf_print(), dt_conf_save(), dt_gpx_geodesic_intermediate_point(), dt_gpx_get_location(), dt_gradient_lookup(), dt_image_distance_transform(), dt_image_film_roll(), dt_image_film_roll_directory(), dt_imageio_dng_convert_rational(), dt_imageio_dng_write_tiff_header(), dt_imageio_jpeg_write_with_icc_profile(), dt_imageio_open_pfm(), dt_imageio_open_pnm(), dt_imageio_open_rawspeed(), dt_imageio_open_rgbe(), dt_imageio_open_webp(), dt_imageio_write_dng(), dt_iop_colorzones_get_params(), dt_iop_denoiseprofile_get_params(), dt_iop_lowlight_get_params(), dt_iop_monochrome_draw(), dt_iop_rawdenoise_get_params(), dt_Lab_to_XYZ(), dt_log2f(), dt_masks_form_remove(), dt_masks_group_get_hash(), dt_masks_gui_form_save_creation(), dt_mipmap_cache_allocate_dynamic(), dt_mipmap_cache_deallocate_dynamic(), dt_points_get_for(), dt_print_mem_usage(), dt_XYZ_to_Lab(), easter(), extrapolate_lut(), fast_mexp2f(), fastlog2(), finalize_store(), get_params(), gh(), gui_init(), image_is_normalized(), Lab_to_XYZ(), legacy_params(), legacy_params(), lerp_lookup_unbounded(), lerp_lut(), lerp_lut(), lin_interpolate(), longBitsToDouble(), lookup(), lookup(), lowlight_draw(), main(), main(), modify_roi_out(), nearest_color(), parse_cht(), parse_csv(), process(), process_clusters(), process_floyd_steinberg(), rawdenoise_draw(), rcd_ppg_border(), read_curveset(), read_histogram(), read_pfm(), read_pfm(), read_ppm16(), read_ppm8(), read_ppm_header(), rgbe2float(), rt_copy_image_masked(), rt_copy_mask_to_alpha(), simplex(), vec3lnorm(), vec3norm(), vec3prodn(), write_curveset(), write_image(), write_image(), write_image(), write_image(), write_image(), write_pfm(), xdiv2f(), xdivf(), xmul2f(), xtrans_fdc_interpolate(), and xtrans_markesteijn_interpolate().
int flags | ( | ) |
void gui_changed | ( | dt_iop_module_t * | self, |
GtkWidget * | w, | ||
void * | previous | ||
) |
void gui_init | ( | struct dt_iop_module_t * | self | ) |
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, dt_iop_module_t::dev, 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_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, FALSE, dt_iop_module_t::gui_data, height, dt_iop_module_t::params, dt_develop_t::preview_pipe, set_points_from_grad(), TRUE, and width.
void gui_reset | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_color_picker_reset(), and TRUE.
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 | ) |
int mouse_moved | ( | struct dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
double | pressure, | ||
int | which | ||
) |
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::buf_in, dt_iop_graduatednd_data_t::color, dt_iop_graduatednd_data_t::color1, dt_dev_pixelpipe_iop_t::colors, compute_density(), dt_dev_pixelpipe_iop_t::data, dt_iop_graduatednd_data_t::density, DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_iop_alpha_copy(), dt_iop_graduatednd_data_t::hardness, height, dt_iop_roi_t::height, M_PI, MAX, dt_iop_graduatednd_data_t::offset, dt_dev_pixelpipe_iop_t::pipe, dt_iop_graduatednd_data_t::rotation, dt_iop_roi_t::scale, width, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
int scrolled | ( | dt_iop_module_t * | self, |
double | x, | ||
double | y, | ||
int | up, | ||
uint32_t | state | ||
) |
References dt_bauhaus_slider_set(), dt_modifier_is(), dt_iop_module_t::gui_data, and dt_iop_module_t::params.
|
static |
References dt_dev_pixelpipe_t::backbuf_height, dt_dev_pixelpipe_t::backbuf_width, dt_dev_pixelpipe_iop_t::buf_out, dt_iop_module_t::dev, dt_dev_distort_backtransform_plus(), dt_dev_distort_get_iop_pipe(), DT_DEV_TRANSFORM_DIR_FORW_EXCL, eps, dt_iop_roi_t::height, dt_iop_module_t::iop_order, M_PI, M_PI_F, dt_develop_t::preview_pipe, and dt_iop_roi_t::width.
Referenced by button_released().
|
static |
References dt_dev_pixelpipe_t::backbuf_height, dt_dev_pixelpipe_t::backbuf_width, dt_dev_pixelpipe_iop_t::buf_out, dt_iop_module_t::dev, dt_dev_distort_get_iop_pipe(), dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_FORW_EXCL, dt_iop_roi_t::height, dt_iop_module_t::iop_order, M_PI, dt_develop_t::preview_pipe, and dt_iop_roi_t::width.
Referenced by button_released(), gui_changed(), and gui_post_expose().
|
inlinestatic |
References dt_bauhaus_slider_set_stop(), and hsl2rgb().
Referenced by color_picker_apply(), gui_changed(), and gui_update().