|
Blender V4.3
|
#include "SEQ_render.hh"Go to the source code of this file.
Classes | |
| struct | SeqCacheKey |
Functions | |
| ImBuf * | seq_cache_get (const SeqRenderData *context, Sequence *seq, float timeline_frame, int type) |
| void | seq_cache_put (const SeqRenderData *context, Sequence *seq, float timeline_frame, int type, ImBuf *i) |
| bool | seq_cache_put_if_possible (const SeqRenderData *context, Sequence *seq, float timeline_frame, int type, ImBuf *ibuf) |
| bool | seq_cache_recycle_item (Scene *scene) |
| void | seq_cache_free_temp_cache (Scene *scene, short id, int timeline_frame) |
| void | seq_cache_destruct (Scene *scene) |
| void | seq_cache_cleanup_sequence (Scene *scene, Sequence *seq, Sequence *seq_changed, int invalidate_types, bool force_seq_changed_range) |
| bool | seq_cache_is_full () |
| float | seq_cache_frame_index_to_timeline_frame (Sequence *seq, float frame_index) |
| void seq_cache_cleanup_sequence | ( | Scene * | scene, |
| Sequence * | seq, | ||
| Sequence * | seq_changed, | ||
| int | invalidate_types, | ||
| bool | force_seq_changed_range ) |
Definition at line 622 of file image_cache.cc.
References BLI_assert, BLI_ghash_remove(), BLI_ghashIterator_done(), BLI_ghashIterator_getKey(), BLI_ghashIterator_init(), BLI_ghashIterator_step(), SeqCache::bmain, SeqCacheKey::cache_owner, SeqCache::disk_cache, SeqCacheKey::frame_index, SeqCache::hash, SeqCache::last_key, max_ii(), min_ii(), SeqCacheKey::seq, seq_cache_get_from_scene(), seq_cache_key_unlink(), seq_cache_keyfree(), seq_cache_lock(), SEQ_CACHE_STORE_COMPOSITE, SEQ_CACHE_STORE_FINAL_OUT, SEQ_CACHE_STORE_PREPROCESSED, SEQ_CACHE_STORE_RAW, seq_cache_timeline_frame_to_frame_index(), seq_cache_unlock(), seq_cache_valfree(), seq_disk_cache_invalidate(), seq_disk_cache_is_enabled(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), and SeqCacheKey::type.
Referenced by SEQ_relations_invalidate_cache_in_range(), sequence_do_invalidate_dependent(), and sequence_invalidate_cache().
| void seq_cache_destruct | ( | Scene * | scene | ) |
Definition at line 576 of file image_cache.cc.
References BLI_ghash_free(), BLI_mempool_destroy(), BLI_mutex_end(), SeqCache::disk_cache, SeqCache::hash, SeqCache::items_pool, SeqCache::iterator_mutex, SeqCache::keys_pool, MEM_freeN(), seq_cache_get_from_scene(), seq_cache_keyfree(), seq_cache_valfree(), and seq_disk_cache_free().
Referenced by SEQ_editing_free().
Definition at line 141 of file image_cache.cc.
References SEQ_time_start_frame_get().
Referenced by seq_disk_cache_delete_invalid_files().
Definition at line 541 of file image_cache.cc.
References BLI_assert, BLI_ghash_remove(), BLI_ghashIterator_done(), BLI_ghashIterator_getKey(), BLI_ghashIterator_init(), BLI_ghashIterator_step(), SeqCacheKey::cache_owner, SeqCacheKey::frame_index, SeqCache::hash, SeqCacheKey::is_temp_cache, SeqCache::last_key, SeqCacheKey::seq, seq_cache_get_from_scene(), seq_cache_key_unlink(), seq_cache_keyfree(), seq_cache_lock(), seq_cache_timeline_frame_to_frame_index(), seq_cache_unlock(), seq_cache_valfree(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SeqCacheKey::task_id, and SeqCacheKey::type.
Referenced by seq_prefetch_frames(), and SEQ_render_give_ibuf().
| ImBuf * seq_cache_get | ( | const SeqRenderData * | context, |
| Sequence * | seq, | ||
| float | timeline_frame, | ||
| int | type ) |
Definition at line 687 of file image_cache.cc.
References SeqCache::disk_cache, seq_cache_allocate_key(), seq_cache_create(), seq_cache_get_ex(), seq_cache_get_from_scene(), seq_cache_lock(), seq_cache_populate_key(), seq_cache_put_ex(), seq_cache_recycle_item(), SEQ_CACHE_STORE_FINAL_OUT, seq_cache_unlock(), seq_disk_cache_create(), seq_disk_cache_is_enabled(), seq_disk_cache_read_file(), seq_prefetch_get_original_context(), seq_prefetch_get_original_sequence(), and SeqCacheKey::type.
Referenced by seq_cache_put(), seq_prefetch_seq_has_disk_cache(), SEQ_render_give_ibuf(), seq_render_strip(), and seq_render_strip_stack().
| bool seq_cache_is_full | ( | ) |
Definition at line 868 of file image_cache.cc.
References MEM_get_memory_in_use, and seq_cache_get_mem_total().
Referenced by seq_cache_recycle_item(), and seq_prefetch_is_cache_full().
| void seq_cache_put | ( | const SeqRenderData * | context, |
| Sequence * | seq, | ||
| float | timeline_frame, | ||
| int | type, | ||
| ImBuf * | i ) |
Definition at line 776 of file image_cache.cc.
References BLI_assert, SeqCache::disk_cache, IMB_freeImBuf(), SeqCacheKey::is_temp_cache, seq_cache_allocate_key(), seq_cache_create(), seq_cache_get(), seq_cache_get_from_scene(), seq_cache_lock(), seq_cache_put_ex(), seq_cache_unlock(), seq_disk_cache_create(), seq_disk_cache_enforce_limits(), seq_disk_cache_is_enabled(), seq_disk_cache_write_file(), seq_prefetch_get_original_context(), and seq_prefetch_get_original_sequence().
Referenced by seq_cache_put_if_possible(), SEQ_render_give_ibuf(), seq_render_preprocess_ibuf(), seq_render_scene_strip(), and seq_render_strip_stack().
| bool seq_cache_put_if_possible | ( | const SeqRenderData * | context, |
| Sequence * | seq, | ||
| float | timeline_frame, | ||
| int | type, | ||
| ImBuf * | ibuf ) |
Definition at line 748 of file image_cache.cc.
References seq_cache_put(), seq_cache_recycle_item(), seq_cache_set_temp_cache_linked(), seq_prefetch_get_original_context(), and seq_prefetch_get_original_sequence().
Referenced by SEQ_render_give_ibuf().
| bool seq_cache_recycle_item | ( | Scene * | scene | ) |
Find only "base" keys. Sources(other types) for a frame must be freed all at once.
Definition at line 441 of file image_cache.cc.
References seq_cache_get_from_scene(), seq_cache_get_item_for_removal(), seq_cache_is_full(), seq_cache_lock(), seq_cache_recycle_linked(), and seq_cache_unlock().
Referenced by seq_cache_get(), seq_cache_put_if_possible(), and seq_prefetch_is_cache_full().