mediafmt.h File Reference
`#include <opal/buildopts.h>`
`#include <opal/mediatype.h>`
`#include <rtp/rtp.h>`
`#include <ptlib/videoio.h>`
`#include <limits>`

Go to the source code of this file.

## Data Structures

class | OpalMediaFormatList
class | OpalMediaOption
struct | OpalMediaOption::H245GenericInfo
class | OpalMediaOptionValue< T >
class | OpalMediaOptionNumericalValue< T >
class | OpalMediaOptionRealValue
class | OpalMediaOptionEnum
class | OpalMediaOptionString
class | OpalMediaOptionOctets
class | OpalMediaFormatInternal
class | OpalMediaFormat
class | OpalAudioFormatInternal
class | OpalAudioFormat
class | OpalVideoFormatInternal
class | OpalVideoFormat

## Macros

#define | OPAL_PCM16 "PCM-16"
#define | OPAL_PCM16S "PCM-16S"
#define | OPAL_PCM16_16KHZ "PCM-16-16kHz"
#define | OPAL_PCM16S_16KHZ "PCM-16S-16kHz"
#define | OPAL_PCM16_32KHZ "PCM-16-32kHz"
#define | OPAL_PCM16S_32KHZ "PCM-16S-32kHz"
#define | OPAL_PCM16_48KHZ "PCM-16-48kHz"
#define | OPAL_PCM16S_48KHZ "PCM-16S-48kHz"
#define | OPAL_L16_MONO_8KHZ "Linear-16-Mono-8kHz"
#define | OPAL_L16_STEREO_8KHZ "Linear-16-Stereo-8kHz"
#define | OPAL_L16_MONO_16KHZ "Linear-16-Mono-16kHz"
#define | OPAL_L16_STEREO_16KHZ "Linear-16-Stereo-16kHz"
#define | OPAL_L16_MONO_32KHZ "Linear-16-Mono-32kHz"
#define | OPAL_L16_STEREO_32KHZ "Linear-16-Stereo-32kHz"
#define | OPAL_L16_MONO_48KHZ "Linear-16-Mono-48kHz"
#define | OPAL_L16_STEREO_48KHZ "Linear-16-Stereo-48kHz"
#define | OPAL_G711_ULAW_64K "G.711-uLaw-64k"
#define | OPAL_G711_ALAW_64K "G.711-ALaw-64k"
#define | OPAL_G722 "G.722"
#define | OPAL_G7221 "G.722.1"
#define | OPAL_G7222 "G.722.2"
#define | OPAL_G726_40K "G.726-40K"
#define | OPAL_G726_32K "G.726-32K"
#define | OPAL_G726_24K "G.726-24K"
#define | OPAL_G726_16K "G.726-16K"
#define | OPAL_G728 "G.728"
#define | OPAL_G729 "G.729"
#define | OPAL_G729A "G.729A"
#define | OPAL_G729B "G.729B"
#define | OPAL_G729AB "G.729A/B"
#define | OPAL_G7231 "G.723.1"
#define | OPAL_G7231_6k3 OPAL_G7231
#define | OPAL_G7231_5k3 "G.723.1(5.3k)"
#define | OPAL_G7231A_6k3 "G.723.1A(6.3k)"
#define | OPAL_G7231A_5k3 "G.723.1A(5.3k)"
#define | OPAL_GSM0610 "GSM-06.10"
#define | OPAL_GSMAMR "GSM-AMR"
#define | OPAL_iLBC "iLBC"
#define | OPAL_H261 "H.261"
#define | OPAL_H263 "H.263"
#define | OPAL_H264 "H.264"
#define | OPAL_H264_MODE0 "H.264-0"
#define | OPAL_H264_MODE1 "H.264-1"
#define | OPAL_MPEG4 "MPEG4"
#define | OPAL_RFC2833 "UserInput/RFC2833"
#define | OPAL_CISCONSE "NamedSignalEvent"
#define | OPAL_T38 "T.38"
#define | OpalPCM16 GetOpalPCM16()
#define | OpalPCM16S GetOpalPCM16S()
#define | OpalPCM16_16KHZ GetOpalPCM16_16KHZ()
#define | OpalPCM16S_16KHZ GetOpalPCM16S_16KHZ()
#define | OpalPCM16_32KHZ GetOpalPCM16_32KHZ()
#define | OpalPCM16S_32KHZ GetOpalPCM16S_32KHZ()
#define | OpalPCM16_48KHZ GetOpalPCM16_48KHZ()
#define | OpalPCM16S_48KHZ GetOpalPCM16S_48KHZ()
#define | OpalL16_MONO_8KHZ GetOpalL16_MONO_8KHZ()
#define | OpalL16_STEREO_8KHZ GetOpalL16_STEREO_8KHZ()
#define | OpalL16_MONO_16KHZ GetOpalL16_MONO_16KHZ()
#define | OpalL16_STEREO_16KHZ GetOpalL16_STEREO_16KHZ()
#define | OpalL16_MONO_32KHZ GetOpalL16_MONO_32KHZ()
#define | OpalL16_STEREO_32KHZ GetOpalL16_STEREO_32KHZ()
#define | OpalL16_MONO_48KHZ GetOpalL16_MONO_48KHZ()
#define | OpalL16_STEREO_48KHZ GetOpalL16_STEREO_48KHZ()
#define | OpalG711_ULAW_64K GetOpalG711_ULAW_64K()
#define | OpalG711_ALAW_64K GetOpalG711_ALAW_64K()
#define | OpalG722 GetOpalG722()
#define | OpalG7221 GetOpalG7221()
#define | OpalG7222 GetOpalG7222()
#define | OpalG726_40K GetOpalG726_40K()
#define | OpalG726_32K GetOpalG726_32K()
#define | OpalG726_24K GetOpalG726_24K()
#define | OpalG726_16K GetOpalG726_16K()
#define | OpalG728 GetOpalG728()
#define | OpalG729 GetOpalG729()
#define | OpalG729A GetOpalG729A()
#define | OpalG729B GetOpalG729B()
#define | OpalG729AB GetOpalG729AB()
#define | OpalG7231_6k3 GetOpalG7231_6k3()
#define | OpalG7231_5k3 GetOpalG7231_5k3()
#define | OpalG7231A_6k3 GetOpalG7231A_6k3()
#define | OpalG7231A_5k3 GetOpalG7231A_5k3()
#define | OpalGSM0610 GetOpalGSM0610()
#define | OpalGSMAMR GetOpalGSMAMR()
#define | OpaliLBC GetOpaliLBC()
#define | OpalRFC2833 GetOpalRFC2833()
#define | OpalCiscoNSE GetOpalCiscoNSE()
#define | OpalT38 GetOpalT38()
#define | OpalL16Mono8kHz OpalL16_MONO_8KHZ
#define | OpalL16Mono16kHz OpalL16_MONO_16KHZ
#define | OpalG711uLaw OpalG711_ULAW_64K
#define | OpalG711ALaw OpalG711_ALAW_64K
#define | OPAL_T140 "T.140"
#define | OpalT140 GetOpalT140()
#define | OPAL_MSRP "MSRP"
#define | OpalMSRP GetOpalMSRP()
#define | OPAL_SIPIM "SIP-IM"
#define | OpalSIPIM GetOpalSIPIM()

## Typedefs

typedef OpalMediaOptionNumericalValue< bool > | OpalMediaOptionBoolean
typedef OpalMediaOptionNumericalValue< int > | OpalMediaOptionInteger
typedef OpalMediaOptionNumericalValue< unsigned > | OpalMediaOptionUnsigned
typedef OpalMediaOptionNumericalValue< OpalMediaOptionRealValue > | OpalMediaOptionReal

## Functions

| PLIST (OpalMediaFormatBaseList, OpalMediaFormat)
const OpalAudioFormat & | GetOpalPCM16 ()
const OpalAudioFormat & | GetOpalPCM16S ()
const OpalAudioFormat & | GetOpalPCM16_16KHZ ()
const OpalAudioFormat & | GetOpalPCM16S_16KHZ ()
const OpalAudioFormat & | GetOpalPCM16_32KHZ ()
const OpalAudioFormat & | GetOpalPCM16S_32KHZ ()
const OpalAudioFormat & | GetOpalPCM16_48KHZ ()
const OpalAudioFormat & | GetOpalPCM16S_48KHZ ()
const OpalAudioFormat & | GetOpalL16_MONO_8KHZ ()
const OpalAudioFormat & | GetOpalL16_STEREO_8KHZ ()
const OpalAudioFormat & | GetOpalL16_MONO_16KHZ ()
const OpalAudioFormat & | GetOpalL16_STEREO_16KHZ ()
const OpalAudioFormat & | GetOpalL16_MONO_32KHZ ()
const OpalAudioFormat & | GetOpalL16_STEREO_32KHZ ()
const OpalAudioFormat & | GetOpalL16_MONO_48KHZ ()
const OpalAudioFormat & | GetOpalL16_STEREO_48KHZ ()
const OpalAudioFormat & | GetOpalG711_ULAW_64K ()
const OpalAudioFormat & | GetOpalG711_ALAW_64K ()
const OpalAudioFormat & | GetOpalG722 ()
const OpalAudioFormat & | GetOpalG7221 ()
const OpalAudioFormat & | GetOpalG7222 ()
const OpalAudioFormat & | GetOpalG726_40K ()
const OpalAudioFormat & | GetOpalG726_32K ()
const OpalAudioFormat & | GetOpalG726_24K ()
const OpalAudioFormat & | GetOpalG726_16K ()
const OpalAudioFormat & | GetOpalG728 ()
const OpalAudioFormat & | GetOpalG729 ()
const OpalAudioFormat & | GetOpalG729A ()
const OpalAudioFormat & | GetOpalG729B ()
const OpalAudioFormat & | GetOpalG729AB ()
const OpalAudioFormat & | GetOpalG7231_6k3 ()
const OpalAudioFormat & | GetOpalG7231_5k3 ()
const OpalAudioFormat & | GetOpalG7231A_6k3 ()
const OpalAudioFormat & | GetOpalG7231A_5k3 ()
const OpalAudioFormat & | GetOpalGSM0610 ()
const OpalAudioFormat & | GetOpalGSMAMR ()
const OpalAudioFormat & | GetOpaliLBC ()
const OpalMediaFormat & | GetOpalRFC2833 ()
const OpalMediaFormat & | GetOpalT140 ()
const OpalMediaFormat & | GetOpalMSRP ()
const OpalMediaFormat & | GetOpalSIPIM ()

## Macro Definition Documentation

#define OPAL_CISCONSE "NamedSignalEvent"

#define OPAL_G711_ALAW_64K "G.711-ALaw-64k"

#define OPAL_G711_ULAW_64K "G.711-uLaw-64k"

#define OPAL_G722 "G.722"

#define OPAL_G7221 "G.722.1"

#define OPAL_G7222 "G.722.2"

#define OPAL_G7231 "G.723.1"

#define OPAL_G7231_5k3 "G.723.1(5.3k)"

#define OPAL_G7231_6k3 OPAL_G7231

#define OPAL_G7231A_5k3 "G.723.1A(5.3k)"

#define OPAL_G7231A_6k3 "G.723.1A(6.3k)"

#define OPAL_G726_16K "G.726-16K"

#define OPAL_G726_24K "G.726-24K"

#define OPAL_G726_32K "G.726-32K"

#define OPAL_G726_40K "G.726-40K"

#define OPAL_G728 "G.728"

#define OPAL_G729 "G.729"

#define OPAL_G729A "G.729A"

#define OPAL_G729AB "G.729A/B"

#define OPAL_G729B "G.729B"

#define OPAL_GSM0610 "GSM-06.10"

#define OPAL_GSMAMR "GSM-AMR"

#define OPAL_H261 "H.261"

#define OPAL_H263 "H.263"

#define OPAL_H264 "H.264"

#define OPAL_H264_MODE0 "H.264-0"

#define OPAL_H264_MODE1 "H.264-1"

#define OPAL_iLBC "iLBC"

#define OPAL_L16_MONO_16KHZ "Linear-16-Mono-16kHz"

#define OPAL_L16_MONO_32KHZ "Linear-16-Mono-32kHz"

#define OPAL_L16_MONO_48KHZ "Linear-16-Mono-48kHz"

#define OPAL_L16_MONO_8KHZ "Linear-16-Mono-8kHz"

#define OPAL_L16_STEREO_16KHZ "Linear-16-Stereo-16kHz"

#define OPAL_L16_STEREO_32KHZ "Linear-16-Stereo-32kHz"

#define OPAL_L16_STEREO_48KHZ "Linear-16-Stereo-48kHz"

#define OPAL_L16_STEREO_8KHZ "Linear-16-Stereo-8kHz"

#define OPAL_MPEG4 "MPEG4"

#define OPAL_MSRP "MSRP"

#define OPAL_PCM16 "PCM-16"

#define OPAL_PCM16_16KHZ "PCM-16-16kHz"

#define OPAL_PCM16_32KHZ "PCM-16-32kHz"

#define OPAL_PCM16_48KHZ "PCM-16-48kHz"

#define OPAL_PCM16S "PCM-16S"

#define OPAL_PCM16S_16KHZ "PCM-16S-16kHz"

#define OPAL_PCM16S_32KHZ "PCM-16S-32kHz"

#define OPAL_PCM16S_48KHZ "PCM-16S-48kHz"

#define OPAL_RFC2833 "UserInput/RFC2833"

#define OPAL_SIPIM "SIP-IM"

#define OPAL_T140 "T.140"

#define OPAL_T38 "T.38"

#define OpalCiscoNSE GetOpalCiscoNSE()

#define OpalG711_ALAW_64K GetOpalG711_ALAW_64K()

#define OpalG711_ULAW_64K GetOpalG711_ULAW_64K()

#define OpalG711ALaw OpalG711_ALAW_64K

#define OpalG711uLaw OpalG711_ULAW_64K

#define OpalG722 GetOpalG722()

#define OpalG7221 GetOpalG7221()

#define OpalG7222 GetOpalG7222()

#define OpalG7231_5k3 GetOpalG7231_5k3()

#define OpalG7231_6k3 GetOpalG7231_6k3()

#define OpalG7231A_5k3 GetOpalG7231A_5k3()

#define OpalG7231A_6k3 GetOpalG7231A_6k3()

#define OpalG726_16K GetOpalG726_16K()

#define OpalG726_24K GetOpalG726_24K()

#define OpalG726_32K GetOpalG726_32K()

#define OpalG726_40K GetOpalG726_40K()

#define OpalG728 GetOpalG728()

#define OpalG729 GetOpalG729()

#define OpalG729A GetOpalG729A()

#define OpalG729AB GetOpalG729AB()

#define OpalG729B GetOpalG729B()

#define OpalGSM0610 GetOpalGSM0610()

#define OpalGSMAMR GetOpalGSMAMR()

#define OpaliLBC GetOpaliLBC()

#define OpalL16_MONO_16KHZ GetOpalL16_MONO_16KHZ()

#define OpalL16_MONO_32KHZ GetOpalL16_MONO_32KHZ()

#define OpalL16_MONO_48KHZ GetOpalL16_MONO_48KHZ()

#define OpalL16_MONO_8KHZ GetOpalL16_MONO_8KHZ()

#define OpalL16_STEREO_16KHZ GetOpalL16_STEREO_16KHZ()

#define OpalL16_STEREO_32KHZ GetOpalL16_STEREO_32KHZ()

#define OpalL16_STEREO_48KHZ GetOpalL16_STEREO_48KHZ()

#define OpalL16_STEREO_8KHZ GetOpalL16_STEREO_8KHZ()

#define OpalL16Mono16kHz OpalL16_MONO_16KHZ

#define OpalL16Mono8kHz OpalL16_MONO_8KHZ

#define OpalMSRP GetOpalMSRP()

#define OpalPCM16 GetOpalPCM16()

#define OpalPCM16_16KHZ GetOpalPCM16_16KHZ()

#define OpalPCM16_32KHZ GetOpalPCM16_32KHZ()

#define OpalPCM16_48KHZ GetOpalPCM16_48KHZ()

#define OpalPCM16S GetOpalPCM16S()

#define OpalPCM16S_16KHZ GetOpalPCM16S_16KHZ()

#define OpalPCM16S_32KHZ GetOpalPCM16S_32KHZ()

#define OpalPCM16S_48KHZ GetOpalPCM16S_48KHZ()

#define OpalRFC2833 GetOpalRFC2833()

#define OpalSIPIM GetOpalSIPIM()

#define OpalT140 GetOpalT140()

#define OpalT38 GetOpalT38()

## Typedef Documentation

typedef OpalMediaOptionNumericalValue<bool> OpalMediaOptionBoolean

typedef OpalMediaOptionNumericalValue<int> OpalMediaOptionInteger

typedef OpalMediaOptionNumericalValue<OpalMediaOptionRealValue> OpalMediaOptionReal

typedef OpalMediaOptionNumericalValue<unsigned> OpalMediaOptionUnsigned

## Function Documentation

const OpalAudioFormat& GetOpalG711_ALAW_64K | ( |  | ) |

const OpalAudioFormat& GetOpalG711_ULAW_64K | ( |  | ) |

const OpalAudioFormat& GetOpalG722 | ( |  | ) |

const OpalAudioFormat& GetOpalG7221 | ( |  | ) |

const OpalAudioFormat& GetOpalG7222 | ( |  | ) |

const OpalAudioFormat& GetOpalG7231_5k3 | ( |  | ) |

const OpalAudioFormat& GetOpalG7231_6k3 | ( |  | ) |

const OpalAudioFormat& GetOpalG7231A_5k3 | ( |  | ) |

const OpalAudioFormat& GetOpalG7231A_6k3 | ( |  | ) |

const OpalAudioFormat& GetOpalG726_16K | ( |  | ) |

const OpalAudioFormat& GetOpalG726_24K | ( |  | ) |

const OpalAudioFormat& GetOpalG726_32K | ( |  | ) |

const OpalAudioFormat& GetOpalG726_40K | ( |  | ) |

const OpalAudioFormat& GetOpalG728 | ( |  | ) |

const OpalAudioFormat& GetOpalG729 | ( |  | ) |

const OpalAudioFormat& GetOpalG729A | ( |  | ) |

const OpalAudioFormat& GetOpalG729AB | ( |  | ) |

const OpalAudioFormat& GetOpalG729B | ( |  | ) |

const OpalAudioFormat& GetOpalGSM0610 | ( |  | ) |

const OpalAudioFormat& GetOpalGSMAMR | ( |  | ) |

const OpalAudioFormat& GetOpaliLBC | ( |  | ) |

const OpalAudioFormat& GetOpalL16_MONO_16KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_MONO_32KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_MONO_48KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_MONO_8KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_STEREO_16KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_STEREO_32KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_STEREO_48KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_STEREO_8KHZ | ( |  | ) |

const OpalMediaFormat& GetOpalMSRP | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16 | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16_16KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16_32KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16_48KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16S | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16S_16KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16S_32KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16S_48KHZ | ( |  | ) |

const OpalMediaFormat& GetOpalRFC2833 | ( |  | ) |

const OpalMediaFormat& GetOpalSIPIM | ( |  | ) |

const OpalMediaFormat& GetOpalT140 | ( |  | ) |

PLIST | ( | OpalMediaFormatBaseList | ,
|  | OpalMediaFormat |
| ) |  |