# mediafmt.h File Reference

`#include <opal/buildopts.h>`
`#include <opal/mediatype.h>`
`#include <rtp/rtp.h>`
`#include <limits>`

Go to the source code of this file.

## Classes

class | OpalMediaFormatList
class | OpalMediaOption
class | OpalMediaOptionValue< T >
class | OpalMediaOptionEnum
class | OpalMediaOptionString
class | OpalMediaOptionOctets
class | OpalMediaFormatInternal
class | OpalMediaFormat
class | OpalAudioFormatInternal
class | OpalAudioFormat

## Defines

#define | OPAL_PCM16 "PCM-16"
#define | OPAL_PCM16_16KHZ "PCM-16-16kHz"
#define | OPAL_L16_MONO_8KHZ "Linear-16-Mono-8kHz"
#define | OPAL_L16_MONO_16KHZ "Linear-16-Mono-16kHz"
#define | OPAL_G711_ULAW_64K "G.711-uLaw-64k"
#define | OPAL_G711_ALAW_64K "G.711-ALaw-64k"
#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_RFC2833 "UserInput/RFC2833"
#define | OPAL_CISCONSE "NamedSignalEvent"
#define | OPAL_T38 "T.38"
#define | OPAL_H224 "H.224"
#define | OpalPCM16 GetOpalPCM16()
#define | OpalPCM16_16KHZ GetOpalPCM16_16KHZ()
#define | OpalL16_MONO_8KHZ GetOpalL16_MONO_8KHZ()
#define | OpalL16_MONO_16KHZ GetOpalL16_MONO_16KHZ()
#define | OpalL16_STEREO_48KHZ GetOpalL16_STEREO_48KHZ()
#define | OpalG711_ULAW_64K GetOpalG711_ULAW_64K()
#define | OpalG711_ALAW_64K GetOpalG711_ALAW_64K()
#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

## Typedefs

typedef OpalMediaOptionValue< bool > | OpalMediaOptionBoolean
typedef OpalMediaOptionValue< int > | OpalMediaOptionInteger
typedef OpalMediaOptionValue< unsigned > | OpalMediaOptionUnsigned
typedef OpalMediaOptionValue< double > | OpalMediaOptionReal

## Functions

| PLIST (OpalMediaFormatBaseList, OpalMediaFormat)
const OpalAudioFormat & | GetOpalPCM16 ()
const OpalAudioFormat & | GetOpalPCM16_16KHZ ()
const OpalAudioFormat & | GetOpalL16_MONO_8KHZ ()
const OpalAudioFormat & | GetOpalL16_MONO_16KHZ ()
const OpalAudioFormat & | GetOpalL16_STEREO_48KHZ ()
const OpalAudioFormat & | GetOpalG711_ULAW_64K ()
const OpalAudioFormat & | GetOpalG711_ALAW_64K ()
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 ()

## Define 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_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_H224 "H.224"

#define OPAL_iLBC "iLBC"

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

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

#define OPAL_PCM16 "PCM-16"

#define OPAL_PCM16_16KHZ "PCM-16-16kHz"

#define OPAL_RFC2833 "UserInput/RFC2833"

#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 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_8KHZ GetOpalL16_MONO_8KHZ()

#define OpalL16_STEREO_48KHZ GetOpalL16_STEREO_48KHZ()

#define OpalL16Mono16kHz OpalL16_MONO_16KHZ

#define OpalL16Mono8kHz OpalL16_MONO_8KHZ

#define OpalPCM16 GetOpalPCM16()

#define OpalPCM16_16KHZ GetOpalPCM16_16KHZ()

#define OpalRFC2833 GetOpalRFC2833()

#define OpalT38 GetOpalT38()

## Typedef Documentation

typedef OpalMediaOptionValue<bool> OpalMediaOptionBoolean

typedef OpalMediaOptionValue<int> OpalMediaOptionInteger

typedef OpalMediaOptionValue<double> OpalMediaOptionReal

typedef OpalMediaOptionValue<unsigned> OpalMediaOptionUnsigned

## Function Documentation

const OpalAudioFormat& GetOpalG711_ALAW_64K | ( |  | ) |

const OpalAudioFormat& GetOpalG711_ULAW_64K | ( |  | ) |

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_8KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalL16_STEREO_48KHZ | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16 | ( |  | ) |

const OpalAudioFormat& GetOpalPCM16_16KHZ | ( |  | ) |

const OpalMediaFormat& GetOpalRFC2833 | ( |  | ) |

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