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

void dt_noiseprofile_set_path (const char *alternative)
 
void dt_noiseprofile_cleanup (void)
 
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_cleanup()

void dt_noiseprofile_cleanup ( void  )

drops the parsed profiles, if any.

Definition at line 269 of file noiseprofiles.c.

References _noiseprofiles_alternative, _noiseprofiles_parser, _noiseprofiles_parser_mutex, _noiseprofiles_tried, dt_free, and FALSE.

Referenced by dt_cleanup().

◆ dt_noiseprofile_free()

void dt_noiseprofile_free ( gpointer  data)

◆ dt_noiseprofile_get_matching()

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

void dt_noiseprofile_set_path ( const char *  alternative)

Point the module at an alternative noiseprofiles.json (–noiseprofiles). The file is parsed lazily, on the first dt_noiseprofile_get_matching() call – never at startup.

Definition at line 57 of file noiseprofiles.c.

References _noiseprofiles_alternative, and dt_free.

Referenced by dt_init().

Variable Documentation

◆ dt_noiseprofile_generic

const dt_noiseprofile_t dt_noiseprofile_generic
extern