Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
soften.c File Reference
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "bauhaus/bauhaus.h"
#include "common/box_filters.h"
#include "common/colorspaces.h"
#include "common/imagebuf.h"
#include "common/opencl.h"
#include "control/control.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_gui.h"
#include "develop/tiling.h"
#include "dtgtk/resetlabel.h"
#include "gui/gtk.h"
#include "iop/iop_api.h"
#include <gtk/gtk.h>
#include <inttypes.h>
+ Include dependency graph for soften.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_soften_params_t
 
struct  dt_iop_soften_gui_data_t
 
struct  dt_iop_soften_data_t
 

Macros

#define MAX_RADIUS   32
 

Typedefs

typedef struct dt_iop_soften_params_t dt_iop_soften_params_t
 
typedef struct dt_iop_soften_gui_data_t dt_iop_soften_gui_data_t
 
typedef struct dt_iop_soften_data_t dt_iop_soften_data_t
 

Functions

const char * name ()
 
int flags ()
 
int default_group ()
 
int default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece)
 
const char ** description (struct dt_iop_module_t *self)
 
__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 ivoid, void *const ovoid)
 
void tiling_callback (struct dt_iop_module_t *self, const struct dt_dev_pixelpipe_t *pipe, const struct dt_dev_pixelpipe_iop_t *piece, struct dt_develop_tiling_t *tiling)
 
void commit_params (struct dt_iop_module_t *self, dt_iop_params_t *p1, 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_init (struct dt_iop_module_t *self)
 

Macro Definition Documentation

◆ MAX_RADIUS

#define MAX_RADIUS   32

Definition at line 71 of file soften.c.

Typedef Documentation

◆ dt_iop_soften_data_t

◆ dt_iop_soften_gui_data_t

◆ dt_iop_soften_params_t

Function Documentation

◆ 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 217 of file soften.c.

References dt_dev_pixelpipe_iop_t::data, and dt_free_align.

◆ commit_params()

void commit_params ( struct dt_iop_module_t self,
dt_iop_params_t p1,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

Definition at line 199 of file soften.c.

References d, dt_dev_pixelpipe_iop_t::data, and p.

◆ 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 111 of file soften.c.

References IOP_CS_RGB.

◆ default_group()

int default_group ( )

Definition at line 106 of file soften.c.

References IOP_GROUP_EFFECTS.

◆ description()

const char ** description ( struct dt_iop_module_t self)

Definition at line 116 of file soften.c.

References dt_iop_set_description().

◆ flags()

◆ gui_init()

void gui_init ( struct dt_iop_module_t self)

◆ 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 96 of file soften.c.

◆ process()

◆ tiling_callback()

void tiling_callback ( struct dt_iop_module_t self,
const struct dt_dev_pixelpipe_t pipe,
const struct dt_dev_pixelpipe_iop_t piece,
struct dt_develop_tiling_t tiling 
)
Todo:
: check if that's sufficiently large
Todo:
the above are worst case values, we might iterate through the dt_iop_retouch_form_data_t to get

Definition at line 170 of file soften.c.

References BOX_ITERATIONS, d, dt_dev_pixelpipe_iop_t::data, get_scales(), dt_dev_pixelpipe_iop_t::iheight, dt_dev_pixelpipe_iop_t::iwidth, MAX_NUM_SCALES, MIN, dt_dev_pixelpipe_iop_t::roi_in, dt_iop_roi_t::scale, sigma, thrs, and void().