13 #ifndef _SdpCodecList_h_ 14 #define _SdpCodecList_h_ 19 #include <utl/UtlDList.h> 20 #include <os/OsRWMutex.h> 68 int addCodecs(
const UtlString &codecList);
78 int addCodecs(
int numTokens,
const char* codecTokens[],
int payloadIds[]);
140 const char* MIMESubType,
143 const UtlString &fmtp)
const;
159 const char* MIMEType)
const;
164 const char* MIMEType,
165 const char* subMimeType)
const;
174 void toString(UtlString& serializedFactory)
const;
207 #endif // _SdpCodecList_h_ SdpCodecTypes
Unique identifier used for each supported codec.
Definition: SdpCodec.h:133
virtual ~SdpCodecList()
Destructor.
Definition: SdpCodecList.cpp:58
int getCodecCount() const
Get the number of codecs.
Definition: SdpCodecList.cpp:657
void limitCodecs(const SdpCodecList &includeOnlyCodecList)
Remove any codecs in this list that are not equivalent to those in the given list.
Definition: SdpCodecList.cpp:401
const SdpCodec * getCodecByType(int payloadTypeId, UtlBoolean shouldLock=TRUE) const
Get a codec given the payload type id.
Definition: SdpCodecList.cpp:467
static void freeArray(int arraySize, SdpCodec **&codecArray)
Frees up codecs and codec pointer array.
Definition: SdpCodecList.cpp:785
OsRWMutex mReadWriteMutex
Definition: SdpCodecList.h:200
int mCodecCPULimit
Definition: SdpCodecList.h:201
List of codecs, used for storing supported codecs and for codec negotiation.
Definition: SdpCodecList.h:32
void clearCodecs(void)
Clear the list.
Definition: SdpCodecList.cpp:425
Container for SDP/RTP codec specification.
Definition: SdpCodec.h:123
void addCodecs(int numCodecs, SdpCodec *newCodecs[])
Add copies of the array of codecs.
Definition: SdpCodecList.cpp:93
void setCodecCPULimit(int iLimit)
Limits the advertised codec by CPU limit level.
Definition: SdpCodecList.cpp:432
void bindPayloadTypes()
Assign any unset payload type ids.
Definition: SdpCodecList.cpp:277
SdpCodecList(int numCodecs=0, SdpCodec *codecArray[]=NULL)
Constructor.
Definition: SdpCodecList.cpp:43
void toString(UtlString &serializedFactory) const
String representation of factory and codecs.
Definition: SdpCodecList.cpp:797
void copyPayloadTypes(int numCodecs, const SdpCodec *codecArray[])
For all matching codecs, copy the payload type from the codecArray to the matching codec in this fact...
Definition: SdpCodecList.cpp:381
UtlBoolean containsCodec(const SdpCodec &codec, UtlBoolean exeact=FALSE) const
Query if equivalent codec is in the list.
Definition: SdpCodecList.cpp:827
void copyPayloadType(const SdpCodec &codec)
If there is a matching codec in this factory, set its payload type to that of the given codec...
Definition: SdpCodecList.cpp:329
void getCodecs(int &numCodecs, SdpCodec **&codecArray) const
Get codecs from this list, taking into account maximum CPU cost.
Definition: SdpCodecList.cpp:701
int unbindPayloadType(int payloadId)
unbind any codec with the given dynamic payload type
Definition: SdpCodecList.cpp:311
SdpCodecList & operator=(const SdpCodecList &rhs)
Assignment operator.
Definition: SdpCodecList.cpp:66
void addCodec(const SdpCodec &newCodec)
Add a new codec type to the list of known codecs.
Definition: SdpCodecList.cpp:87
void addCodecNoLock(const SdpCodec &newCodec)
Add a new codec type to the list of known codecs (without locking).
Definition: SdpCodecList.cpp:860
int getCodecCPULimit() const
Gets the codec CPU limit level.
Definition: SdpCodecList.cpp:819
const SdpCodec * getCodec(SdpCodec::SdpCodecTypes internalCodecId) const
Get a codec given an internal codec id.
Definition: SdpCodecList.cpp:441
UtlDList mCodecs
Definition: SdpCodecList.h:199