engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
TMediaSampleSinks< SampleType, SinkType > 模板类 参考

Collection of media sample sinks. 更多...

#include <MediaSampleSinks.h>

Public 成员函数

void Add (const TSharedRef< SinkType, ESPMode::ThreadSafe > &SampleSink)
 Add the given media sample sink to the collection. 更多...
 
void Cleanup ()
 Remove any invalid sinks
 
bool Enqueue (const TSharedRef< SampleType, ESPMode::ThreadSafe > &Sample, int32 MaxDepth)
 Enqueue the given media samples to the registered sinks. 更多...
 
void Flush ()
 Flush all registered sinks. 更多...
 
int32 Num () const
 Get the number of sinks in this collection. 更多...
 
void Remove (const TSharedRef< SinkType, ESPMode::ThreadSafe > &SampleSink)
 Remove the given media sample sink from the collection. 更多...
 

Protected 属性

TArray< TWeakPtr< SinkType, ESPMode::ThreadSafe > > Sinks
 The collection of registered sinks.
 

详细描述

template<typename SampleType, typename SinkType = TMediaSampleSink<SampleType>>
class TMediaSampleSinks< SampleType, SinkType >

Collection of media sample sinks.

参数
SampleTypeThe type of media samples that the sinks process.

成员函数说明

◆ Add()

template<typename SampleType , typename SinkType = TMediaSampleSink<SampleType>>
void TMediaSampleSinks< SampleType, SinkType >::Add ( const TSharedRef< SinkType, ESPMode::ThreadSafe > &  SampleSink)
inline

Add the given media sample sink to the collection.

参数
SampleSinkThe sink to add.
参见
Num, Remove

◆ Enqueue()

template<typename SampleType , typename SinkType = TMediaSampleSink<SampleType>>
bool TMediaSampleSinks< SampleType, SinkType >::Enqueue ( const TSharedRef< SampleType, ESPMode::ThreadSafe > &  Sample,
int32  MaxDepth 
)
inline

Enqueue the given media samples to the registered sinks.

This method will also remove expired sinks that haven't been removed yet.

参数
SampleThe media sample to enqueue.
MaxQueueDepthThe maximum depth of the sink queues before overflow.
返回
true if the sample was enqueued to all sinks, false if one or more sinks overflowed.
参见
Flush

◆ Flush()

template<typename SampleType , typename SinkType = TMediaSampleSink<SampleType>>
void TMediaSampleSinks< SampleType, SinkType >::Flush ( )
inline

Flush all registered sinks.

This method will also remove expired sinks that haven't been removed yet.

参见
Enqueue

◆ Num()

template<typename SampleType , typename SinkType = TMediaSampleSink<SampleType>>
int32 TMediaSampleSinks< SampleType, SinkType >::Num ( ) const
inline

Get the number of sinks in this collection.

返回
Number of sinks.
参见
Add, Remove

◆ Remove()

template<typename SampleType , typename SinkType = TMediaSampleSink<SampleType>>
void TMediaSampleSinks< SampleType, SinkType >::Remove ( const TSharedRef< SinkType, ESPMode::ThreadSafe > &  SampleSink)
inline

Remove the given media sample sink from the collection.

参数
SampleSinkThe sink to remove.
参见
Add, Num

该类的文档由以下文件生成: