Blender  V3.3
Classes | Typedefs | Functions
image_cache.h File Reference
#include "SEQ_render.h"

Go to the source code of this file.

Classes

struct  SeqCacheKey
 

Typedefs

typedef struct SeqCacheKey SeqCacheKey
 

Functions

struct ImBufseq_cache_get (const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, int type)
 
void seq_cache_put (const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, int type, struct ImBuf *i)
 
void seq_cache_thumbnail_put (const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, struct ImBuf *i, rctf *view_area)
 
bool seq_cache_put_if_possible (const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, int type, struct ImBuf *nval)
 
bool seq_cache_recycle_item (struct Scene *scene)
 
void seq_cache_free_temp_cache (struct Scene *scene, short id, int timeline_frame)
 
void seq_cache_destruct (struct Scene *scene)
 
void seq_cache_cleanup_all (struct Main *bmain)
 
void seq_cache_cleanup_sequence (struct Scene *scene, struct Sequence *seq, struct Sequence *seq_changed, int invalidate_types, bool force_seq_changed_range)
 
void seq_cache_thumbnail_cleanup (Scene *scene, rctf *view_area)
 
bool seq_cache_is_full (void)
 
float seq_cache_frame_index_to_timeline_frame (struct Sequence *seq, float frame_index)
 

Typedef Documentation

◆ SeqCacheKey

typedef struct SeqCacheKey SeqCacheKey

Function Documentation

◆ seq_cache_cleanup_all()

void seq_cache_cleanup_all ( struct Main bmain)

Definition at line 596 of file image_cache.c.

References ListBase::first, Scene::id, ID::next, NULL, scene, Main::scenes, and SEQ_cache_cleanup().

◆ seq_cache_cleanup_sequence()

void seq_cache_cleanup_sequence ( struct Scene scene,
struct Sequence seq,
struct Sequence seq_changed,
int  invalidate_types,
bool  force_seq_changed_range 
)

◆ seq_cache_destruct()

void seq_cache_destruct ( struct Scene scene)

◆ seq_cache_frame_index_to_timeline_frame()

float seq_cache_frame_index_to_timeline_frame ( struct Sequence seq,
float  frame_index 
)

Definition at line 151 of file image_cache.c.

References SEQ_time_start_frame_get().

Referenced by seq_disk_cache_delete_invalid_files().

◆ seq_cache_free_temp_cache()

void seq_cache_free_temp_cache ( struct Scene scene,
short  id,
int  timeline_frame 
)

◆ seq_cache_get()

struct ImBuf* seq_cache_get ( const struct SeqRenderData context,
struct Sequence seq,
float  timeline_frame,
int  type 
)

◆ seq_cache_is_full()

bool seq_cache_is_full ( void  )

◆ seq_cache_put()

void seq_cache_put ( const struct SeqRenderData context,
struct Sequence seq,
float  timeline_frame,
int  type,
struct ImBuf i 
)

◆ seq_cache_put_if_possible()

bool seq_cache_put_if_possible ( const struct SeqRenderData context,
struct Sequence seq,
float  timeline_frame,
int  type,
struct ImBuf nval 
)

◆ seq_cache_recycle_item()

bool seq_cache_recycle_item ( struct Scene scene)

Find only "base" keys. Sources(other types) for a frame must be freed all at once.

Definition at line 446 of file image_cache.c.

References scene, 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().

◆ seq_cache_thumbnail_cleanup()

void seq_cache_thumbnail_cleanup ( Scene scene,
rctf view_area 
)

◆ seq_cache_thumbnail_put()

void seq_cache_thumbnail_put ( const struct SeqRenderData context,
struct Sequence seq,
float  timeline_frame,
struct ImBuf i,
rctf view_area 
)