![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MediaSampleQueue.h>
Inheritance diagram for TMediaSampleQueue< SampleType, SinkType >:Protected Member Functions | |
| void | FindRangeInQueue (const TRange< FMediaTimeStamp > &TimeRange, bool bReverse, int32 &FirstPossibleIndex, int32 &LastPossibleIndex, int32 &NumOldSamplesAtBegin) |
Protected Attributes | |
| FCriticalSection | CriticalSection |
| TArray< TSharedPtr< SampleType, ESPMode::ThreadSafe > > | Samples |
| int32 | MaxSamplesInQueue |
| uint32 | FlushCount = 0 |
| uint32 | NumDroppedSamples = 0 |
Template for media sample queues.
|
inline |
|
inlinevirtual |
Virtual destructor.
|
inlineoverridevirtual |
Check if sink can accept new samples
| NumSamples | How many samples we would like the sink to accept |
Reimplemented from TMediaSampleSink< SampleType >.
|
inlineoverridevirtual |
Remove and return the next sample in the queue.
| OutSample | Will contain the sample if the queue is not empty. |
Implements TMediaSampleSource< SampleType >.
|
inline |
|
inlineoverridevirtual |
Add a sample to the head of the queue.
| Sample | The sample to add. |
Implements TMediaSampleSink< SampleType >.
|
inline |
|
inlineprotected |
|
inlinevirtual |
Returns the number of times the queue has been requested to flush already.
Implements TMediaSampleSink< SampleType >.
|
inline |
Returns the number of samples that were dropped in any of the member functions. This is only for tracking statistics and may not necessarily be accurate. The count is never implicitly cleared by any member function. To clear it call with bInClearToZero set to true.
|
inlineoverridevirtual |
Returns the sample start and end times of all samples currently in the queue.
| OutSampleTimeRanges | Will contain the sample time ranges. |
Implements TMediaSampleSource< SampleType >.
|
inlinevirtual |
Get the number of samples in the queue.
Note: The value returned by this function is only eventually consistent. It can be called by both consumer and producer threads, but it should not be used to query the actual state of the queue. Always use Dequeue and Peek instead!
Implements TMediaSampleSink< SampleType >.
|
inlineoverridevirtual |
Peek at the next sample in the queue without removing it.
| OutSample | Will contain the sample if the queue is not empty. |
Implements TMediaSampleSource< SampleType >.
|
inlineoverridevirtual |
Remove the next sample from the queue.
Implements TMediaSampleSource< SampleType >.
|
inline |
|
inline |
|
inlineoverridevirtual |
Request to flush the queue.
Implements TMediaSampleSink< SampleType >.
Reimplemented in FMediaAudioSampleQueue.
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |