// remove the image from the cache void dt_image_cache_remove( dt_image_cache_t *cache, const uint32_t imgid) { dt_cache_remove(&cache->cache, imgid); }
void dt_mipmap_cache_remove( dt_mipmap_cache_t *cache, const uint32_t imgid) { // get rid of all ldr thumbnails: for(int k=DT_MIPMAP_0; k<DT_MIPMAP_F; k++) { const uint32_t key = get_key(imgid, k); dt_cache_remove(&cache->mip[k].cache, key); } }