sipxmedialib  Version 3.3
Public Types | Private Attributes | List of all members
MpDecoderPayloadMap Class Reference

Helper class for MprDecode - it maps payload types to decoder instances. More...

#include <MpDecoderPayloadMap.h>

Collaboration diagram for MpDecoderPayloadMap:
Collaboration graph
[legend]

Public Types

enum  { NUM_PAYLOAD_TYPES = (1<<8) }
 

Public Member Functions

Creators
 MpDecoderPayloadMap ()
 Constructor. More...
 
Manipulators
void addPayloadType (int payloadType, MpDecoderBase *pDecoder)
 Add an RTP payload type to decoder instance mapping table. More...
 
void deletePayloadType (int payloadType)
 Remove an RTP payload type from decoder instance map. More...
 
Accessors
MpDecoderBasemapPayloadType (int payloadType) const
 Get decoder for this payload type. More...
 

Private Attributes

MpDecoderBasempPayloadMap [NUM_PAYLOAD_TYPES]
 Map RTP payload types to our decoders. More...
 

Detailed Description

Helper class for MprDecode - it maps payload types to decoder instances.

Member Enumeration Documentation

anonymous enum
Enumerator
NUM_PAYLOAD_TYPES 

Constructor & Destructor Documentation

Constructor.

Member Function Documentation

void addPayloadType ( int  payloadType,
MpDecoderBase pDecoder 
)

Add an RTP payload type to decoder instance mapping table.

void deletePayloadType ( int  payloadType)

Remove an RTP payload type from decoder instance map.

MpDecoderBase * mapPayloadType ( int  payloadType) const

Get decoder for this payload type.

Member Data Documentation

MpDecoderBase* mpPayloadMap[NUM_PAYLOAD_TYPES]
private

Map RTP payload types to our decoders.