![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/darktable.h"#include "common/imagebuf.h"#include "common/gaussian.h"#include "develop/imageop.h"#include "develop/imageop_gui.h"#include "develop/imageop_math.h"#include "develop/develop.h"#include "gui/gtk.h"#include "iop/iop_api.h"#include <gtk/gtk.h>#include <stdlib.h>
Include dependency graph for cacorrect.c:Go to the source code of this file.
Data Structures | |
| struct | dt_iop_cacorrect_params_t |
| struct | dt_iop_cacorrect_gui_data_t |
| struct | dt_iop_cacorrect_data_t |
Macros | |
| #define | INLINE inline |
| #define | CA_SIZE_MINIMUM (1600) |
Typedefs | |
| typedef enum dt_iop_cacorrect_multi_t | dt_iop_cacorrect_multi_t |
| WARNING: mem allocs are not protected against out-of-memory (NULL buffers) because the code is a mess, this module is deprecated and fuck life. If your system runs out of memory, this module will crash. Your eyes are made for crying, use them. With love, Aurélien, 2025. | |
| typedef struct dt_iop_cacorrect_params_t | dt_iop_cacorrect_params_t |
| typedef struct dt_iop_cacorrect_gui_data_t | dt_iop_cacorrect_gui_data_t |
| typedef struct dt_iop_cacorrect_data_t | dt_iop_cacorrect_data_t |
Enumerations | |
| enum | dt_iop_cacorrect_multi_t { CACORRETC_MULTI_1 = 1 , CACORRETC_MULTI_2 = 2 , CACORRETC_MULTI_3 = 3 , CACORRETC_MULTI_4 = 4 , CACORRETC_MULTI_5 = 5 } |
| WARNING: mem allocs are not protected against out-of-memory (NULL buffers) because the code is a mess, this module is deprecated and fuck life. If your system runs out of memory, this module will crash. Your eyes are made for crying, use them. With love, Aurélien, 2025. More... | |
| #define CA_SIZE_MINIMUM (1600) |
Definition at line 316 of file cacorrect.c.
| #define INLINE inline |
Definition at line 167 of file cacorrect.c.
| typedef struct dt_iop_cacorrect_data_t dt_iop_cacorrect_data_t |
| typedef struct dt_iop_cacorrect_gui_data_t dt_iop_cacorrect_gui_data_t |
| typedef enum dt_iop_cacorrect_multi_t dt_iop_cacorrect_multi_t |
WARNING: mem allocs are not protected against out-of-memory (NULL buffers) because the code is a mess, this module is deprecated and fuck life. If your system runs out of memory, this module will crash. Your eyes are made for crying, use them. With love, Aurélien, 2025.
| typedef struct dt_iop_cacorrect_params_t dt_iop_cacorrect_params_t |
WARNING: mem allocs are not protected against out-of-memory (NULL buffers) because the code is a mess, this module is deprecated and fuck life. If your system runs out of memory, this module will crash. Your eyes are made for crying, use them. With love, Aurélien, 2025.
| Enumerator | |
|---|---|
| CACORRETC_MULTI_1 | |
| CACORRETC_MULTI_2 | |
| CACORRETC_MULTI_3 | |
| CACORRETC_MULTI_4 | |
| CACORRETC_MULTI_5 | |
Definition at line 80 of file cacorrect.c.
|
static |
Definition at line 1401 of file cacorrect.c.
References dt_image_t::dsc, dt_image_is_monochrome(), dt_image_needs_demosaic(), and dt_iop_buffer_dsc_t::filters.
Referenced by force_enable(), gui_changed(), gui_update(), and reload_defaults().
| void cleanup_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 1451 of file cacorrect.c.
References dt_dev_pixelpipe_iop_t::data, and dt_free_align.
| 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.
Definition at line 1431 of file cacorrect.c.
References d, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_t::dev, dt_image_pipe_class(), dt_image_pipe_class_name(), dt_iop_fmt_log, dt_dev_pixelpipe_iop_t::enabled, dt_develop_t::image_storage, and p.
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 134 of file cacorrect.c.
References IOP_CS_RAW.
| int default_group | ( | ) |
Definition at line 124 of file cacorrect.c.
References IOP_GROUP_REPAIR.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
Definition at line 114 of file cacorrect.c.
References dt_iop_set_description().
| int flags | ( | ) |
Definition at line 129 of file cacorrect.c.
References IOP_FLAGS_DEPRECATED, and IOP_FLAGS_ONE_INSTANCE.
| gboolean force_enable | ( | struct dt_iop_module_t * | self, |
| const gboolean | current_state | ||
| ) |
Definition at line 1417 of file cacorrect.c.
References _cacorrect_supported(), dt_iop_module_t::dev, dt_image_pipe_class(), dt_image_pipe_class_name(), dt_iop_fmt_log, dt_develop_t::image_storage, and state.
| void gui_changed | ( | dt_iop_module_t * | self, |
| GtkWidget * | w, | ||
| void * | previous | ||
| ) |
Definition at line 1475 of file cacorrect.c.
References _cacorrect_supported(), dt_iop_module_t::dev, dt_bauhaus_combobox_set_from_value(), g, dt_iop_module_t::gui_data, dt_develop_t::image_storage, p, dt_iop_module_t::params, and dt_iop_module_t::widget.
| void gui_cleanup | ( | dt_iop_module_t * | self | ) |
Definition at line 1491 of file cacorrect.c.
References IOP_GUI_FREE.
| void gui_init | ( | dt_iop_module_t * | self | ) |
Definition at line 1496 of file cacorrect.c.
References dt_bauhaus_combobox_from_params(), dt_bauhaus_toggle_from_params(), DT_GUI_BOX_SPACING, dt_ui_label_new(), FALSE, g, IOP_GUI_ALLOC, and dt_iop_module_t::widget.
| void gui_update | ( | dt_iop_module_t * | self | ) |
Definition at line 1457 of file cacorrect.c.
References _cacorrect_supported(), dt_iop_module_t::dev, dt_bauhaus_combobox_set_from_value(), g, dt_iop_module_t::gui_data, dt_iop_module_t::hide_enable_button, dt_develop_t::image_storage, p, dt_iop_module_t::params, and dt_iop_module_t::widget.
| void init_pipe | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 1445 of file cacorrect.c.
References dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| 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 | ||
| ) |
Definition at line 139 of file cacorrect.c.
References dt_iop_buffer_dsc_t::channels, default_input_format(), and dt_iop_buffer_dsc_update_bpp().
|
inlinestatic |
Definition at line 180 of file cacorrect.c.
Referenced by dual_demosaic(), process(), and rcd_demosaic().
| int legacy_params | ( | dt_iop_module_t * | self, |
| const void *const | old_params, | ||
| const int | old_version, | ||
| void * | new_params, | ||
| const int | new_version | ||
| ) |
Definition at line 147 of file cacorrect.c.
References dt_iop_cacorrect_params_t::avoidshift, FALSE, and n.
|
inlinestatic |
|
static |
| const char * name | ( | ) |
Definition at line 108 of file cacorrect.c.
|
inlinestatic |
Definition at line 301 of file cacorrect.c.
Referenced by process().
| __DT_CLONE_TARGETS__ int process | ( | struct dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | i, | ||
| void *const | o | ||
| ) |
Definition at line 318 of file cacorrect.c.
References __OMP_FOR__, __OMP_PARALLEL_FOR__, CA_SIZE_MINIMUM, cleanup(), coeff, d, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::dsc_in, dt_free, dt_gaussian_blur(), dt_gaussian_free(), dt_gaussian_init(), dt_get_perthread, dt_iop_image_copy_by_size(), dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_alloc_perthread, dt_pixelpipe_cache_free_align, eps, FALSE, FC(), dt_iop_buffer_dsc_t::filters, height, dt_iop_roi_t::height, i, intp(), IS_NULL_PTR, k, LIM(), LinEqSolve(), m, MAX, memset_zero(), MIN, n, out, p, pixSort(), rgb, dt_dev_pixelpipe_iop_t::roi_in, row, SQR, top, TRUE, width, and dt_iop_roi_t::width.
| void reload_defaults | ( | dt_iop_module_t * | module | ) |
Definition at line 1406 of file cacorrect.c.
References _cacorrect_supported(), dt_image_t::dsc, dt_image_is_monochrome(), dt_image_needs_demosaic(), dt_image_pipe_class(), dt_image_pipe_class_name(), dt_iop_fmt_log, dt_iop_buffer_dsc_t::filters, and dt_iop_module_t::hide_enable_button.
|
inlinestatic |
Definition at line 171 of file cacorrect.c.
References x.