![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "bauhaus/bauhaus.h"#include "common/colorspaces_inline_conversions.h"#include "common/math.h"#include "common/opencl.h"#include "common/exif.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "develop/openmp_maths.h"#include "develop/tiling.h"#include "dtgtk/drawingarea.h"#include "gui/gtk.h"#include "gui/presets.h"#include "iop/iop_api.h"#include "iop/gaussian_elimination.h"#include <assert.h>#include <stdlib.h>#include <string.h>#include <gtk/gtk.h>#include <inttypes.h>
Include dependency graph for colorchecker.c:Data Structures | |
| struct | dt_iop_colorchecker_params_t |
| struct | dt_iop_colorchecker_gui_data_t |
| struct | dt_iop_colorchecker_data_t |
| struct | dt_iop_colorchecker_global_data_t |
Macros | |
| #define | MAX_PATCHES 49 |
Typedefs | |
| typedef struct dt_iop_colorchecker_params_t | dt_iop_colorchecker_params_t |
| typedef struct dt_iop_colorchecker_gui_data_t | dt_iop_colorchecker_gui_data_t |
| typedef struct dt_iop_colorchecker_data_t | dt_iop_colorchecker_data_t |
| typedef struct dt_iop_colorchecker_global_data_t | dt_iop_colorchecker_global_data_t |
Variables | |
| static const int | colorchecker_patches = 24 |
| static const float | colorchecker_Lab [] |
| #define MAX_PATCHES 49 |
| typedef struct dt_iop_colorchecker_data_t dt_iop_colorchecker_data_t |
| typedef struct dt_iop_colorchecker_gui_data_t dt_iop_colorchecker_gui_data_t |
| typedef struct dt_iop_colorchecker_params_t dt_iop_colorchecker_params_t |
| void _colorchecker_rebuild_patch_list | ( | struct dt_iop_module_t * | self | ) |
References dt_bauhaus_combobox_add(), dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_get(), dt_bauhaus_combobox_length(), dtgtk_drawing_area_set_aspect_ratio(), g, dt_iop_module_t::gui_data, p, and dt_iop_module_t::params.
Referenced by checker_button_press(), and gui_update().
| void _colorchecker_update_sliders | ( | struct dt_iop_module_t * | self | ) |
References dt_bauhaus_slider_set(), g, dt_iop_module_t::gui_data, p, and dt_iop_module_t::params.
Referenced by checker_button_press(), color_picker_apply(), gui_update(), patch_callback(), and target_callback().
| const char * aliases | ( | ) |
|
static |
References _colorchecker_rebuild_patch_list(), _colorchecker_update_sliders(), darktable, darktable_t::develop, dt_bauhaus_combobox_set(), dt_dev_add_history_item, dt_modifier_is(), DT_REQUEST_COLORPICK_MODULE, FALSE, g, darktable_t::gui, dt_iop_module_t::gui_data, height, i, MAX_PATCHES, MIN, p, dt_iop_module_t::params, dt_iop_module_t::picked_color, dt_iop_module_t::request_color_pick, dt_gui_gtk_t::reset, TRUE, and width.
Referenced by gui_init().
|
static |
References dt_cairo_image_surface_create(), dt_Lab_to_XYZ(), DT_PIXEL_APPLY_DPI, dt_XYZ_to_sRGB(), g, dt_iop_module_t::gui_data, height, i, Lab, p, dt_iop_module_t::params, rgb, TRUE, width, and XYZ.
Referenced by gui_init().
|
static |
References FALSE.
Referenced by gui_init().
|
static |
References FALSE, g, dt_iop_module_t::gui_data, height, p, dt_iop_module_t::params, tooltip, TRUE, and width.
Referenced by gui_init().
| 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, and dt_free_align.
| void color_picker_apply | ( | dt_iop_module_t * | self, |
| GtkWidget * | picker, | ||
| dt_dev_pixelpipe_t * | pipe, | ||
| 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 | ||
| ) |
References A, b, d, dt_dev_pixelpipe_iop_t::data, dt_free, gauss_make_triangular(), gauss_solve(), gauss_solve_triangular(), i, kernel(), MAX_PATCHES, N, and p.
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const 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 | ( | ) |
References IOP_FLAGS_ALLOW_TILING, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
References darktable_t::bauhaus, checker_button_press(), checker_draw(), checker_leave_notify(), checker_motion_notify(), darktable, dt_iop_module_t::default_params, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_new(), dt_bauhaus_slider_new_with_range(), dt_bauhaus_slider_set_stop(), DT_BAUHAUS_SPACE, dt_bauhaus_widget_set_label(), dt_color_picker_new(), DT_COLOR_PICKER_POINT_AREA, DT_GUI_MODULE, dtgtk_drawing_area_new_with_aspect_ratio(), g, IOP_GUI_ALLOC, p, patch_callback(), target_a_callback(), target_b_callback(), target_C_callback(), target_callback(), target_L_callback(), TRUE, and dt_iop_module_t::widget.
| 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 | ) |
References _colorchecker_rebuild_patch_list(), _colorchecker_update_sliders(), g, and dt_iop_module_t::gui_data.
| void init | ( | dt_iop_module_t * | module | ) |
References colorchecker_Lab, colorchecker_patches, d, and dt_iop_colorchecker_params_t::num_patches.
| 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, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| void init_presets | ( | dt_iop_module_so_t * | self | ) |
The following are based on Jo's Fuji film emulations, without tonecurve which is let to user choice https://jo.dreggn.org/blog/ansel-fuji-styles.tar.xz
References DEVELOP_BLEND_CS_RGB_DISPLAY, dt_exif_xmp_decode(), dt_free, dt_gui_presets_add_generic(), dt_iop_module_so_t::op, and p.
| void input_format | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece, | ||
| dt_iop_buffer_dsc_t * | dsc | ||
| ) |
|
inlinestatic |
References fastlog(), MAX, and x.
Referenced by _compute_downsampling_kernel(), _compute_upsampling_kernel(), _masks_blur_13x13_coeff(), _masks_blur_5x5_coeff(), _prepare_resampling_plan(), build_matrix(), commit_params(), compute_kernel(), dt_focuspeaking(), dt_masks_blur_9x9_coeff(), edge_enhance_1d(), gaussian_kernel(), gaussian_sampler(), isotrope_laplacian(), process(), and process().
| 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 | ( | ) |
References _colorchecker_update_sliders(), darktable, dt_bauhaus_combobox_get(), dt_iop_color_picker_reset(), g, darktable_t::gui, dt_iop_module_t::gui_data, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
| int process | ( | struct dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | ivoid, | ||
| void *const | ovoid | ||
| ) |
References dt_iop_colorchecker_data_t::coeff_a, dt_iop_colorchecker_data_t::coeff_b, dt_iop_colorchecker_data_t::coeff_L, dt_dev_pixelpipe_iop_t::data, DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_iop_alpha_copy(), dt_iop_roi_t::height, i, kernel(), dt_dev_pixelpipe_t::mask_display, dt_iop_colorchecker_data_t::num_patches, out, dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, dt_iop_colorchecker_data_t::source_Lab, and dt_iop_roi_t::width.
References darktable, darktable_t::develop, dt_bauhaus_slider_get(), dt_bauhaus_slider_set(), dt_dev_add_history_item, g, darktable_t::gui, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
References darktable, darktable_t::develop, dt_bauhaus_slider_get(), dt_bauhaus_slider_set(), dt_dev_add_history_item, g, darktable_t::gui, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
References darktable, darktable_t::develop, dt_bauhaus_slider_get(), dt_bauhaus_slider_set(), dt_dev_add_history_item, g, darktable_t::gui, dt_iop_module_t::gui_data, MAX, p, dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
References _colorchecker_update_sliders(), darktable, dt_bauhaus_combobox_get(), dt_iop_color_picker_reset(), g, darktable_t::gui, dt_iop_module_t::gui_data, dt_gui_gtk_t::reset, and TRUE.
Referenced by gui_init().
References darktable, darktable_t::develop, dt_bauhaus_slider_get(), dt_dev_add_history_item, g, dt_iop_module_t::gui_data, p, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
Referenced by add_hdr_patches(), add_patches_to_array(), init(), main_csv(), process_button_clicked_callback(), and process_data().
|
static |
Referenced by init().