![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "glib.h"#include "bauhaus/bauhaus.h"#include "common/interpolation.h"#include "common/file_location.h"#include "common/imagebuf.h"#include "common/opencl.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_gui.h"#include "develop/tiling.h"#include "dtgtk/button.h"#include "dtgtk/resetlabel.h"#include "gui/draw.h"#include "gui/gtk.h"#include "iop/iop_api.h"#include <assert.h>#include <ctype.h>#include <gtk/gtk.h>#include <inttypes.h>#include <math.h>#include <stdlib.h>#include <string.h>#include <lensfun.h>
Include dependency graph for lens.cc:Data Structures | |
| struct | dt_iop_lensfun_modifier_t |
| struct | dt_iop_lensfun_params_t |
| struct | dt_iop_lensfun_gui_data_t |
| struct | dt_iop_lensfun_global_data_t |
| struct | dt_iop_lensfun_data_t |
Macros | |
| #define | LF_SEARCH_SORT_AND_UNIQUIFY 2 |
Typedefs | |
| typedef enum dt_iop_lensfun_modflag_t | dt_iop_lensfun_modflag_t |
| typedef struct dt_iop_lensfun_modifier_t | dt_iop_lensfun_modifier_t |
| typedef struct dt_iop_lensfun_params_t | dt_iop_lensfun_params_t |
| typedef struct dt_iop_lensfun_gui_data_t | dt_iop_lensfun_gui_data_t |
| typedef struct dt_iop_lensfun_global_data_t | dt_iop_lensfun_global_data_t |
| typedef struct dt_iop_lensfun_data_t | dt_iop_lensfun_data_t |
Enumerations | |
| enum | dt_iop_lensfun_modflag_t { LENSFUN_MODFLAG_NONE = 0 , LENSFUN_MODFLAG_ALL = LF_MODIFY_DISTORTION | LF_MODIFY_TCA | LF_MODIFY_VIGNETTING , LENSFUN_MODFLAG_DIST_TCA = LF_MODIFY_DISTORTION | LF_MODIFY_TCA , LENSFUN_MODFLAG_DIST_VIGN = LF_MODIFY_DISTORTION | LF_MODIFY_VIGNETTING , LENSFUN_MODFLAG_TCA_VIGN = LF_MODIFY_TCA | LF_MODIFY_VIGNETTING , LENSFUN_MODFLAG_DIST = LF_MODIFY_DISTORTION , LENSFUN_MODFLAG_TCA = LF_MODIFY_TCA , LENSFUN_MODFLAG_VIGN = LF_MODIFY_VIGNETTING , LENSFUN_MODFLAG_MASK = LF_MODIFY_DISTORTION | LF_MODIFY_TCA | LF_MODIFY_VIGNETTING } |
Functions | |
| const char * | name () |
| const char * | aliases () |
| const char ** | description (struct dt_iop_module_t *self) |
| int | default_group () |
| int | operation_tags () |
| int | flags () |
| 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 char * | _lens_sanitize (const char *orig_lens) |
| static lfModifier * | get_modifier (int *mods_done, int w, int h, const dt_iop_lensfun_data_t *d, int mods_filter, gboolean force_inverse) |
| void | process (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 | tiling_callback (struct dt_iop_module_t *self, struct dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *roi_in, const dt_iop_roi_t *roi_out, struct dt_develop_tiling_t *tiling) |
| int | distort_transform (dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, float *const __restrict points, size_t points_count) |
| int | distort_backtransform (dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, float *const __restrict points, size_t points_count) |
| void | distort_mask (struct dt_iop_module_t *self, struct dt_dev_pixelpipe_iop_t *piece, const float *const in, float *const out, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
| void | modify_roi_out (struct dt_iop_module_t *self, struct dt_dev_pixelpipe_iop_t *piece, dt_iop_roi_t *roi_out, const dt_iop_roi_t *roi_in) |
| void | modify_roi_in (struct dt_iop_module_t *self, struct dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *const roi_out, dt_iop_roi_t *roi_in) |
| 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 | init_global (dt_iop_module_so_t *module) |
| static float | get_autoscale (dt_iop_module_t *self, dt_iop_lensfun_params_t *p, const lfCamera *camera) |
| void | reload_defaults (dt_iop_module_t *module) |
| void | cleanup_global (dt_iop_module_so_t *module) |
| static int | precision (double x, double adj) |
| static int | ptr_array_insert_sorted (GPtrArray *array, const void *item, GCompareFunc compare) |
| static int | ptr_array_find_sorted (const GPtrArray *array, const void *item, GCompareFunc compare) |
| static void | ptr_array_insert_index (GPtrArray *array, const void *item, int index) |
| static void | camera_set (dt_iop_module_t *self, const lfCamera *cam) |
| static void | camera_menu_select (GtkMenuItem *menuitem, gpointer user_data) |
| static void | camera_menu_fill (dt_iop_module_t *self, const lfCamera *const *camlist) |
| static void | parse_model (const char *txt, char *model, size_t sz_model) |
| static void | camera_menusearch_clicked (GtkWidget *button, gpointer user_data) |
| static void | camera_autosearch_clicked (GtkWidget *button, gpointer user_data) |
| static void | lens_comboentry_focal_update (GtkWidget *widget, dt_iop_module_t *self) |
| static void | lens_comboentry_aperture_update (GtkWidget *widget, dt_iop_module_t *self) |
| static void | lens_comboentry_distance_update (GtkWidget *widget, dt_iop_module_t *self) |
| static void | delete_children (GtkWidget *widget, gpointer data) |
| static void | lens_set (dt_iop_module_t *self, const lfLens *lens) |
| static void | lens_menu_select (GtkMenuItem *menuitem, gpointer user_data) |
| static void | lens_menu_fill (dt_iop_module_t *self, const lfLens *const *lenslist) |
| static void | lens_menusearch_clicked (GtkWidget *button, gpointer user_data) |
| static void | lens_autosearch_clicked (GtkWidget *button, gpointer user_data) |
| static void | target_geometry_changed (GtkWidget *widget, gpointer user_data) |
| static void | modflags_changed (GtkWidget *widget, gpointer user_data) |
| void | gui_changed (dt_iop_module_t *self, GtkWidget *w, void *previous) |
| static void | autoscale_pressed (GtkWidget *button, gpointer user_data) |
| static void | corrections_done (gpointer instance, gpointer user_data) |
| void | gui_init (struct dt_iop_module_t *self) |
| void | gui_update (struct dt_iop_module_t *self) |
| void | gui_cleanup (struct dt_iop_module_t *self) |
| #define LF_SEARCH_SORT_AND_UNIQUIFY 2 |
| typedef struct dt_iop_lensfun_data_t dt_iop_lensfun_data_t |
| typedef struct dt_iop_lensfun_global_data_t dt_iop_lensfun_global_data_t |
| typedef struct dt_iop_lensfun_gui_data_t dt_iop_lensfun_gui_data_t |
| typedef enum dt_iop_lensfun_modflag_t dt_iop_lensfun_modflag_t |
| typedef struct dt_iop_lensfun_modifier_t dt_iop_lensfun_modifier_t |
| typedef struct dt_iop_lensfun_params_t dt_iop_lensfun_params_t |
|
static |
Referenced by reload_defaults().
| const char * aliases | ( | ) |
|
static |
References darktable, darktable_t::develop, dt_bauhaus_slider_set(), dt_dev_add_history_item, get_autoscale(), dt_iop_module_t::gui_data, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
References camera_menu_fill(), darktable, dt_iop_lensfun_global_data_t::db, dt_iop_module_t::default_params, dt_gui_menu_popup(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_iop_module_t::global_data, dt_iop_module_t::gui_data, model, parse_model(), darktable_t::plugin_threadsafe, and void().
Referenced by gui_init().
|
static |
References camera_menu_select(), dt_iop_module_t::gui_data, m, ptr_array_find_sorted(), ptr_array_insert_index(), ptr_array_insert_sorted(), and TRUE.
Referenced by camera_autosearch_clicked(), and camera_menusearch_clicked().
|
static |
References camera_set(), darktable, darktable_t::develop, dt_dev_add_history_item, darktable_t::gui, dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by camera_menu_fill().
|
static |
|
static |
References dt_iop_module_t::gui_data, maker, model, and dt_iop_module_t::params.
Referenced by camera_menu_select(), and gui_update().
| void cleanup_global | ( | dt_iop_module_so_t * | module | ) |
References dt_iop_module_so_t::data, dt_iop_lensfun_global_data_t::db, dt_opencl_free_kernel(), dt_iop_lensfun_global_data_t::kernel_lens_distort_bicubic, dt_iop_lensfun_global_data_t::kernel_lens_distort_bilinear, dt_iop_lensfun_global_data_t::kernel_lens_distort_lanczos2, dt_iop_lensfun_global_data_t::kernel_lens_distort_lanczos3, and dt_iop_lensfun_global_data_t::kernel_lens_vignette.
| 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_iop_lensfun_data_t::lens.
| 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 dt_iop_lensfun_data_t::aperture, dt_iop_lensfun_data_t::crop, dt_iop_lensfun_data_t::custom_tca, darktable, dt_dev_pixelpipe_iop_t::data, dt_iop_lensfun_global_data_t::db, dt_iop_module_t::default_params, dt_iop_module_t::dev, dt_iop_lensfun_data_t::distance, dt_iop_lensfun_data_t::do_nan_checks, dt_image_is_monochrome(), dt_iop_compute_module_hash(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, dt_iop_lensfun_data_t::focal, dt_develop_t::forms, dt_iop_module_t::global_data, dt_image_t::height, dt_develop_t::image_storage, dt_iop_lensfun_data_t::inverse, dt_iop_lensfun_data_t::lens, dt_iop_lensfun_data_t::modify_flags, darktable_t::plugin_threadsafe, dt_iop_lensfun_data_t::scale, dt_iop_lensfun_data_t::target_geom, dt_iop_lensfun_data_t::tca_override, TRUE, and dt_image_t::width.
|
static |
References corrections_done(), darktable, dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_iop_module_t::enabled, darktable_t::gui, dt_iop_module_t::gui_data, dt_iop_lensfun_modifier_t::modflag, dt_iop_lensfun_modifier_t::name, and dt_gui_gtk_t::reset.
Referenced by corrections_done(), gui_cleanup(), and gui_init().
| 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_REPAIR.
|
static |
References void().
Referenced by lens_set().
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
| int distort_backtransform | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_iop_t * | piece, | ||
| float *const __restrict | points, | ||
| size_t | points_count | ||
| ) |
| void distort_mask | ( | struct dt_iop_module_t * | self, |
| struct dt_dev_pixelpipe_iop_t * | piece, | ||
| const float *const | in, | ||
| float *const | out, | ||
| 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_lensfun_data_t::crop, darktable, dt_dev_pixelpipe_iop_t::data, dt_iop_lensfun_data_t::do_nan_checks, dt_alloc_perthread_float(), dt_free_align, dt_get_perthread, dt_interpolation_compute_sample(), dt_interpolation_new(), DT_INTERPOLATION_USERPREF_WARP, dt_iop_image_copy_by_size(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, get_modifier(), dt_iop_roi_t::height, dt_iop_lensfun_data_t::lens, darktable_t::plugin_threadsafe, dt_iop_roi_t::scale, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
| int distort_transform | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_iop_t * | piece, | ||
| float *const __restrict | points, | ||
| size_t | points_count | ||
| ) |
| int flags | ( | ) |
References IOP_FLAGS_ALLOW_TILING, and IOP_FLAGS_TILING_FULL_ROI.
|
static |
References dt_iop_lensfun_data_t::aperture, dt_iop_lensfun_data_t::crop, dt_image_t::crop_height, dt_image_t::crop_width, dt_image_t::crop_x, dt_image_t::crop_y, dt_iop_lensfun_data_t::custom_tca, darktable, dt_iop_lensfun_global_data_t::db, dt_iop_module_t::dev, dt_iop_lensfun_data_t::distance, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, dt_iop_lensfun_data_t::focal, get_modifier(), dt_iop_module_t::global_data, dt_image_t::height, dt_develop_t::image_storage, dt_iop_lensfun_data_t::inverse, dt_iop_lensfun_data_t::lens, dt_iop_lensfun_data_t::modify_flags, darktable_t::plugin_threadsafe, dt_iop_lensfun_data_t::scale, dt_iop_lensfun_data_t::target_geom, and dt_image_t::width.
Referenced by autoscale_pressed(), lens_menu_select(), and reload_defaults().
|
static |
References dt_iop_lensfun_data_t::aperture, dt_iop_lensfun_data_t::crop, dt_iop_lensfun_data_t::custom_tca, dt_iop_lensfun_data_t::distance, dt_iop_lensfun_data_t::focal, dt_iop_lensfun_data_t::inverse, dt_iop_lensfun_data_t::lens, dt_iop_lensfun_data_t::modify_flags, dt_iop_lensfun_data_t::scale, dt_iop_lensfun_data_t::target_geom, and dt_iop_lensfun_data_t::tca_override.
Referenced by distort_backtransform(), distort_mask(), distort_transform(), get_autoscale(), modify_roi_in(), and process().
| void gui_changed | ( | dt_iop_module_t * | self, |
| GtkWidget * | w, | ||
| void * | previous | ||
| ) |
References dt_iop_module_t::dev, dt_image_is_monochrome(), dt_iop_module_t::gui_data, dt_develop_t::image_storage, and dt_iop_module_t::params.
Referenced by gui_update().
| void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
References autoscale_pressed(), darktable_t::bauhaus, camera_autosearch_clicked(), camera_menusearch_clicked(), corrections_done(), CPF_DIRECTION_DOWN, darktable, dt_iop_module_t::dev, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_from_params(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_slider_from_params(), dt_bauhaus_slider_set_digits(), DT_BAUHAUS_SPACE, dt_bauhaus_toggle_from_params(), dt_bauhaus_widget_set_label(), dt_bauhaus_widget_set_quad_paint(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gui_add_class(), DT_GUI_MODULE, dt_iop_button_new(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), DT_SIGNAL_DEVELOP_PREVIEW_PIPE_FINISHED, dt_utf8_strlcpy(), dtgtk_cairo_paint_refresh(), dtgtk_cairo_paint_solid_arrow(), dt_image_t::exif_lens, FALSE, dt_develop_t::image_storage, IOP_GUI_ALLOC, lens_autosearch_clicked(), lens_menusearch_clicked(), lens_set(), LENSFUN_MODFLAG_ALL, LENSFUN_MODFLAG_DIST, LENSFUN_MODFLAG_DIST_TCA, LENSFUN_MODFLAG_DIST_VIGN, LENSFUN_MODFLAG_NONE, LENSFUN_MODFLAG_TCA, LENSFUN_MODFLAG_TCA_VIGN, LENSFUN_MODFLAG_VIGN, model, dt_iop_lensfun_modifier_t::modflag, modflags_changed(), dt_iop_lensfun_modifier_t::name, darktable_t::plugin_threadsafe, dt_iop_lensfun_modifier_t::pos, darktable_t::signals, target_geometry_changed(), TRUE, and dt_iop_module_t::widget.
| void gui_update | ( | struct dt_iop_module_t * | self | ) |
References camera_set(), darktable, dt_iop_lensfun_global_data_t::db, dt_iop_module_t::default_params, dt_bauhaus_combobox_set(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_iop_module_t::global_data, gui_changed(), dt_iop_module_t::gui_data, lens_set(), LENSFUN_MODFLAG_MASK, model, dt_iop_lensfun_modifier_t::modflag, dt_iop_module_t::params, parse_model(), darktable_t::plugin_threadsafe, and dt_iop_lensfun_modifier_t::pos.
| void init_global | ( | dt_iop_module_so_t * | module | ) |
References dt_iop_lensfun_global_data_t::db, dt_loc_get_datadir(), dt_opencl_create_kernel(), dt_iop_lensfun_global_data_t::kernel_lens_distort_bicubic, dt_iop_lensfun_global_data_t::kernel_lens_distort_bilinear, dt_iop_lensfun_global_data_t::kernel_lens_distort_lanczos2, dt_iop_lensfun_global_data_t::kernel_lens_distort_lanczos3, dt_iop_lensfun_global_data_t::kernel_lens_vignette, PATH_MAX, and STR.
| 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 | ||
| ) |
References dt_iop_lensfun_params_t::aperture, dt_iop_lensfun_params_t::camera, dt_iop_lensfun_params_t::crop, dt_iop_module_t::default_params, dt_iop_lensfun_params_t::distance, dt_iop_lensfun_params_t::focal, dt_iop_lensfun_params_t::inverse, dt_iop_lensfun_params_t::lens, dt_iop_lensfun_params_t::modified, dt_iop_lensfun_params_t::modify_flags, dt_iop_lensfun_params_t::scale, dt_iop_lensfun_params_t::target_geom, dt_iop_lensfun_params_t::tca_b, dt_iop_lensfun_params_t::tca_override, and dt_iop_lensfun_params_t::tca_r.
|
static |
References darktable, dt_iop_lensfun_global_data_t::db, dt_iop_module_t::default_params, dt_gui_menu_popup(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_iop_module_t::global_data, dt_iop_module_t::gui_data, lens_menu_fill(), LF_SEARCH_SORT_AND_UNIQUIFY, model, parse_model(), darktable_t::plugin_threadsafe, and void().
Referenced by gui_init().
|
static |
References darktable, darktable_t::develop, dt_bauhaus_combobox_get_text(), dt_dev_add_history_item, dt_iop_module_t::params, TRUE, and void().
Referenced by lens_set().
|
static |
References darktable, darktable_t::develop, dt_bauhaus_combobox_get_text(), dt_dev_add_history_item, dt_iop_module_t::params, TRUE, and void().
Referenced by lens_set().
|
static |
References darktable, darktable_t::develop, dt_bauhaus_combobox_get_text(), dt_dev_add_history_item, dt_iop_module_t::params, TRUE, and void().
Referenced by lens_set().
|
static |
References dt_iop_module_t::gui_data, lens_menu_select(), m, ptr_array_find_sorted(), ptr_array_insert_index(), ptr_array_insert_sorted(), and TRUE.
Referenced by lens_autosearch_clicked(), and lens_menusearch_clicked().
|
static |
References darktable, darktable_t::develop, dt_bauhaus_slider_set(), dt_dev_add_history_item, get_autoscale(), darktable_t::gui, dt_iop_module_t::gui_data, lens_set(), dt_iop_module_t::params, dt_gui_gtk_t::reset, and TRUE.
Referenced by lens_menu_fill().
|
static |
References darktable, dt_iop_lensfun_global_data_t::db, dt_gui_menu_popup(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_iop_module_t::global_data, dt_iop_module_t::gui_data, lens_menu_fill(), LF_SEARCH_SORT_AND_UNIQUIFY, darktable_t::plugin_threadsafe, and void().
Referenced by gui_init().
|
static |
References darktable_t::bauhaus, darktable, delete_children(), dt_bauhaus_combobox_add(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set_editable(), dt_bauhaus_widget_set_label(), DT_GUI_MODULE, FALSE, dt_iop_module_t::gui_data, lens_comboentry_aperture_update(), lens_comboentry_distance_update(), lens_comboentry_focal_update(), maker, model, dt_iop_module_t::params, precision(), and TRUE.
Referenced by gui_init(), gui_update(), and lens_menu_select().
|
static |
| void modify_roi_in | ( | struct dt_iop_module_t * | self, |
| struct dt_dev_pixelpipe_iop_t * | piece, | ||
| const dt_iop_roi_t *const | roi_out, | ||
| dt_iop_roi_t * | roi_in | ||
| ) |
References dt_dev_pixelpipe_iop_t::buf_in, dt_iop_lensfun_data_t::crop, dt_dev_pixelpipe_iop_t::data, dt_alloc_align, dt_free_align, dt_interpolation_new(), DT_INTERPOLATION_USERPREF_WARP, FALSE, get_modifier(), height, dt_iop_roi_t::height, dt_iop_lensfun_data_t::lens, MAX, MIN, dt_iop_roi_t::scale, width, dt_interpolation::width, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
| void modify_roi_out | ( | struct dt_iop_module_t * | self, |
| struct dt_dev_pixelpipe_iop_t * | piece, | ||
| dt_iop_roi_t * | roi_out, | ||
| const dt_iop_roi_t * | roi_in | ||
| ) |
| const char * name | ( | ) |
| int operation_tags | ( | ) |
References IOP_TAG_DISTORT.
|
static |
References model.
Referenced by camera_autosearch_clicked(), gui_update(), and lens_autosearch_clicked().
gui stuff: inspired by ufraws lensfun tab:
Referenced by _update_slider(), dt_bauhaus_slider_set_normalized(), gui_post_expose(), and lens_set().
| void process | ( | 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 BLUE, dt_dev_pixelpipe_iop_t::buf_in, dt_dev_pixelpipe_iop_t::colors, dt_iop_lensfun_data_t::crop, darktable, dt_dev_pixelpipe_iop_t::data, dt_iop_module_t::dev, dt_iop_lensfun_data_t::do_nan_checks, dt_alloc_align, dt_alloc_perthread_float(), DT_DEV_PIXELPIPE_DISPLAY_MASK, DT_DEV_PIXELPIPE_PREVIEW, dt_free_align, dt_get_perthread, dt_image_is_monochrome(), dt_interpolation_compute_sample(), dt_interpolation_new(), DT_INTERPOLATION_USERPREF_WARP, dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_iop_image_copy_by_size(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, get_modifier(), GREEN, dt_develop_t::gui_attached, dt_iop_module_t::gui_data, dt_iop_roi_t::height, dt_develop_t::image_storage, dt_iop_lensfun_data_t::inverse, dt_iop_lensfun_data_t::lens, LENSFUN_MODFLAG_MASK, dt_dev_pixelpipe_iop_t::pipe, darktable_t::plugin_threadsafe, RED, dt_iop_roi_t::scale, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
|
static |
References m.
Referenced by camera_menu_fill(), and lens_menu_fill().
Referenced by camera_menu_fill(), and lens_menu_fill().
|
static |
References m.
Referenced by camera_menu_fill(), and lens_menu_fill().
| void reload_defaults | ( | dt_iop_module_t * | module | ) |
References _lens_sanitize(), dt_iop_lensfun_params_t::aperture, dt_iop_lensfun_params_t::camera, dt_iop_lensfun_params_t::crop, darktable, dt_iop_lensfun_global_data_t::db, dt_iop_module_t::default_params, dt_iop_lensfun_params_t::distance, dt_image_is_monochrome(), dt_iop_gui_enter_critical_section(), dt_iop_gui_leave_critical_section(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_image_t::exif_aperture, dt_image_t::exif_crop, dt_image_t::exif_focal_length, dt_image_t::exif_focus_distance, dt_image_t::exif_lens, dt_image_t::exif_maker, dt_image_t::exif_model, dt_iop_lensfun_params_t::focal, get_autoscale(), dt_iop_module_t::global_data, dt_iop_module_t::gui_data, dt_iop_lensfun_params_t::lens, model, dt_iop_lensfun_params_t::modify_flags, darktable_t::plugin_threadsafe, dt_iop_lensfun_params_t::scale, and dt_iop_lensfun_params_t::target_geom.
|
static |
References darktable, darktable_t::develop, dt_bauhaus_combobox_get(), dt_dev_add_history_item, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
| void tiling_callback | ( | struct dt_iop_module_t * | self, |
| struct dt_dev_pixelpipe_iop_t * | piece, | ||
| const dt_iop_roi_t * | roi_in, | ||
| const dt_iop_roi_t * | roi_out, | ||
| struct dt_develop_tiling_t * | tiling | ||
| ) |