Blender V4.3
#include <map>

Go to the source code of this file.

Classes

struct  iTaSC::Timestamp
 
class  iTaSC::Cache
 
struct  iTaSC::CacheEntry
 
struct  iTaSC::CacheChannel
 
struct  iTaSC::CacheBlock
 
struct  iTaSC::CacheItem
 
struct  iTaSC::CacheBufferHeader
 
struct  iTaSC::CacheBuffer
 

Namespaces

namespace  iTaSC
 

Macros

#define CACHE_LOOKUP_TABLE_SIZE   128
 
#define CACHE_DEFAULT_BUFFER_SIZE   32768
 
#define CACHE_CHANNEL_EXTEND_SIZE   10
 
#define CACHE_MAX_ITEM_SIZE   0x3FFF0
 
#define CACHE_ITEM_GAPB(item)   (unsigned int)(((size_t)item+sizeof(CacheItem))&(sizeof(void*)-1))
 
#define CACHE_ITEM_DATA_POINTER(item)   (void*)((unsigned char*)item+sizeof(CacheItem)+CACHE_ITEM_GAPB(item))
 
#define CACHE_ITEM_SIZEW(item, length)   (unsigned int)((sizeof(CacheItem)+CACHE_ITEM_GAPB(item)+(((length)+3)&~0x3))>>2)
 
#define CACHE_NEXT_ITEM(item)   ((item)+(item)->m_sizeW)
 
#define CACHE_BLOCK_ITEM_ADDR(chan, buf, block)   (&(buf)->m_firstItem+(((unsigned int)(block)<<chan->m_positionToBlockShiftW)+(buf)->lookup[block].m_offsetW))
 
#define CACHE_ITEM_ADDR(buf, pos)   (&(buf)->m_firstItem+(pos))
 
#define CACHE_ITEM_POSITIONW(buf, item)   (unsigned int)(item-&buf->m_firstItem)
 
#define CACHE_HEADER
 
#define CACHE_BUFFER_HEADER_SIZE   (sizeof(struct CacheBufferHeader))
 

Typedefs

typedef unsigned int iTaSC::CacheTS
 

Functions

void iTaSC::setCacheTimestamp (Timestamp &timestamp)
 

Macro Definition Documentation

◆ CACHE_BLOCK_ITEM_ADDR

#define CACHE_BLOCK_ITEM_ADDR ( chan,
buf,
block )   (&(buf)->m_firstItem+(((unsigned int)(block)<<chan->m_positionToBlockShiftW)+(buf)->lookup[block].m_offsetW))

◆ CACHE_BUFFER_HEADER_SIZE

#define CACHE_BUFFER_HEADER_SIZE   (sizeof(struct CacheBufferHeader))

Definition at line 218 of file Cache.hpp.

Referenced by iTaSC::CacheChannel::allocBuffer().

◆ CACHE_CHANNEL_EXTEND_SIZE

#define CACHE_CHANNEL_EXTEND_SIZE   10

Definition at line 18 of file Cache.hpp.

Referenced by iTaSC::Cache::addChannel().

◆ CACHE_DEFAULT_BUFFER_SIZE

#define CACHE_DEFAULT_BUFFER_SIZE   32768

Definition at line 17 of file Cache.hpp.

Referenced by iTaSC::Cache::addChannel().

◆ CACHE_HEADER

#define CACHE_HEADER
Value:
struct CacheBuffer *m_next; \
unsigned int m_firstTimestamp; \
unsigned int m_lastTimestamp; \
\
unsigned int m_lastItemPositionW; \
unsigned int m_firstFreePositionW;\
struct CacheBlock lookup[CACHE_LOOKUP_TABLE_SIZE]
#define CACHE_LOOKUP_TABLE_SIZE
Definition Cache.hpp:16
btAlignedObjectArray< int > m_next

Definition at line 206 of file Cache.hpp.

◆ CACHE_ITEM_ADDR

#define CACHE_ITEM_ADDR ( buf,
pos )   (&(buf)->m_firstItem+(pos))

Definition at line 30 of file Cache.hpp.

Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::CacheChannel::findItemEarlier().

◆ CACHE_ITEM_DATA_POINTER

#define CACHE_ITEM_DATA_POINTER ( item)    (void*)((unsigned char*)item+sizeof(CacheItem)+CACHE_ITEM_GAPB(item))

◆ CACHE_ITEM_GAPB

#define CACHE_ITEM_GAPB ( item)    (unsigned int)(((size_t)item+sizeof(CacheItem))&(sizeof(void*)-1))

Definition at line 22 of file Cache.hpp.

◆ CACHE_ITEM_POSITIONW

#define CACHE_ITEM_POSITIONW ( buf,
item )   (unsigned int)(item-&buf->m_firstItem)

Definition at line 31 of file Cache.hpp.

Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::clearCacheFrom().

◆ CACHE_ITEM_SIZEW

#define CACHE_ITEM_SIZEW ( item,
length )   (unsigned int)((sizeof(CacheItem)+CACHE_ITEM_GAPB(item)+(((length)+3)&~0x3))>>2)

◆ CACHE_LOOKUP_TABLE_SIZE

#define CACHE_LOOKUP_TABLE_SIZE   128

Definition at line 16 of file Cache.hpp.

Referenced by iTaSC::Cache::addChannel().

◆ CACHE_MAX_ITEM_SIZE

#define CACHE_MAX_ITEM_SIZE   0x3FFF0

Definition at line 19 of file Cache.hpp.

◆ CACHE_NEXT_ITEM

#define CACHE_NEXT_ITEM ( item)    ((item)+(item)->m_sizeW)