Cogs.Core
Classes | Public Member Functions | Public Attributes | List of all members
Cogs::Core::Image360::Cache Struct Reference

Classes

struct  Item
 

Public Member Functions

void init (const Config &config)
 
SlotIx isQuadInCache (Context *context, Fetcher &fetcher, const Image360Component &im360Comp, const Config &config, const uint32_t currentFrame, const size_t cacheLevel, const size_t cacheLevelIndex)
 
void updateLeastRecentlyUsedList (const uint32_t currentFrame)
 

Public Attributes

std::vector< SlotIx > map
 
std::vector< SlotIx > lru
 Slots sorted s.t. the least recently used items is at end.
 
std::vector< Itemitems
 
size_t lruPointer = 0
 Points to one past the least recently and recycable item, decrements and zero means nothing to recycle.
 
size_t maxItemCount = 512
 Number of tiles in cache.
 

Detailed Description

Definition at line 106 of file Image360.h.

Member Function Documentation

◆ init()

void Cogs::Core::Image360::Cache::init ( const Config config)

Definition at line 80 of file Cache.cpp.

◆ isQuadInCache()

SlotIx Cogs::Core::Image360::Cache::isQuadInCache ( Context context,
Fetcher fetcher,
const Image360Component im360Comp,
const Config config,
const uint32_t  currentFrame,
const size_t  cacheLevel,
const size_t  cacheLevelIndex 
)

Definition at line 86 of file Cache.cpp.

◆ updateLeastRecentlyUsedList()

void Cogs::Core::Image360::Cache::updateLeastRecentlyUsedList ( const uint32_t  currentFrame)

Definition at line 186 of file Cache.cpp.

Member Data Documentation

◆ items

std::vector<Item> Cogs::Core::Image360::Cache::items

Definition at line 128 of file Image360.h.

◆ lru

std::vector<SlotIx> Cogs::Core::Image360::Cache::lru

Slots sorted s.t. the least recently used items is at end.

Definition at line 127 of file Image360.h.

◆ lruPointer

size_t Cogs::Core::Image360::Cache::lruPointer = 0

Points to one past the least recently and recycable item, decrements and zero means nothing to recycle.

Definition at line 129 of file Image360.h.

◆ map

std::vector<SlotIx> Cogs::Core::Image360::Cache::map

Definition at line 126 of file Image360.h.

◆ maxItemCount

size_t Cogs::Core::Image360::Cache::maxItemCount = 512

Number of tiles in cache.

Definition at line 130 of file Image360.h.


The documentation for this struct was generated from the following files: