13 #ifndef _MpDecoderBase_h_ 14 #define _MpDecoderBase_h_ 22 #include "os/OsStatus.h" 50 const char* defaultFmtp);
59 OsStatus
initDecode(
const char* codecFmtString);
87 unsigned decodedBufferLength,
129 UtlBoolean &isStarted,
130 UtlBoolean &isStopped,
186 #endif // _MpDecoderBase_h_ OsStatus freeDecode()
Frees all memory allocated to the decoder by initDecode()
Definition: MpDecoderBase.cpp:61
MpDecoderBase & operator=(const MpDecoderBase &rhs)
Assignment operator.
~MpDecoderBase()
Destructor.
Definition: MpDecoderBase.cpp:33
OsStatus getSignalingData(uint8_t &event, UtlBoolean &isStarted, UtlBoolean &isStopped, uint16_t &duration)
Get signaling data from last decoded packet.
Definition: MpDecoderBase.cpp:165
const MpCodecInfo * getInfo() const
Get information about the decoder.
Definition: MpDecoderBase.cpp:150
Base class for all media processing decoders.
Definition: MpDecoderBase.h:37
Object-oriented wrapper for codec.
Definition: MpPlgStaffV1.h:94
int getPayloadType()
Returns the RTP payload type associated with this decoder.
Definition: MpDecoderBase.cpp:160
Smart pointer to MpRtpBuf.
Definition: MpRtpBuf.h:348
int16_t MpAudioSample
Definition: MpTypes.h:44
Static information describing a codec.
Definition: MpCodecInfo.h:35
int mPayloadType
RTP payload type associated with this decoder.
Definition: MpDecoderBase.h:163
bool isInitialized() const
Is codec initialized?
Definition: MpDecoderBase.h:181
MpDecoderBase(int payloadType, const MpCodecCallInfoV1 &callInfo, const MppCodecInfoV1_1 &codecInfo, const char *defaultFmtp)
Constructor.
Definition: MpDecoderBase.cpp:21
OsStatus initDecode()
Initializes a codec data structure for use as a decoder using default fmtp.
Definition: MpDecoderBase.cpp:56
int decode(const MpRtpBufPtr &pPacket, unsigned decodedBufferLength, MpAudioSample *samplesBuffer)
Decode incoming RTP packet.
Definition: MpDecoderBase.cpp:76
const MpCodecCallInfoV1 & mCallInfo
this codec.
Definition: MpDecoderBase.h:165
void * plgHandle
Codec internal handle.
Definition: MpDecoderBase.h:167
MpCodecInfo mCodecInfo
Info structure for this codec.
Definition: MpDecoderBase.h:164
const char * mDefaultFmtp
Fmtp to use if not passed to initDecode().
Definition: MpDecoderBase.h:168
Generic information about codec.
Definition: PlgDefsV1.h:169