Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
noiseprofiles.c File Reference
+ Include dependency graph for noiseprofiles.c:

Macros

#define DT_NOISE_PROFILE_VERSION   0
 
#define _ERROR(...)
 

Functions

static gboolean dt_noiseprofile_verify (JsonParser *parser)
 
JsonParser * dt_noiseprofile_init (const char *alternative)
 
int is_member (gchar **names, char *name)
 
static gint _sort_by_iso (gconstpointer a, gconstpointer b)
 
GList * dt_noiseprofile_get_matching (const dt_image_t *cimg)
 
void dt_noiseprofile_free (gpointer data)
 
void dt_noiseprofile_interpolate (const dt_noiseprofile_t *const p1, const dt_noiseprofile_t *const p2, dt_noiseprofile_t *out)
 

Variables

const dt_noiseprofile_t dt_noiseprofile_generic = {N_("generic poissonian"), "", "", 0, {0.0001f, 0.0001f, 0.0001}, {0.0f, 0.0f, 0.0f}}
 

Macro Definition Documentation

◆ _ERROR

#define _ERROR (   ...)
Value:
{\
dt_print(DT_DEBUG_CONTROL, "[noiseprofile] error: " );\
dt_print(DT_DEBUG_CONTROL, __VA_ARGS__);\
dt_print(DT_DEBUG_CONTROL, "\n");\
valid = FALSE;\
goto end;\
}
#define FALSE
Definition ashift_lsd.c:147
@ DT_DEBUG_CONTROL
Definition darktable.h:473

◆ DT_NOISE_PROFILE_VERSION

#define DT_NOISE_PROFILE_VERSION   0

Function Documentation

◆ _sort_by_iso()

static gint _sort_by_iso ( gconstpointer  a,
gconstpointer  b 
)
static

◆ dt_noiseprofile_free()

void dt_noiseprofile_free ( gpointer  data)

convenience function to free a list of noiseprofiles

References dt_noiseprofile_t::maker, dt_noiseprofile_t::model, and dt_noiseprofile_t::name.

Referenced by dt_iop_denoiseprofile_get_auto_profile(), gui_cleanup(), and reload_defaults().

◆ dt_noiseprofile_get_matching()

◆ dt_noiseprofile_init()

JsonParser * dt_noiseprofile_init ( const char *  alternative)

read the noiseprofile file once on startup (kind of)

Todo:
: shall we cache the content? for now this looks fast enough(TM)

References dt_control_log(), DT_DEBUG_CONTROL, dt_loc_get_datadir(), dt_loc_get_user_config_dir(), dt_noiseprofile_verify(), dt_print(), error(), and PATH_MAX.

Referenced by dt_init().

◆ dt_noiseprofile_interpolate()

void dt_noiseprofile_interpolate ( const dt_noiseprofile_t *const  p1,
const dt_noiseprofile_t *const  p2,
dt_noiseprofile_t out 
)

◆ dt_noiseprofile_verify()

static gboolean dt_noiseprofile_verify ( JsonParser *  parser)
static

◆ is_member()

int is_member ( gchar **  names,
char *  name 
)

Variable Documentation

◆ dt_noiseprofile_generic

const dt_noiseprofile_t dt_noiseprofile_generic = {N_("generic poissonian"), "", "", 0, {0.0001f, 0.0001f, 0.0001}, {0.0f, 0.0f, 0.0f}}