41 default:
return "(unknown)";
47 static const char cache_tag[] =
"detailmask:rawdetail";
54 const int raster_mask_id)
56 static const char cache_tag[] =
"raster-mask";
61 return dt_hash(hash, (
const char *)&raster_mask_id,
sizeof(raster_mask_id));
static uint64_t dt_hash(uint64_t hash, const char *str, size_t size)
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...
uint64_t dt_dev_pixelpipe_raster_mask_hash(const dt_dev_pixelpipe_iop_t *piece, const int raster_mask_id)
uint64_t dt_dev_pixelpipe_rawdetail_mask_hash(const dt_dev_pixelpipe_iop_t *piece)
const char * dt_pixelpipe_name(dt_dev_pixelpipe_type_t pipe)
void dt_dev_clear_rawdetail_mask(dt_dev_pixelpipe_t *pipe)
Release the side-band detail mask cache reference currently owned by the pipeline.
@ DT_DEV_PIXELPIPE_THUMBNAIL
@ DT_DEV_PIXELPIPE_EXPORT
@ DT_DEV_PIXELPIPE_PREVIEW
void dt_dev_pixelpipe_cache_unref_hash(dt_dev_pixelpipe_cache_t *cache, const uint64_t hash)
Find the entry matching hash, and decrease its ref_count if found.
#define DT_PIXELPIPE_CACHE_HASH_INVALID
unsigned __int64 uint64_t
struct dt_dev_pixelpipe_cache_t * pixelpipe_cache
uint64_t global_mask_hash
uint64_t rawdetail_mask_hash
struct dt_iop_roi_t rawdetail_mask_roi