Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
invert.c File Reference
#include <gtk/gtk.h>
#include <stdlib.h>
#include "colorprofiles/colorspaces.h"
#include "system/openmp.h"
#include "system/target_clones.h"
#include "system/mem_alloc.h"
#include "system/simd.h"
#include "common/module_versioning.h"
#include "control/control.h"
#include "develop/imageop.h"
#include "develop/imageop_math.h"
#include "develop/imageop_gui.h"
#include "widgets/resetlabel.h"
#include "gui/color_picker_proxy.h"
#include "iop/iop_api.h"
#include "widgets/widget_settings.h"
+ Include dependency graph for invert.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_invert_params_t
 
struct  dt_iop_invert_gui_data_t
 
struct  dt_iop_invert_data_t
 

Typedefs

typedef struct dt_iop_invert_params_t dt_iop_invert_params_t
 
typedef struct dt_iop_invert_gui_data_t dt_iop_invert_gui_data_t
 
typedef struct dt_iop_invert_data_t dt_iop_invert_data_t
 

Functions

int legacy_params (dt_iop_module_t *self, const void *const old_params, const int old_version, void *new_params, const int new_version)
 
const char * name ()
 
const char * deprecated_msg ()
 
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, const dt_dev_pixelpipe_iop_t *piece)
 
void output_format (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
 
static void gui_update_from_coeffs (dt_iop_module_t *self)
 
void color_picker_apply (dt_iop_module_t *self, GtkWidget *picker, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
static void colorpicker_callback (GtkColorButton *widget, 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 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)
 Refresh GUI controls from current params and configuration.
 
void gui_init (dt_iop_module_t *self)
 

Typedef Documentation

◆ dt_iop_invert_data_t

◆ dt_iop_invert_gui_data_t

◆ dt_iop_invert_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 339 of file invert.c.

References dt_free_align, and piece.

◆ color_picker_apply()

◆ colorpicker_callback()

◆ commit_params()

◆ 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 163 of file invert.c.

References IOP_CS_RAW.

◆ default_group()

int default_group ( )

Definition at line 153 of file invert.c.

References IOP_GROUP_FILM.

◆ deprecated_msg()

const char * deprecated_msg ( )

Definition at line 138 of file invert.c.

◆ description()

const char ** description ( struct dt_iop_module_t *  self)

Definition at line 143 of file invert.c.

References dt_iop_set_description().

◆ flags()

int flags ( )

Definition at line 158 of file invert.c.

References IOP_FLAGS_DEPRECATED, and IOP_FLAGS_ONE_INSTANCE.

◆ gui_init()

◆ gui_update()

◆ gui_update_from_coeffs()

◆ init_pipe()

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

Definition at line 333 of file invert.c.

References dt_calloc_align(), and piece.

◆ legacy_params()

◆ name()

const char * name ( )

Definition at line 133 of file invert.c.

◆ output_format()

void output_format ( dt_iop_module_t *  self,
dt_dev_pixelpipe_t *  pipe,
dt_dev_pixelpipe_iop_t *  piece,
dt_iop_buffer_dsc_t *  dsc 
)

Definition at line 168 of file invert.c.

References default_output_format(), piece, and pipe.

◆ process()

__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 
)
Todo:
: it could be wise to make this a NOP when picking colors. not sure about that though.

Definition at line 245 of file invert.c.

References __OMP_PARALLEL_FOR_SIMD__, ch, d, DT_DEV_PIXELPIPE_DISPLAY_MASK, FC(), FCxtrans(), dt_iop_roi_t::height, i, k, m, dt_dev_pixelpipe_t::mask_display, out, ovoid, p, piece, pipe, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.