|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| SeqDiskCache * | seq_disk_cache_create (Main *bmain, Scene *scene) |
| void | seq_disk_cache_free (SeqDiskCache *disk_cache) |
| bool | seq_disk_cache_is_enabled (Main *bmain) |
| ImBuf * | seq_disk_cache_read_file (SeqDiskCache *disk_cache, SeqCacheKey *key) |
| bool | seq_disk_cache_write_file (SeqDiskCache *disk_cache, SeqCacheKey *key, ImBuf *ibuf) |
| bool | seq_disk_cache_enforce_limits (SeqDiskCache *disk_cache) |
| void | seq_disk_cache_invalidate (SeqDiskCache *disk_cache, Scene *scene, Sequence *seq, Sequence *seq_changed, int invalidate_types) |
| SeqDiskCache * seq_disk_cache_create | ( | Main * | bmain, |
| Scene * | scene ) |
Definition at line 667 of file disk_cache.cc.
References BLI_mutex_init(), BLI_mutex_unlock(), SeqDiskCache::bmain, cache_create_lock, MEM_callocN, SeqDiskCache::read_write_mutex, 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 | ( | SeqDiskCache * | disk_cache | ) |
Definition at line 219 of file disk_cache.cc.
References BLI_exists(), BLI_freelistN(), BLI_mutex_lock(), BLI_mutex_unlock(), DiskCacheFile::filepath, SeqDiskCache::files, 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 | ( | SeqDiskCache * | disk_cache | ) |
Definition at line 680 of file disk_cache.cc.
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 | ( | SeqDiskCache * | disk_cache, |
| Scene * | scene, | ||
| Sequence * | seq, | ||
| Sequence * | seq_changed, | ||
| int | invalidate_types ) |
Definition at line 397 of file disk_cache.cc.
References BLI_mutex_lock(), BLI_mutex_unlock(), DCACHE_IMAGES_PER_FILE, SeqDiskCache::read_write_mutex, 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().
| bool seq_disk_cache_is_enabled | ( | Main * | bmain | ) |
Definition at line 124 of file disk_cache.cc.
References Main::filepath, and SEQ_CACHE_DISK_CACHE_ENABLE.
Referenced by seq_cache_cleanup_sequence(), seq_cache_get(), and seq_cache_put().
| ImBuf * seq_disk_cache_read_file | ( | SeqDiskCache * | disk_cache, |
| SeqCacheKey * | key ) |
Definition at line 597 of file disk_cache.cc.
References BLI_file_ensure_parent_dir_exists(), BLI_file_touch(), BLI_fopen(), BLI_mutex_lock(), BLI_mutex_unlock(), DiskCacheHeaderEntry::colorspace_name, SeqCacheKey::context, DiskCacheHeader::entry, FILE_MAX, IB_rect, IB_rectfloat, IB_uninitialized_pixels, IMB_allocImBuf(), IMB_colormanagement_assign_byte_colorspace(), IMB_colormanagement_assign_float_colorspace(), IMB_freeImBuf(), inflate_file_to_imbuf(), 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 | ( | SeqDiskCache * | disk_cache, |
| SeqCacheKey * | key, | ||
| ImBuf * | ibuf ) |
Definition at line 544 of file disk_cache.cc.
References BLI_file_ensure_parent_dir_exists(), BLI_fopen(), BLI_mutex_lock(), BLI_mutex_unlock(), deflate_imbuf_to_file(), DiskCacheHeader::entry, 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().