Navigation
API > API/Plugins > API/Plugins/ImgMedia
Inheritance Hierarchy
- TSharedFromThis
- FImgMediaGlobalCache
References
| Module | ImgMedia |
| Header | /Engine/Plugins/Media/ImgMedia/Source/ImgMedia/Public/ImgMediaGlobalCache.h |
| Include | #include "ImgMediaGlobalCache.h" |
Syntax
class FImgMediaGlobalCache : public TSharedFromThis< FImgMediaGlobalCache, ESPMode::ThreadSafe >
Remarks
A global cache for all ImgMedia players.
Uses Least Recently Used (LRU).
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Desctructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddFrame
(
const FString& FileName, |
Adds a frame to the cache. | |
| bool | Check whether the entry with the specified sequence and index is present. | ||
| void | EmptyCache () |
Empties the cache. | |
| TSharedPtr< FImgMediaFrame, ESPMode::ThreadSafe > * | FindAndTouch
(
const FName& Sequence, |
Find the entry with the specified sequence and index and mark it as the most recently used. | |
| SIZE_T | Get the current size (in bytess). | ||
| void | GetIndices
(
const FName& Sequence, |
Find the indices of all cached entries of a particular sequence. | |
| SIZE_T | GetMaxSize () |
Get the maximum size (in bytes). | |
| void | Initialize () |
Initialize the cache. | |
| void | Shutdown () |
Shut down the cache. |