Blender
V3.3
|
Go to the source code of this file.
Functions | |
struct SeqDiskCache * | seq_disk_cache_create (struct Main *bmain, struct Scene *scene) |
void | seq_disk_cache_free (struct SeqDiskCache *disk_cache) |
bool | seq_disk_cache_is_enabled (struct Main *bmain) |
struct ImBuf * | seq_disk_cache_read_file (struct SeqDiskCache *disk_cache, struct SeqCacheKey *key) |
bool | seq_disk_cache_write_file (struct SeqDiskCache *disk_cache, struct SeqCacheKey *key, struct ImBuf *ibuf) |
bool | seq_disk_cache_enforce_limits (struct SeqDiskCache *disk_cache) |
void | seq_disk_cache_invalidate (struct SeqDiskCache *disk_cache, struct Scene *scene, struct Sequence *seq, struct Sequence *seq_changed, int invalidate_types) |
struct SeqDiskCache* seq_disk_cache_create | ( | struct Main * | bmain, |
struct Scene * | scene | ||
) |
Definition at line 668 of file disk_cache.c.
References BLI_mutex_init(), BLI_mutex_unlock(), SeqDiskCache::bmain, cache_create_lock, Editing::disk_cache_timestamp, Scene::ed, MEM_callocN, SeqDiskCache::read_write_mutex, scene, seq_disk_cache_base_dir(), seq_disk_cache_get_files(), seq_disk_cache_handle_versioning(), and SeqDiskCache::timestamp.
Referenced by seq_cache_get(), and seq_cache_put().
bool seq_disk_cache_enforce_limits | ( | struct SeqDiskCache * | disk_cache | ) |
Definition at line 225 of file disk_cache.c.
References BLI_exists(), BLI_freelistN(), BLI_mutex_lock(), BLI_mutex_unlock(), SeqDiskCache::files, DiskCacheFile::path, SeqDiskCache::read_write_mutex, seq_disk_cache_base_dir(), seq_disk_cache_delete_file(), seq_disk_cache_get_files(), seq_disk_cache_get_oldest_file(), seq_disk_cache_size_limit(), and SeqDiskCache::size_total.
Referenced by seq_cache_put().
void seq_disk_cache_free | ( | struct SeqDiskCache * | disk_cache | ) |
Definition at line 680 of file disk_cache.c.
References BLI_freelistN(), BLI_mutex_end(), SeqDiskCache::files, MEM_freeN, and SeqDiskCache::read_write_mutex.
Referenced by seq_cache_destruct().
void seq_disk_cache_invalidate | ( | struct SeqDiskCache * | disk_cache, |
struct Scene * | scene, | ||
struct Sequence * | seq, | ||
struct Sequence * | seq_changed, | ||
int | invalidate_types | ||
) |
Definition at line 404 of file disk_cache.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), DCACHE_IMAGES_PER_FILE, SeqDiskCache::read_write_mutex, scene, seq_disk_cache_delete_invalid_files(), SEQ_time_left_handle_frame_get(), and SEQ_time_right_handle_frame_get().
Referenced by seq_cache_cleanup_sequence().
Definition at line 132 of file disk_cache.c.
References Main::filepath, and SEQ_CACHE_DISK_CACHE_ENABLE.
Referenced by seq_cache_cleanup_sequence(), seq_cache_get(), and seq_cache_put().
struct ImBuf* seq_disk_cache_read_file | ( | struct SeqDiskCache * | disk_cache, |
struct SeqCacheKey * | key | ||
) |
Definition at line 600 of file disk_cache.c.
References BLI_file_touch(), BLI_fopen(), BLI_make_existing_file(), BLI_mutex_lock(), BLI_mutex_unlock(), DiskCacheHeaderEntry::colorspace_name, SeqCacheKey::context, DiskCacheHeader::entry, file, FILE_MAX, IB_rect, IB_rectfloat, IMB_allocImBuf(), IMB_colormanagement_assign_float_colorspace(), IMB_colormanagement_assign_rect_colorspace(), IMB_freeImBuf(), inflate_file_to_imbuf(), NULL, SeqDiskCache::read_write_mutex, SeqRenderData::rectx, SeqRenderData::recty, seq_disk_cache_get_file_path(), seq_disk_cache_get_header_entry(), seq_disk_cache_read_header(), seq_disk_cache_update_file(), and DiskCacheHeaderEntry::size_raw.
Referenced by seq_cache_get().
bool seq_disk_cache_write_file | ( | struct SeqDiskCache * | disk_cache, |
struct SeqCacheKey * | key, | ||
struct ImBuf * | ibuf | ||
) |
Definition at line 548 of file disk_cache.c.
References BLI_fopen(), BLI_make_existing_file(), BLI_mutex_lock(), BLI_mutex_unlock(), deflate_imbuf_to_file(), DiskCacheHeader::entry, file, FILE_MAX, DiskCacheFile::fstat, SeqDiskCache::read_write_mutex, seq_disk_cache_add_file_to_list(), seq_disk_cache_add_header_entry(), seq_disk_cache_compression_level(), seq_disk_cache_delete_file(), seq_disk_cache_get_file_entry_by_path(), seq_disk_cache_get_file_path(), seq_disk_cache_read_header(), seq_disk_cache_update_file(), seq_disk_cache_write_header(), and DiskCacheHeaderEntry::size_compressed.
Referenced by seq_cache_put().