sipxmedialib  Version 3.3
Protected Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
StreamQueueingFormatDecoder Class Reference

#include <StreamQueueingFormatDecoder.h>

Inheritance diagram for StreamQueueingFormatDecoder:
Inheritance graph
[legend]
Collaboration diagram for StreamQueueingFormatDecoder:
Collaboration graph
[legend]

Public Member Functions

Creators
 StreamQueueingFormatDecoder (StreamDataSource *pDataSource, int iQueueLength)
 
virtual ~StreamQueueingFormatDecoder ()
 
Manipulators
virtual OsStatus getFrame (unsigned short *samples)
 
virtual OsStatus queueFrame (const unsigned short *pSamples)
 returns OS_SUCCESS if a frame is available More...
 
virtual OsStatus queueEndOfFrames ()
 
virtual OsStatus drain ()
 
Accessors
int getMaxQueueLength ()
 
int getNumQueuedFrames ()
 
- Public Member Functions inherited from StreamFormatDecoder
 StreamFormatDecoder (StreamDataSource *pDataSource)
 
virtual ~StreamFormatDecoder ()
 
virtual OsStatus init ()=0
 
virtual OsStatus free ()=0
 
virtual OsStatus begin ()=0
 
virtual OsStatus end ()=0
 
void setListener (StreamDecoderListener *pListener)
 returns TRUE if a frame is available, otherwise false More...
 
virtual OsStatus toString (UtlString &string)=0
 
StreamDataSourcegetDataSource ()
 
virtual UtlBoolean isDecoding ()=0
 
virtual UtlBoolean validDecoder ()=0
 

Protected Member Functions

 StreamQueueingFormatDecoder (const StreamQueueingFormatDecoder &rStreamQueueingFormatDecoder)
 
StreamQueueingFormatDecoderoperator= (const StreamQueueingFormatDecoder &rhs)
 
- Protected Member Functions inherited from StreamFormatDecoder
 StreamFormatDecoder (const StreamFormatDecoder &rStreamFormatDecoder)
 
StreamFormatDecoderoperator= (const StreamFormatDecoder &rhs)
 
virtual void fireEvent (StreamDecoderEvent event)
 

Static Private Member Functions

static void reportFrame (UtlBoolean bUnderrun)
 
static void reportThrottle ()
 
static void reportStream ()
 

Private Attributes

OsMsgQ mMsgqFrames
 
OsMsgPool mMsgPool
 
int miMaxQueueLength
 
UtlBoolean mbReportThrottle
 
UtlBoolean mbDraining
 

Static Private Attributes

static OsMutex mMutReport
 
static time_t sLastReported = 0
 
static unsigned int sDeltaFrames = 0
 
static unsigned int sDeltaStreams = 0
 
static unsigned int sDeltaUnderruns = 0
 
static unsigned int sDeltaThrottles = 0
 
static unsigned int sTotalFrames = 0
 
static unsigned int sTotalStreams = 0
 
static unsigned int sTotalUnderruns = 0
 
static unsigned int sTotalThrottles = 0
 

Constructor & Destructor Documentation

StreamQueueingFormatDecoder ( StreamDataSource pDataSource,
int  iQueueLength 
)
StreamQueueingFormatDecoder ( const StreamQueueingFormatDecoder rStreamQueueingFormatDecoder)
protected

Member Function Documentation

OsStatus getFrame ( unsigned short *  samples)
virtual

Implements StreamFormatDecoder.

OsStatus queueFrame ( const unsigned short *  pSamples)
virtual

returns OS_SUCCESS if a frame is available

OsStatus queueEndOfFrames ( )
virtual
OsStatus drain ( )
virtual
int getMaxQueueLength ( )
int getNumQueuedFrames ( )
StreamQueueingFormatDecoder & operator= ( const StreamQueueingFormatDecoder rhs)
protected
void reportFrame ( UtlBoolean  bUnderrun)
staticprivate
void reportThrottle ( )
staticprivate
void reportStream ( )
staticprivate

Member Data Documentation

OsMsgQ mMsgqFrames
private
OsMsgPool mMsgPool
private
int miMaxQueueLength
private
UtlBoolean mbReportThrottle
private
UtlBoolean mbDraining
private
OsMutex mMutReport
staticprivate
time_t sLastReported = 0
staticprivate
unsigned int sDeltaFrames = 0
staticprivate
unsigned int sDeltaStreams = 0
staticprivate
unsigned int sDeltaUnderruns = 0
staticprivate
unsigned int sDeltaThrottles = 0
staticprivate
unsigned int sTotalFrames = 0
staticprivate
unsigned int sTotalStreams = 0
staticprivate
unsigned int sTotalUnderruns = 0
staticprivate
unsigned int sTotalThrottles = 0
staticprivate