Blender V5.3
cache.cc File Reference
#include <cstdlib>
#include <memory.h>
#include <mutex>
#include "MEM_CacheLimiterC-Api.h"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.hh"
#include "BLI_mempool.hh"
#include "BLI_string.hh"
#include "IMB_cache.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"

Go to the source code of this file.

Classes

struct  blender::ImBufCache
struct  blender::ImBufCacheKey
struct  blender::ImBufCacheItem

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PRINT(format, ...)

Functions

static uint blender::imbufcache_hashhash (const void *keyv)
static bool blender::imbufcache_hashcmp (const void *av, const void *bv)
static void blender::imbufcache_keyfree (void *val)
static void blender::imbufcache_valfree (void *val)
static void blender::check_unused_keys (ImBufCache *cache)
static int blender::compare_int (const void *av, const void *bv)
static void blender::imbufcache_destructor (void *p)
static size_t blender::get_size_in_memory (ImBuf *ibuf)
static size_t blender::get_item_size (void *p)
static int blender::get_item_priority (void *item_v, int default_priority)
static bool blender::get_item_destroyable (void *item_v)
void blender::IMB_cache_init ()
void blender::IMB_cache_destruct ()
ImBufCache * blender::IMB_cache_create (const char *name, int keysize, GHashHashFP hashfp, GHashCmpFP cmpfp)
void blender::IMB_cache_set_getdata_callback (ImBufCache *cache, ImBufCacheGetKeyDataFP getdatafp)
void blender::IMB_cache_set_priority_callback (ImBufCache *cache, ImBufCacheGetPriorityDataFP getprioritydatafp, ImBufCacheGetItemPriorityFP getitempriorityfp, ImBufCachePriorityDeleterFP prioritydeleterfp)
static void blender::do_imbufcache_put (ImBufCache *cache, void *userkey, ImBuf *ibuf, bool need_lock)
void blender::IMB_cache_put (ImBufCache *cache, void *userkey, ImBuf *ibuf)
bool blender::IMB_cache_put_if_possible (ImBufCache *cache, void *userkey, ImBuf *ibuf)
void blender::IMB_cache_remove (ImBufCache *cache, void *userkey)
ImBuf * blender::IMB_cache_get (ImBufCache *cache, void *userkey, bool *r_is_cached_empty)
bool blender::IMB_cache_has_frame (ImBufCache *cache, void *userkey)
void blender::IMB_cache_free (ImBufCache *cache)
void blender::IMB_cache_cleanup (ImBufCache *cache, bool(cleanup_check_cb)(ImBuf *ibuf, void *userkey, void *userdata), void *userdata)
void blender::IMB_cache_get_cache_segments (ImBufCache *cache, int proxy, int render_flags, int *r_totseg, int **r_points)
ImBufCacheIter * blender::IMB_cacheIter_new (ImBufCache *cache)
void blender::IMB_cacheIter_free (ImBufCacheIter *iter)
bool blender::IMB_cacheIter_done (ImBufCacheIter *iter)
void blender::IMB_cacheIter_step (ImBufCacheIter *iter)
ImBuf * blender::IMB_cacheIter_getImBuf (ImBufCacheIter *iter)
void * blender::IMB_cacheIter_getUserKey (ImBufCacheIter *iter)

Variables

static MEM_CacheLimiterC * blender::limitor = nullptr
static std::recursive_mutex blender::limitor_lock

Macro Definition Documentation

◆ PRINT