![]() |
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: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) |
| #define INLINE inline |
| 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 | |
| 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 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 d, dt_dev_pixelpipe_iop_t::data, dt_image_t::dsc, dt_image_is_monochrome(), dt_image_is_raw(), dt_dev_pixelpipe_iop_t::enabled, dt_iop_buffer_dsc_t::filters, dt_dev_pixelpipe_t::image, 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_RAW.
| int default_group | ( | ) |
References IOP_GROUP_REPAIR.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
| int flags | ( | ) |
References IOP_FLAGS_DEPRECATED, and IOP_FLAGS_ONE_INSTANCE.
| void gui_changed | ( | dt_iop_module_t * | self, |
| GtkWidget * | w, | ||
| void * | previous | ||
| ) |
| void gui_cleanup | ( | dt_iop_module_t * | self | ) |
References IOP_GUI_FREE.
| void gui_init | ( | dt_iop_module_t * | self | ) |
| void gui_update | ( | dt_iop_module_t * | self | ) |
References dt_iop_module_t::dev, dt_image_t::dsc, dt_bauhaus_combobox_set_from_value(), dt_image_is_monochrome(), dt_image_is_raw(), dt_iop_buffer_dsc_t::filters, 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 | ||
| ) |
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 | ||
| ) |
References dt_iop_buffer_dsc_t::channels, default_input_format(), and dt_iop_buffer_dsc_update_bpp().
Referenced by _transform_from_to_rgb_lab_lcms2(), and _transform_rgb_to_rgb_lcms2().
|
inlinestatic |
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 | ||
| ) |
References dt_iop_cacorrect_params_t::avoidshift, FALSE, and n.
|
inlinestatic |
| const char * name | ( | ) |
|
inlinestatic |
| 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 | ||
| ) |
References c, 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(), 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 | ) |
References dt_image_t::dsc, dt_image_is_monochrome(), dt_image_is_raw(), and dt_iop_buffer_dsc_t::filters.
|
inlinestatic |
References x.