|
Blender V5.3
|
Classes | |
| struct | SourceKey |
| struct | FrameEntry |
| struct | SourceEntry |
| struct | Request |
Public Member Functions | |
| bool | invalidate_entry (const SourceKey &key) |
| ~ThumbnailCache () | |
| void | clear () |
| bool | remove_entry (const SourceKey &key) |
Public Attributes | |
| Map< SourceKey, SourceEntry > | map_ |
| Set< Request > | requests_ |
| Map< uint64_t, ID * > | id_copies_ |
| Set< Request > | scene_requests_ |
| int64_t | logical_time_ = 0 |
| uint64_t | next_generation_ = 1 |
Definition at line 58 of file thumbnail_cache.cc.
|
inline |
Definition at line 184 of file thumbnail_cache.cc.
References clear().
|
inline |
Definition at line 189 of file thumbnail_cache.cc.
References blender::BKE_id_free(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), id_copies_, blender::IMB_freeImBuf(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), logical_time_, map_, requests_, scene_requests_, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
Referenced by blender::seq::thumbnail_cache_clear(), and ~ThumbnailCache().
|
inline |
Mark an entry stale and discard queued work based on the previous source state.
Definition at line 160 of file thumbnail_cache.cc.
References blender::BKE_id_free(), blender::seq::ThumbnailCache::SourceEntry::frames, blender::seq::ThumbnailCache::SourceEntry::generation, id_copies_, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), map_, next_generation_, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_default(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove_if(), requests_, scene_requests_, blender::seq::ThumbnailCache::Request::source_key, and blender::seq::ThumbnailCache::FrameEntry::stale.
Referenced by blender::seq::thumbnail_cache_invalidate_strip().
|
inline |
Definition at line 206 of file thumbnail_cache.cc.
References blender::seq::ThumbnailCache::SourceEntry::frames, blender::IMB_freeImBuf(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), map_, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove_contained(), and blender::seq::ThumbnailCache::FrameEntry::thumb.
Referenced by blender::seq::thumbnail_cache_maintain_capacity().
Definition at line 152 of file thumbnail_cache.cc.
Referenced by clear(), blender::seq::get_id_copy(), invalidate_entry(), and blender::seq::query_thumbnail().
| int64_t blender::seq::ThumbnailCache::logical_time_ = 0 |
Definition at line 156 of file thumbnail_cache.cc.
Referenced by clear(), blender::seq::query_thumbnail(), blender::seq::thumbnail_cache_maintain_capacity(), and blender::seq::thumbnail_cache_update_scene_thumbs().
| Map<SourceKey, SourceEntry> blender::seq::ThumbnailCache::map_ |
Definition at line 147 of file thumbnail_cache.cc.
Referenced by clear(), invalidate_entry(), blender::seq::query_thumbnail(), remove_entry(), blender::seq::thumbnail_cache_maintain_capacity(), and blender::seq::thumbnail_cache_update_scene_thumbs().
| uint64_t blender::seq::ThumbnailCache::next_generation_ = 1 |
Definition at line 157 of file thumbnail_cache.cc.
Referenced by invalidate_entry(), and blender::seq::query_thumbnail().
Definition at line 148 of file thumbnail_cache.cc.
Referenced by clear(), invalidate_entry(), blender::seq::query_thumbnail(), and blender::seq::thumbnail_cache_discard_requests_outside().
Definition at line 155 of file thumbnail_cache.cc.
Referenced by clear(), invalidate_entry(), blender::seq::query_thumbnail(), blender::seq::thumbnail_cache_discard_requests_outside(), blender::seq::thumbnail_cache_has_pending_scene_requests(), and blender::seq::thumbnail_cache_update_scene_thumbs().