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

Data Structures

struct  dt_iop_dvector_2d_t
 
struct  dt_iop_fvector_2d_t
 
struct  dt_iop_vignette_params1_t
 
struct  dt_iop_vignette_params2_t
 
struct  dt_iop_vignette_params3_t
 
struct  dt_iop_vignette_params_t
 
struct  dt_iop_vignette_gui_data_t
 
struct  dt_iop_vignette_data_t
 
struct  dt_iop_vignette_global_data_t
 

Typedefs

typedef enum dt_iop_dither_t dt_iop_dither_t
 
typedef struct dt_iop_dvector_2d_t dt_iop_dvector_2d_t
 
typedef struct dt_iop_fvector_2d_t dt_iop_vector_2d_t
 
typedef struct dt_iop_vignette_params1_t dt_iop_vignette_params1_t
 
typedef struct dt_iop_vignette_params2_t dt_iop_vignette_params2_t
 
typedef struct dt_iop_vignette_params3_t dt_iop_vignette_params3_t
 
typedef struct dt_iop_vignette_params_t dt_iop_vignette_params_t
 
typedef struct dt_iop_vignette_gui_data_t dt_iop_vignette_gui_data_t
 
typedef struct dt_iop_vignette_data_t dt_iop_vignette_data_t
 
typedef struct dt_iop_vignette_global_data_t dt_iop_vignette_global_data_t
 

Enumerations

enum  dt_iop_dither_t {
  DITHER_OFF = 0 ,
  DITHER_8BIT = 1 ,
  DITHER_16BIT = 2
}
 

Functions

const char * name ()
 
const char ** description (struct dt_iop_module_t *self)
 
int flags ()
 
int default_group ()
 
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 int get_grab (float pointerx, float pointery, float startx, float starty, float endx, float endy, float zoom_scale)
 
static void draw_overlay (cairo_t *cr, float x, float y, float fx, float fy, int grab, float zoom_scale)
 
void gui_post_expose (struct dt_iop_module_t *self, cairo_t *cr, int32_t width, int32_t height, int32_t pointerx, int32_t pointery)
 
int mouse_moved (struct dt_iop_module_t *self, double x, double y, double pressure, int which)
 
int button_pressed (struct dt_iop_module_t *self, double x, double y, double pressure, int which, int type, uint32_t state)
 
int button_released (struct dt_iop_module_t *self, double x, double y, int which, uint32_t state)
 
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)
 
void gui_changed (dt_iop_module_t *self, GtkWidget *w, void *previous)
 
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_presets (dt_iop_module_so_t *self)
 
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 gui_init (struct dt_iop_module_t *self)
 

Typedef Documentation

◆ dt_iop_dither_t

◆ dt_iop_dvector_2d_t

◆ dt_iop_vector_2d_t

◆ dt_iop_vignette_data_t

◆ dt_iop_vignette_global_data_t

◆ dt_iop_vignette_gui_data_t

◆ dt_iop_vignette_params1_t

◆ dt_iop_vignette_params2_t

◆ dt_iop_vignette_params3_t

◆ dt_iop_vignette_params_t

Enumeration Type Documentation

◆ dt_iop_dither_t

Enumerator
DITHER_OFF 
DITHER_8BIT 
DITHER_16BIT 

Function Documentation

◆ button_pressed()

int button_pressed ( struct dt_iop_module_t self,
double  x,
double  y,
double  pressure,
int  which,
int  type,
uint32_t  state 
)

◆ button_released()

int button_released ( struct dt_iop_module_t self,
double  x,
double  y,
int  which,
uint32_t  state 
)

◆ cleanup_global()

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

◆ default_group()

int default_group ( )

References IOP_GROUP_EFFECTS.

◆ description()

const char ** description ( struct dt_iop_module_t self)

◆ draw_overlay()

static void draw_overlay ( cairo_t *  cr,
float  x,
float  y,
float  fx,
float  fy,
int  grab,
float  zoom_scale 
)
static

References DT_PIXEL_APPLY_DPI, and M_PI.

Referenced by gui_post_expose().

◆ flags()

◆ get_grab()

static int get_grab ( float  pointerx,
float  pointery,
float  startx,
float  starty,
float  endx,
float  endy,
float  zoom_scale 
)
static

Referenced by gui_post_expose(), and mouse_moved().

◆ gui_changed()

void gui_changed ( dt_iop_module_t self,
GtkWidget *  w,
void previous 
)

◆ gui_init()

◆ gui_post_expose()

void gui_post_expose ( struct dt_iop_module_t self,
cairo_t *  cr,
int32_t  width,
int32_t  height,
int32_t  pointerx,
int32_t  pointery 
)

◆ gui_update()

void gui_update ( struct dt_iop_module_t self)

◆ init_global()

◆ init_pipe()

◆ init_presets()

◆ legacy_params()

◆ mouse_moved()

◆ name()

const char * name ( )

◆ process()