|
| virtual bool | Dequeue (TSharedPtr< SampleType, ESPMode::ThreadSafe > &OutSample) override |
| | Remove and return the next sample in the queue. 更多...
|
| |
| virtual bool | Enqueue (const TSharedRef< SampleType, ESPMode::ThreadSafe > &Sample) override |
| | Add a sample to the head of the queue. 更多...
|
| |
| int32 | Num () const |
| | Get the number of samples in the queue. 更多...
|
| |
| virtual bool | Peek (TSharedPtr< SampleType, ESPMode::ThreadSafe > &OutSample) override |
| | Peek at the next sample in the queue without removing it. 更多...
|
| |
| virtual bool | Pop () override |
| | Remove the next sample from the queue. 更多...
|
| |
| virtual void | RequestFlush () override |
| | Request to flush the queue. 更多...
|
| |
|
| TMediaSampleQueue () |
| | Default constructor.
|
| |
|
virtual | ~TMediaSampleQueue () |
| | Virtual destructor.
|
| |
| virtual bool | Enqueue (const TSharedRef< SampleType, ESPMode::ThreadSafe > &Sample)=0 |
| | Add a sample to the head of the queue. 更多...
|
| |
| virtual int32 | Num () const =0 |
| | Get the number of samples in the queue. 更多...
|
| |
| virtual void | RequestFlush ()=0 |
| | Request to flush the queue. 更多...
|
| |
|
virtual | ~TMediaSampleSink () |
| | Virtual destructor.
|
| |
| virtual bool | Dequeue (TSharedPtr< SampleType, ESPMode::ThreadSafe > &OutSample)=0 |
| | Remove and return the next sample in the queue. 更多...
|
| |
| virtual bool | Peek (TSharedPtr< SampleType, ESPMode::ThreadSafe > &OutSample)=0 |
| | Peek at the next sample in the queue without removing it. 更多...
|
| |
| virtual bool | Pop ()=0 |
| | Remove the next sample from the queue. 更多...
|
| |
|
virtual | ~TMediaSampleSource () |
| | Virtual destructor.
|
| |
template<typename SampleType, typename SinkType = TMediaSampleSink<SampleType>>
class TMediaSampleQueue< SampleType, SinkType >
Template for media sample queues.
template<typename SampleType , typename SinkType = TMediaSampleSink<SampleType>>
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!
- 返回
- Number of samples.
- 参见
- Enqueue, Dequeue, Peek
实现了 TMediaSampleSink< SampleType >.