Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/moviecache.c
| Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | void IMB_moviecache_init(void) | ||||
| MEM_CacheLimiter_ItemPriority_Func_set(limitor, get_item_priority); | MEM_CacheLimiter_ItemPriority_Func_set(limitor, get_item_priority); | ||||
| MEM_CacheLimiter_ItemDestroyable_Func_set(limitor, get_item_destroyable); | MEM_CacheLimiter_ItemDestroyable_Func_set(limitor, get_item_destroyable); | ||||
| } | } | ||||
| void IMB_moviecache_destruct(void) | void IMB_moviecache_destruct(void) | ||||
| { | { | ||||
| if (limitor) { | if (limitor) { | ||||
| delete_MEM_CacheLimiter(limitor); | delete_MEM_CacheLimiter(limitor); | ||||
| limitor = NULL; | |||||
| } | } | ||||
| } | } | ||||
| MovieCache *IMB_moviecache_create(const char *name, | MovieCache *IMB_moviecache_create(const char *name, | ||||
| int keysize, | int keysize, | ||||
| GHashHashFP hashfp, | GHashHashFP hashfp, | ||||
| GHashCmpFP cmpfp) | GHashCmpFP cmpfp) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines | |||||