Navigation
API > API/Plugins > API/Plugins/MediaIOCore
Inheritance Hierarchy
- ITimedDataInputChannel
- FMediaIOCoreSampleContainer
References
| Module | MediaIOCore |
| Header | /Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Public/MediaIOCoreSampleContainer.h |
| Include | #include "MediaIOCoreSampleContainer.h" |
Syntax
template<typename SampleType>
class FMediaIOCoreSampleContainer : public ITimedDataInputChannel
Remarks
MediaIO container for different types of samples. Also a TimedData channel that can be monitored
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsChannelEnabled | Should this channel be considered available | |
| bool | bIsStatEnabled | Stats logging enabled or not | |
| TAtomic< int32 > | BufferOverflow | ||
| TAtomic< int32 > | BufferUnderflow | Evaluation statistics we keep track of | |
| FTimedDataInputEvaluationData | CachedEvaluationData | Last evaluation data for that channel | |
| TArray< FTimedDataChannelSampleTime > | CachedSamplesData | Samples are consumed by the the facade layer when evaluating and sending to render thread. | |
| FName | ChannelName | Name of this channel | |
| FCriticalSection | CriticalSection | Sample container: We add at the beginning of the array [0] and we pop at the end [Size-1]. | |
| FMediaIOSamplingSettings | EvaluationSettings | Channel settings | |
| TAtomic< int32 > | FrameDrop | ||
| TArray< TSharedPtr< SampleType, ESPMode::ThreadSafe > > | Samples |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMediaIOCoreSampleContainer
(
FName InChannelName |
|||
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddSample
(
const TSharedRef< SampleType, ESPMode::ThreadSafe >& Sample |
Add the given sample to the cache. | |
| void | CacheState
(
FTimespan PlayerTime |
Caches the current sample container states before samples will be taken out of it | |
| void | EnableChannel
(
ITimedDataInput* Input, |
Channel is disabled by default. It won't be added to the Timed Data collection if not enabled | |
| bool | FetchSample
(
TRange< FTimespan > TimeRange, |
||
| void | FlushSamples () |
||
| FTimespan | Get next sample time from the sample list. | ||
| TArray< TSharedPtr< SampleType, ESPMode::ThreadSafe > > | GetSamples () |
Returns all available samples | |
| int32 | NumSamples () |
Get the number of queued samples. | |
| bool | PopSample () |
Pop a sample from the cache. | |
| void | UpdateSettings
(
const FMediaIOSamplingSettings& InSettings |
Update this sample container settings |
Overridden from ITimedDataInputChannel
| Type | Name | Description | |
|---|---|---|---|
| int32 | Return buffer overflow count detected by this input | ||
| int32 | Return buffer underflow count detected by this input | ||
| int32 | If the channel does support it, get the current maximum sample count of channel. | ||
| TArray< FTimedDataChannelSampleTime > | GetDataTimes () |
Get the time of all the data samples available. | |
| FText | Get the channel's display name. | ||
| int32 | Return frame dropped count detected by this input | ||
| void | GetLastEvaluationData
(
FTimedDataInputEvaluationData& OutEvaluationData |
Get data about last evaluation. Samples used, expected, number of samples. | |
| FTimedDataChannelSampleTime | Get the time of the newest data sample available. | ||
| int32 | Get the number of data samples available. | ||
| FTimedDataChannelSampleTime | Get the time of the oldest data sample available. | ||
| ETimedDataInputState | GetState () |
Get the current state of the channel. | |
| bool | Is tracking of stats enabled for this input | ||
| void | Resets internal stat counters | ||
| void | SetBufferStatsEnabled
(
bool bEnable |
Enables or disables stats tracking for this input | |
| void | SetDataBufferSize
(
int32 BufferSize |
If the channel does support it, set the maximum sample count of the channel. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FMediaIOCoreSampleContainer & | operator=
(
const FMediaIOCoreSampleContainer& |