Blender  V2.59
Classes | Typedefs | Functions | Variables
seqcache.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "MEM_CacheLimiterC-Api.h"
#include "DNA_sequence_types.h"
#include "BKE_sequencer.h"
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
#include "BLI_mempool.h"
#include <pthread.h>
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"

Go to the source code of this file.

Classes

struct  seqCacheKey
struct  seqCacheEntry

Typedefs

typedef struct seqCacheKey seqCacheKey
typedef struct seqCacheEntry seqCacheEntry

Functions

static unsigned int HashHash (const void *key_)
static int HashCmp (const void *a_, const void *b_)
static void HashKeyFree (void *key)
static void HashValFree (void *val)
static void IMB_seq_cache_destructor (void *p)
void seq_stripelem_cache_init (void)
void seq_stripelem_cache_destruct (void)
void seq_stripelem_cache_cleanup (void)
struct ImBufseq_stripelem_cache_get (SeqRenderData context, struct Sequence *seq, float cfra, seq_stripelem_ibuf_t type)
void seq_stripelem_cache_put (SeqRenderData context, struct Sequence *seq, float cfra, seq_stripelem_ibuf_t type, struct ImBuf *i)

Variables

static GHashhash = NULL
static MEM_CacheLimiterClimitor = NULL
static struct BLI_mempoolentrypool = NULL
static struct BLI_mempoolkeypool = NULL
static int ibufs_in = 0
static int ibufs_rem = 0

Detailed Description

Definition in file seqcache.c.


Typedef Documentation

typedef struct seqCacheEntry seqCacheEntry
typedef struct seqCacheKey seqCacheKey

Function Documentation

static int HashCmp ( const void *  a_,
const void *  b_ 
) [static]
static unsigned int HashHash ( const void *  key_) [static]
static void HashKeyFree ( void *  key) [static]
static void HashValFree ( void *  val) [static]
static void IMB_seq_cache_destructor ( void *  p) [static]
void seq_stripelem_cache_cleanup ( void  )
void seq_stripelem_cache_destruct ( void  )
struct ImBuf* seq_stripelem_cache_get ( SeqRenderData  context,
struct Sequence seq,
float  cfra,
seq_stripelem_ibuf_t  type 
) [read]
void seq_stripelem_cache_init ( void  )
void seq_stripelem_cache_put ( SeqRenderData  context,
struct Sequence seq,
float  cfra,
seq_stripelem_ibuf_t  type,
struct ImBuf i 
)

Variable Documentation

struct BLI_mempool* entrypool = NULL [static]

Definition at line 64 of file seqcache.c.

GHash* hash = NULL [static]
int ibufs_in = 0 [static]

Definition at line 66 of file seqcache.c.

Referenced by seq_stripelem_cache_put().

int ibufs_rem = 0 [static]

Definition at line 67 of file seqcache.c.

Referenced by HashValFree(), and IMB_seq_cache_destructor().

struct BLI_mempool* keypool = NULL [static]

Definition at line 65 of file seqcache.c.

MEM_CacheLimiterC* limitor = NULL [static]