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

Functions

const char * dt_pixelpipe_name (dt_dev_pixelpipe_type_t pipe)
 
static void _free_raster_mask (void *mask)
 
uint64_t dt_dev_pixelpipe_rawdetail_mask_hash (const dt_dev_pixelpipe_iop_t *piece)
 
GHashTable * dt_pixelpipe_raster_alloc ()
 
void dt_dev_clear_rawdetail_mask (dt_dev_pixelpipe_t *pipe)
 Release the side-band detail mask cache reference currently owned by the pipeline.
 
void dt_pixelpipe_raster_cleanup (GHashTable *raster_masks)
 
gboolean dt_pixelpipe_raster_replace (GHashTable *raster_masks, float *mask)
 Replace a raster mask in the raster masks hashtable of the pixelpipe.
 
gboolean dt_pixelpipe_raster_remove (GHashTable *raster_masks)
 Remove the raster mask with id 0 from the raster masks hashtable of the pixelpipe.
 
float * dt_pixelpipe_raster_get (GHashTable *raster_masks, const int raster_mask_id)
 Get the raster mask with given id from the raster masks hashtable of the pixelpipe.
 

Function Documentation

◆ _free_raster_mask()

static void _free_raster_mask ( void mask)
static

◆ dt_dev_clear_rawdetail_mask()

◆ dt_dev_pixelpipe_rawdetail_mask_hash()

◆ dt_pixelpipe_name()

◆ dt_pixelpipe_raster_alloc()

GHashTable * dt_pixelpipe_raster_alloc ( )

◆ dt_pixelpipe_raster_cleanup()

void dt_pixelpipe_raster_cleanup ( GHashTable *  raster_masks)

◆ dt_pixelpipe_raster_get()

float * dt_pixelpipe_raster_get ( GHashTable *  raster_masks,
const int  raster_mask_id 
)

Get the raster mask with given id from the raster masks hashtable of the pixelpipe.

Parameters
raster_masksthe raster masks hashtable of the pixelpipe
raster_mask_idthe raster mask id
Returns
float* the pointer to the raster mask, or NULL if not found

References IS_NULL_PTR.

Referenced by dt_dev_get_raster_mask().

◆ dt_pixelpipe_raster_remove()

gboolean dt_pixelpipe_raster_remove ( GHashTable *  raster_masks)

Remove the raster mask with id 0 from the raster masks hashtable of the pixelpipe.

Parameters
raster_masksthe raster masks hashtable of the pixelpipe
Returns
gboolean TRUE if the key existed and was removed, FALSE if it did not exist and nothing changed.

Referenced by dt_develop_blend_process(), and dt_develop_blend_process_cl().

◆ dt_pixelpipe_raster_replace()

gboolean dt_pixelpipe_raster_replace ( GHashTable *  raster_masks,
float *  mask 
)

Replace a raster mask in the raster masks hashtable of the pixelpipe.

Parameters
raster_masksthe raster masks hashtable of the pixelpipe
maskthe pointer to the mask
Returns
gboolean TRUE if the key did not exist and was added, FALSE if it existed and was replaced.

Referenced by dt_develop_blend_process(), and dt_develop_blend_process_cl().