OPAL  Version 3.10.10
OpalMediaStreamPacing Class Reference

#include <mediastrm.h>

Inheritance diagram for OpalMediaStreamPacing:
OpalFileMediaStream OpalLocalMediaStream OpalNullMediaStream

Public Member Functions

 OpalMediaStreamPacing (const OpalMediaFormat &mediaFormat)
 
void Pace (bool reading, PINDEX bytes, bool &marker)
 Delay appropriate time for the written bytes. More...
 

Protected Attributes

bool m_isAudio
 
unsigned m_frameTime
 
PINDEX m_frameSize
 
unsigned m_timeUnits
 
PAdaptiveDelay m_delay
 

Detailed Description

This is a helper class to delay the right time for non I/O bound streams.

Constructor & Destructor Documentation

OpalMediaStreamPacing::OpalMediaStreamPacing ( const OpalMediaFormat mediaFormat)
Parameters
mediaFormatMedia format for stream

Member Function Documentation

void OpalMediaStreamPacing::Pace ( bool  reading,
PINDEX  bytes,
bool &  marker 
)

Delay appropriate time for the written bytes.

Parameters
readingAre reading from medium
bytesBytes read/written
markerRTP Marker

Field Documentation

PAdaptiveDelay OpalMediaStreamPacing::m_delay
protected
PINDEX OpalMediaStreamPacing::m_frameSize
protected
unsigned OpalMediaStreamPacing::m_frameTime
protected
bool OpalMediaStreamPacing::m_isAudio
protected
unsigned OpalMediaStreamPacing::m_timeUnits
protected

The documentation for this class was generated from the following file: