#include <mediafmt.h>
Public Member Functions | |
Construction | |
OpalMediaFormatList () | |
OpalMediaFormatList (const OpalMediaFormat &format) | |
OpalMediaFormatList (const OpalMediaFormatList &l) | |
Operations | |
OpalMediaFormatList & | operator+= (const OpalMediaFormat &format) |
OpalMediaFormatList & | operator+= (const OpalMediaFormatList &formats) |
OpalMediaFormatList & | operator-= (const OpalMediaFormat &format) |
OpalMediaFormatList & | operator-= (const OpalMediaFormatList &formats) |
PINDEX | FindFormat (RTP_DataFrame::PayloadTypes rtpPayloadType, const unsigned clockRate, const char *rtpEncodingName=NULL) const |
PINDEX | FindFormat (const PString &wildcard) const |
BOOL | HasFormat (RTP_DataFrame::PayloadTypes rtpPayloadType) const |
BOOL | HasFormat (const PString &wildcard) const |
void | Remove (const PStringArray &mask) |
void | Reorder (const PStringArray &order) |
|
Create an empty media format list. |
|
Create a media format list with one media format in it.
|
|
Create a copy of a media format list. |
|
Get a format position in the list matching the wildcard. The wildcard string is a simple substring match using the '*' character. For example: "G.711*" would match "G.711-uLaw-64k" and "G.711-ALaw-64k". Returns P_MAX_INDEX if not in list.
|
|
Get a format position in the list matching the payload type. Returns P_MAX_INDEX if not in list.
|
|
Determine if a format matching the wildcard is in the list. The wildcard string is a simple substring match using the '*' character. For example: "G.711*" would match "G.711-uLaw-64k" and "G.711-ALaw-64k".
|
|
Determine if a format matching the payload type is in the list.
|
|
Add a format to the list. If the format is invalid or already in the list then it is not added.
|
|
Add a format to the list. If the format is invalid or already in the list then it is not added.
|
|
Remove a format to the list. If the format is invalid or not in the list then this does nothing.
|
|
Remove a format to the list. If the format is invalid or not in the list then this does nothing.
|
|
Remove all the formats specified. |
|
Reorder the formats in the list. The order variable is an array of wildcards and the list is reordered according to the order in that array. |