14 #ifndef _MpEncoderBase_h_ 15 #define _MpEncoderBase_h_ 20 #include "os/OsStatus.h" 48 const char* defaultFmtp);
89 int& rSamplesConsumed,
90 unsigned char* pCodeBuf,
93 UtlBoolean& isPacketReady,
94 UtlBoolean& isPacketSilent,
95 UtlBoolean& shouldSetMarker);
167 #endif // _MpEncoderBase_h_ OsStatus encode(const MpAudioSample *pAudioSamples, const int numSamples, int &rSamplesConsumed, unsigned char *pCodeBuf, const int bytesLeft, int &rSizeInBytes, UtlBoolean &isPacketReady, UtlBoolean &isPacketSilent, UtlBoolean &shouldSetMarker)
Encode audio samples.
Definition: MpEncoderBase.cpp:93
~MpEncoderBase()
Destructor.
Definition: MpEncoderBase.cpp:34
Object-oriented wrapper for codec.
Definition: MpPlgStaffV1.h:94
Base class for all media processing encoders.
Definition: MpEncoderBase.h:35
int getPayloadType()
Returns the RTP payload type associated with this encoder.
Definition: MpEncoderBase.cpp:158
MpEncoderBase(int payloadType, const MpCodecCallInfoV1 &callInfo, const MppCodecInfoV1_1 &codecInfo, const char *defaultFmtp)
Constructor.
Definition: MpEncoderBase.cpp:22
int16_t MpAudioSample
Definition: MpTypes.h:44
const MpCodecCallInfoV1 & mCallInfo
Actual codec's manipulator functions.
Definition: MpEncoderBase.h:153
void * plgHandle
Internal codec handle.
Definition: MpEncoderBase.h:152
Static information describing a codec.
Definition: MpCodecInfo.h:35
const MpCodecInfo * getInfo() const
Get static information about the encoder.
Definition: MpEncoderBase.cpp:149
OsStatus initEncode()
Initializes encoder with default fmtp parameters.
Definition: MpEncoderBase.cpp:76
MpEncoderBase & operator=(const MpEncoderBase &rhs)
Assignment operator.
const char * mDefaultFmtp
Default fmtp string.
Definition: MpEncoderBase.h:155
OsStatus freeEncode()
Frees all memory allocated to the encoder by initEncode()
Definition: MpEncoderBase.cpp:81
int mPayloadType
RTP payload type, associated with this codec.
Definition: MpEncoderBase.h:150
UtlBoolean mInitialized
Is codec initialized?
Definition: MpEncoderBase.h:154
MpCodecInfo mCodecInfo
Codec info structure.
Definition: MpEncoderBase.h:151
Generic information about codec.
Definition: PlgDefsV1.h:169