Blender V5.0
source_image_cache.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::seq

Functions

void blender::seq::source_image_cache_put (const RenderData *context, const Strip *strip, float timeline_frame, ImBuf *image)
ImBufblender::seq::source_image_cache_get (const RenderData *context, const Strip *strip, float timeline_frame)
void blender::seq::source_image_cache_invalidate_strip (Scene *scene, const Strip *strip)
void blender::seq::source_image_cache_clear (Scene *scene)
void blender::seq::source_image_cache_destroy (Scene *scene)
bool blender::seq::source_image_cache_evict (Scene *scene)
size_t blender::seq::source_image_cache_get_image_count (const Scene *scene)

Detailed Description

Cache source images for strips.

  • Keyed by (strip + frame index within strip media + view ID).
  • Caching is only done for strips that are independent of any other strips (images, movies, no-input effect strips like Text and Color).
  • When full, cache eviction policy is to remove frames furthest from the current-frame, biasing towards removal of frames behind the current-frame.
  • Invalidated fairly rarely, since the cached items only change when the source content changes.

Definition in file source_image_cache.hh.