Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
noiseprofiles.h File Reference
#include "common/image.h"
#include <glib.h>
#include <json-glib/json-glib.h>
+ Include dependency graph for noiseprofiles.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_noiseprofile_t
 

Typedefs

typedef struct dt_noiseprofile_t dt_noiseprofile_t
 

Functions

JsonParser * dt_noiseprofile_init (const char *alternative)
 
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
 

Typedef Documentation

◆ dt_noiseprofile_t

Function Documentation

◆ 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 
)

Variable Documentation

◆ dt_noiseprofile_generic

const dt_noiseprofile_t dt_noiseprofile_generic
extern