Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
defringe.c File Reference
#include "bauhaus/bauhaus.h"
#include "common/darktable.h"
#include "common/gaussian.h"
#include "common/imagebuf.h"
#include "common/math.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_math.h"
#include "develop/imageop_gui.h"
#include "gui/gtk.h"
#include "iop/iop_api.h"
#include <gtk/gtk.h>
#include <stdlib.h>
+ Include dependency graph for defringe.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_defringe_params_t
 
struct  dt_iop_defringe_gui_data_t
 

Macros

#define MAGIC_THRESHOLD_COEFF   33.0
 

Typedefs

typedef enum dt_iop_defringe_mode_t dt_iop_defringe_mode_t
 
typedef struct dt_iop_defringe_params_t dt_iop_defringe_params_t
 
typedef dt_iop_defringe_params_t dt_iop_defringe_data_t
 
typedef struct dt_iop_defringe_gui_data_t dt_iop_defringe_gui_data_t
 

Enumerations

enum  dt_iop_defringe_mode_t {
  MODE_GLOBAL_AVERAGE = 0 ,
  MODE_LOCAL_AVERAGE = 1 ,
  MODE_STATIC = 2
}
 

Functions

const char * name ()
 
const char * aliases ()
 
const char ** description (struct dt_iop_module_t *self)
 
int default_group ()
 
int flags ()
 
const char * deprecated_msg ()
 
int default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece)
 
static void fib_latt (int *const x, int *const y, float radius, int step, int idx)
 
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)
 
__DT_CLONE_TARGETS__ int process (struct dt_iop_module_t *module, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, const void *const i, void *const o)
 
void gui_init (dt_iop_module_t *self)
 
void gui_update (dt_iop_module_t *module)
 

Variables

static const float fib [] = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 }
 

Macro Definition Documentation

◆ MAGIC_THRESHOLD_COEFF

#define MAGIC_THRESHOLD_COEFF   33.0

Definition at line 176 of file defringe.c.

Typedef Documentation

◆ dt_iop_defringe_data_t

Definition at line 73 of file defringe.c.

◆ dt_iop_defringe_gui_data_t

◆ dt_iop_defringe_mode_t

◆ dt_iop_defringe_params_t

Enumeration Type Documentation

◆ dt_iop_defringe_mode_t

Enumerator
MODE_GLOBAL_AVERAGE 
MODE_LOCAL_AVERAGE 
MODE_STATIC 

Definition at line 59 of file defringe.c.

Function Documentation

◆ aliases()

const char * aliases ( )

Definition at line 95 of file defringe.c.

◆ cleanup_pipe()

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

Definition at line 197 of file defringe.c.

References dt_dev_pixelpipe_iop_t::data, and dt_free_align.

◆ default_colorspace()

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

Definition at line 125 of file defringe.c.

References IOP_CS_LAB.

◆ default_group()

int default_group ( )

Definition at line 109 of file defringe.c.

References IOP_GROUP_REPAIR.

◆ deprecated_msg()

const char * deprecated_msg ( )

Definition at line 120 of file defringe.c.

◆ description()

const char ** description ( struct dt_iop_module_t self)

Definition at line 100 of file defringe.c.

References dt_iop_set_description().

◆ fib_latt()

static void fib_latt ( int *const  x,
int *const  y,
float  radius,
int  step,
int  idx 
)
inlinestatic

Definition at line 159 of file defringe.c.

References fib, and x.

Referenced by process().

◆ flags()

int flags ( )

Definition at line 114 of file defringe.c.

References IOP_FLAGS_DEPRECATED, and IOP_FLAGS_SUPPORTS_BLENDING.

◆ gui_init()

void gui_init ( dt_iop_module_t self)

◆ gui_update()

void gui_update ( dt_iop_module_t module)
Todo:
check why needed
Todo:
by hand

Definition at line 459 of file defringe.c.

References dt_bauhaus_combobox_set(), dt_bauhaus_slider_set(), g, dt_iop_module_t::gui_data, p, and dt_iop_module_t::params.

◆ init_pipe()

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

◆ name()

const char * name ( )

Definition at line 90 of file defringe.c.

◆ process()

Variable Documentation

◆ fib

const float fib[] = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 }
static

Definition at line 156 of file defringe.c.

Referenced by fib_latt(), and process().