18 #include <utl/UtlInt.h> 19 #include <utl/UtlVoidPtr.h> 20 #include <utl/UtlString.h> 104 const char* codecModuleName,
112 UtlBoolean bStatic =
TRUE);
132 const UtlString& getModuleName()
const;
142 const UtlBoolean isStatic()
const;
193 const char* codecModuleName,
203 , mPlgGetInfo(plgGetInfo)
204 , mPlgGetPacketSamples(plgGetPacketSamples)
205 , mPlgDecode(plgDecode)
206 , mPlgEncode(plgEncode)
208 , mPlgSignaling(plgSignaling)
210 , mModuleName(moduleName)
228 #endif //_PlgStaff_h_ const dlPlgInitV1_2 mPlgInit
Definition: MpPlgStaffV1.h:151
int(* dlPlgDecodeV1)(void *handle, const void *pCodedData, unsigned cbCodedPacketSize, void *pAudioBuffer, unsigned cbBufferSize, unsigned *pcbDecodedSize, const struct RtpHeader *pRtpHeader)
Definition: PlgDefsV1.h:280
int(* dlPlgEncodeV1)(void *handle, const void *pAudioBuffer, unsigned cbAudioSamples, int *rSamplesConsumed, void *pCodedData, unsigned cbMaxCodedData, int *pcbCodedSize, unsigned *pbSendNow)
Definition: PlgDefsV1.h:283
const dlPlgDecodeV1 mPlgDecode
Definition: MpPlgStaffV1.h:154
MpCodecCallInfoV1(const char *moduleName, const char *codecModuleName, const dlPlgInitV1_2 plgInit, const dlPlgGetInfoV1_1 plgGetInfo, const dlPlgGetPacketSamplesV1_2 plgGetPacketSamples, const dlPlgDecodeV1 plgDecode, const dlPlgEncodeV1 plgEncode, const dlPlgFreeV1 plgFree, const dlPlgGetSignalingDataV1 plgSignaling, UtlBoolean bStatic=TRUE)
Constructor.
Definition: MpPlgStaffV1.h:192
const UtlString & getModuleName() const
Return module name.
Definition: MpPlgStaffV1.h:223
Very simple single-linked list implementation, used by codecs' loading infrastructure.
Definition: MpPlgStaffV1.h:39
int(* dlPlgGetInfoV1_1)(const struct MppCodecInfoV1_1 **codecInfo)
Definition: PlgDefsV1.h:271
Object-oriented wrapper for codec.
Definition: MpPlgStaffV1.h:94
const dlPlgGetPacketSamplesV1_2 mPlgGetPacketSamples
Definition: MpPlgStaffV1.h:153
MpStaticCodecSimpleList * mNext
Pointer to next element in list.
Definition: MpPlgStaffV1.h:85
MpCodecCallInfoV1 * getNext() const
Return pointer to next codec in the list.
Definition: MpPlgStaffV1.h:218
const dlPlgGetInfoV1_1 mPlgGetInfo
Definition: MpPlgStaffV1.h:152
MpStaticCodecSimpleList * getNext() const
Return pointer to next element.
Definition: MpPlgStaffV1.h:185
MpStaticCodecSimpleList()
Default Constructor.
Definition: MpPlgStaffV1.h:175
UtlBoolean mbStatic
Is codec compiled-in or dynamically loaded?
Definition: MpPlgStaffV1.h:163
UtlString mModuleName
Dynamic module name. Empty string for compiled-in codecs.
Definition: MpPlgStaffV1.h:164
int(* dlPlgFreeV1)(void *handle, int isDecoder)
Definition: PlgDefsV1.h:286
const dlPlgGetSignalingDataV1 mPlgSignaling
Definition: MpPlgStaffV1.h:157
const dlPlgFreeV1 mPlgFree
Definition: MpPlgStaffV1.h:156
MpStaticCodecSimpleList * bound(MpStaticCodecSimpleList *newItem)
Add this element head of the list and return pointer to it.
Definition: MpPlgStaffV1.h:179
int(* dlPlgGetPacketSamplesV1_2)(void *handle, const uint8_t *pPacketData, unsigned packetSize, unsigned *pNumSamples, const struct RtpHeader *pRtpHeader)
Definition: PlgDefsV1.h:275
const dlPlgEncodeV1 mPlgEncode
Definition: MpPlgStaffV1.h:155
int(* dlPlgGetSignalingDataV1)(void *handle, uint32_t *outEvent, uint32_t *outDuration, uint32_t *startStatus, uint32_t *stopStatus)
Definition: PlgDefsV1.h:273
void *(* dlPlgInitV1_2)(const char *fmtp, int isDecoder, struct MppCodecFmtpInfoV1_2 *pCodecFmtpInfo)
Definition: PlgDefsV1.h:272
#define TRUE
Definition: PlgDefsV1.h:41
const UtlBoolean isStatic() const
Is codec registered as static or dynamic?
Definition: MpPlgStaffV1.h:213