Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
cacorrect.c File Reference
#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>
+ 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...
 

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)
 

Macro Definition Documentation

◆ CA_SIZE_MINIMUM

#define CA_SIZE_MINIMUM   (1600)

◆ INLINE

#define INLINE   inline

Typedef Documentation

◆ dt_iop_cacorrect_data_t

◆ dt_iop_cacorrect_gui_data_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.

◆ dt_iop_cacorrect_params_t

Enumeration Type Documentation

◆ 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.

Enumerator
CACORRETC_MULTI_1 
CACORRETC_MULTI_2 
CACORRETC_MULTI_3 
CACORRETC_MULTI_4 
CACORRETC_MULTI_5 

Function Documentation

◆ cleanup_pipe()

void cleanup_pipe ( struct dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

◆ commit_params()

◆ default_colorspace()

int default_colorspace ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

References IOP_CS_RAW.

◆ default_group()

int default_group ( )

References IOP_GROUP_REPAIR.

◆ description()

const char ** description ( struct dt_iop_module_t self)

◆ flags()

int flags ( )

◆ gui_changed()

◆ gui_cleanup()

void gui_cleanup ( dt_iop_module_t self)

References IOP_GUI_FREE.

◆ gui_init()

◆ gui_update()

◆ init_pipe()

◆ intp()

static float intp ( const float  a,
const float  b,
const float  c 
)
inlinestatic

◆ legacy_params()

int legacy_params ( dt_iop_module_t self,
const void *const  old_params,
const int  old_version,
void new_params,
const int  new_version 
)

◆ LIM()

static float LIM ( const float  a,
const float  b,
const float  c 
)
inlinestatic

References MAX, and MIN.

Referenced by process().

◆ LinEqSolve()

static gboolean LinEqSolve ( int  nDim,
double pfMatr,
double pfVect,
double pfSolution 
)
static

References FALSE, m, and TRUE.

Referenced by process().

◆ name()

const char * name ( )

◆ pixSort()

static void pixSort ( float *  a,
float *  b 
)
inlinestatic

Referenced by process().

◆ process()

◆ reload_defaults()

◆ SQR()

static float SQR ( float  x)
inlinestatic