Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
relight.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "bauhaus/bauhaus.h"
#include "common/debug.h"
#include "common/math.h"
#include "common/opencl.h"
#include "control/control.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_gui.h"
#include "dtgtk/gradientslider.h"
#include "dtgtk/togglebutton.h"
#include "gui/color_picker_proxy.h"
#include "gui/gtk.h"
#include "gui/presets.h"
#include "iop/iop_api.h"
+ Include dependency graph for relight.c:

Data Structures

struct  dt_iop_relight_params_t
 
struct  dt_iop_relight_gui_data_t
 
struct  dt_iop_relight_data_t
 
struct  dt_iop_relight_global_data_t
 

Macros

#define GAUSS(a, b, c, x)   (a * powf(2.718281828f, (-powf((x - b), 2) / (powf(c, 2)))))
 
#define NEUTRAL_GRAY   0.5
 

Typedefs

typedef struct dt_iop_relight_params_t dt_iop_relight_params_t
 
typedef struct dt_iop_relight_gui_data_t dt_iop_relight_gui_data_t
 
typedef struct dt_iop_relight_data_t dt_iop_relight_data_t
 
typedef struct dt_iop_relight_global_data_t dt_iop_relight_global_data_t
 

Functions

void init_presets (dt_iop_module_so_t *self)
 
const char * name ()
 
int flags ()
 
const char * deprecated_msg ()
 
int default_group ()
 
int default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out)
 
void init_global (dt_iop_module_so_t *module)
 
void cleanup_global (dt_iop_module_so_t *module)
 
static void center_callback (GtkDarktableGradientSlider *slider, gpointer user_data)
 
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_update (struct dt_iop_module_t *self)
 
void color_picker_apply (dt_iop_module_t *self, GtkWidget *picker, dt_dev_pixelpipe_iop_t *piece)
 
void gui_init (struct dt_iop_module_t *self)
 

Macro Definition Documentation

◆ GAUSS

#define GAUSS (   a,
  b,
  c,
 
)    (a * powf(2.718281828f, (-powf((x - b), 2) / (powf(c, 2)))))

◆ NEUTRAL_GRAY

#define NEUTRAL_GRAY   0.5

Typedef Documentation

◆ dt_iop_relight_data_t

◆ dt_iop_relight_global_data_t

◆ dt_iop_relight_gui_data_t

◆ dt_iop_relight_params_t

Function Documentation

◆ center_callback()

◆ cleanup_global()

◆ cleanup_pipe()

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

◆ color_picker_apply()

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

◆ default_group()

int default_group ( )

References IOP_GROUP_EFFECTS.

◆ deprecated_msg()

const char * deprecated_msg ( )

◆ flags()

◆ gui_init()

◆ gui_update()

◆ init_global()

◆ init_pipe()

◆ init_presets()

◆ name()

const char * name ( )

◆ process()