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

Go to the source code of this file.

Data Structures

struct  dt_iop_hotpixels_params_t
 
struct  dt_iop_hotpixels_gui_data_t
 
struct  dt_iop_hotpixels_data_t
 
struct  dt_iop_hotpixels_global_data_t
 

Typedefs

typedef struct dt_iop_hotpixels_params_t dt_iop_hotpixels_params_t
 
typedef struct dt_iop_hotpixels_gui_data_t dt_iop_hotpixels_gui_data_t
 
typedef struct dt_iop_hotpixels_data_t dt_iop_hotpixels_data_t
 
typedef struct dt_iop_hotpixels_global_data_t dt_iop_hotpixels_global_data_t
 

Functions

const char * name ()
 
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 input_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 hotpixels_testone (const float *const in, const float mid, const int offset, int *const count, float *const maxin)
 
static __DT_CLONE_TARGETS__ void process_bayer (const dt_iop_hotpixels_data_t *data, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_out)
 
static __DT_CLONE_TARGETS__ void process_xtrans (const dt_iop_hotpixels_data_t *data, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_out, const uint8_t(*const xtrans)[6])
 
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)
 
int process_cl (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, cl_mem dev_in, cl_mem dev_out)
 
void init_global (dt_iop_module_so_t *module)
 
void cleanup_global (dt_iop_module_so_t *module)
 
static gboolean _hotpixels_supported (const dt_image_t *img)
 
void reload_defaults (dt_iop_module_t *module)
 
gboolean force_enable (struct dt_iop_module_t *self, const gboolean current_state)
 
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_hotpixels_data_t

◆ dt_iop_hotpixels_global_data_t

◆ dt_iop_hotpixels_gui_data_t

◆ dt_iop_hotpixels_params_t

Function Documentation

◆ _hotpixels_supported()

static gboolean _hotpixels_supported ( const dt_image_t img)
static

Definition at line 355 of file hotpixels.c.

References dt_image_is_monochrome(), and dt_image_needs_demosaic().

Referenced by force_enable(), gui_update(), and reload_defaults().

◆ cleanup_global()

◆ 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 407 of file hotpixels.c.

References dt_dev_pixelpipe_iop_t::data, and dt_free_align.

◆ 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 126 of file hotpixels.c.

References IOP_CS_RAW.

◆ default_group()

int default_group ( )

Definition at line 116 of file hotpixels.c.

References IOP_GROUP_REPAIR.

◆ description()

const char ** description ( struct dt_iop_module_t self)

Definition at line 106 of file hotpixels.c.

References dt_iop_set_description().

◆ flags()

int flags ( )

Definition at line 121 of file hotpixels.c.

References IOP_FLAGS_ONE_INSTANCE, and IOP_FLAGS_SUPPORTS_BLENDING.

◆ force_enable()

gboolean force_enable ( struct dt_iop_module_t self,
const gboolean  current_state 
)

◆ gui_init()

◆ gui_update()

void gui_update ( dt_iop_module_t self)

Refresh GUI controls from current params and configuration.

Todo:
check why needed
Todo:
by hand

Definition at line 414 of file hotpixels.c.

References _hotpixels_supported(), dt_iop_module_t::dev, g, dt_iop_module_t::gui_data, dt_iop_module_t::hide_enable_button, dt_develop_t::image_storage, p, dt_iop_module_t::params, and dt_iop_module_t::widget.

◆ hotpixels_testone()

static void hotpixels_testone ( const float *const  in,
const float  mid,
const int  offset,
int *const  count,
float *const  maxin 
)
inlinestatic

Definition at line 139 of file hotpixels.c.

Referenced by process_bayer().

◆ init_global()

◆ init_pipe()

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

◆ input_format()

◆ name()

const char * name ( )

Definition at line 101 of file hotpixels.c.

◆ process()

◆ process_bayer()

static __DT_CLONE_TARGETS__ void process_bayer ( const dt_iop_hotpixels_data_t data,
const void *const  ivoid,
void *const  ovoid,
const dt_iop_roi_t *const  roi_out 
)
static

◆ process_cl()

◆ process_xtrans()

static __DT_CLONE_TARGETS__ void process_xtrans ( const dt_iop_hotpixels_data_t data,
const void *const  ivoid,
void *const  ovoid,
const dt_iop_roi_t *const  roi_out,
const uint8_t(*)  xtrans[6] 
)
static

◆ reload_defaults()