![]() |
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 "gui/gtk.h"
#include "iop/iop_api.h"
#include <gtk/gtk.h>
#include <stdlib.h>
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... | |
Functions | |
const char * | name () |
const char ** | description (struct dt_iop_module_t *self) |
int | default_group () |
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 float | SQR (float x) |
static float | LIM (const float a, const float b, const float c) |
static float | intp (const float a, const float b, const float c) |
static gboolean | LinEqSolve (int nDim, double *pfMatr, double *pfVect, double *pfSolution) |
static void | pixSort (float *a, float *b) |
void | process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const i, void *const o, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
void | reload_defaults (dt_iop_module_t *module) |
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) |
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 (dt_iop_module_t *self) |
void | gui_changed (dt_iop_module_t *self, GtkWidget *w, void *previous) |
void | gui_cleanup (dt_iop_module_t *self) |
void | gui_init (dt_iop_module_t *self) |
#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.
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 dt_iop_cacorrect_data_t::avoidshift, dt_image_t::buf_dsc, dt_dev_pixelpipe_iop_t::data, 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 dt_iop_cacorrect_data_t::iterations.
int default_colorspace | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
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_image_t::buf_dsc, dt_iop_module_t::dev, dt_bauhaus_combobox_set_from_value(), dt_image_is_monochrome(), dt_image_is_raw(), dt_iop_buffer_dsc_t::filters, dt_iop_module_t::gui_data, dt_iop_module_t::hide_enable_button, dt_develop_t::image_storage, 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, and dt_dev_pixelpipe_iop_t::data_size.
|
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 dt_iop_cacorrect_params_t::iterations.
|
inlinestatic |
const char * name | ( | ) |
void process | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const void *const | i, | ||
void *const | o, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
References dt_iop_cacorrect_data_t::avoidshift, CA_SIZE_MINIMUM, dt_dev_pixelpipe_iop_t::data, dt_alloc_align_float(), dt_free_align, dt_gaussian_blur(), dt_gaussian_free(), dt_gaussian_init(), dt_iop_image_copy_by_size(), eps, FALSE, FC(), height, dt_iop_roi_t::height, intp(), dt_iop_cacorrect_data_t::iterations, LIM(), LinEqSolve(), m, MAX, memset_zero(), MIN, dt_dev_pixelpipe_iop_t::pipe, pixSort(), SQR, TRUE, width, and dt_iop_roi_t::width.
void reload_defaults | ( | dt_iop_module_t * | module | ) |
References dt_image_t::buf_dsc, dt_image_is_monochrome(), dt_image_is_raw(), and dt_iop_buffer_dsc_t::filters.
|
inlinestatic |