# mediafmt.h File Reference

`#include <opal/buildopts.h>`
`#include <opal/mediatype.h>`
`#include <rtp/rtp.h>`
`#include <ptlib/bitwise_enum.h>`
`#include <ptlib/videoio.h>`
`#include <limits>`
`#include <codec/known.h>`

Include dependency graph for mediafmt.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

class | OpalBandwidth
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

## Defines

#define | OPAL_SET_MEDIA_OPTION_FMTP(opt, name, dflt) (opt)->SetFMTP(name, dflt)
#define | OPAL_SET_MEDIA_OPTION_H245(opt,) (opt)->SetH245Generic(OpalMediaOption::H245GenericInfo(__VA_ARGS__))
#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 OpalG7221_32K
#define | OpalG7221_24K GetOpalG7221_24K()
#define | OpalG7221_32K GetOpalG7221_32K()
#define | OpalG7221_48K GetOpalG7221_48K()
#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 | OpalH261 GetOpalH261()
#define | OpalH263 GetOpalH263()
#define | OpalH263plus GetOpalH263plus()
#define | OpalH264 GetOpalH264_MODE1()
#define | OpalH264_MODE0 GetOpalH264_MODE0()
#define | OpalH264_MODE1 GetOpalH264_MODE1()
#define | OpalMPEG4 GetOpalMPEG4()
#define | OpalL16Mono8kHz OpalL16_MONO_8KHZ
#define | OpalL16Mono16kHz OpalL16_MONO_16KHZ
#define | OpalG711uLaw OpalG711_ULAW_64K
#define | OpalG711ALaw OpalG711_ALAW_64K

## 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_24K ()
const OpalAudioFormat & | GetOpalG7221_32K ()
const OpalAudioFormat & | GetOpalG7221_48K ()
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 OpalVideoFormat & | GetOpalH261 ()
const OpalVideoFormat & | GetOpalH263 ()
const OpalVideoFormat & | GetOpalH263plus ()
const OpalVideoFormat & | GetOpalH264_MODE0 ()
const OpalVideoFormat & | GetOpalH264_MODE1 ()
const OpalVideoFormat & | GetOpalMPEG4 ()
const OpalMediaFormat & | GetOpalRFC2833 ()

## Define Documentation

#define OPAL_SET_MEDIA_OPTION_FMTP | ( | opt,
|  | name,
|  | dflt |  | ) | (opt)->SetFMTP(name, dflt)

#define OPAL_SET_MEDIA_OPTION_H245 | ( | opt |  | ) | (opt)->SetH245Generic(OpalMediaOption::H245GenericInfo(__VA_ARGS__))

#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 OpalG7221_32K

#define OpalG7221_24K GetOpalG7221_24K()

#define OpalG7221_32K GetOpalG7221_32K()

#define OpalG7221_48K GetOpalG7221_48K()

#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 OpalH261 GetOpalH261()

#define OpalH263 GetOpalH263()

#define OpalH263plus GetOpalH263plus()

#define OpalH264 GetOpalH264_MODE1()

#define OpalH264_MODE0 GetOpalH264_MODE0()

#define OpalH264_MODE1 GetOpalH264_MODE1()

#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 OpalMPEG4 GetOpalMPEG4()

#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 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_24K | ( |  | ) |

const OpalAudioFormat& GetOpalG7221_32K | ( |  | ) |

const OpalAudioFormat& GetOpalG7221_48K | ( |  | ) |

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 OpalVideoFormat& GetOpalH261 | ( |  | ) |

const OpalVideoFormat& GetOpalH263 | ( |  | ) |

const OpalVideoFormat& GetOpalH263plus | ( |  | ) |

const OpalVideoFormat& GetOpalH264_MODE0 | ( |  | ) |

const OpalVideoFormat& GetOpalH264_MODE1 | ( |  | ) |

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 OpalVideoFormat& GetOpalMPEG4 | ( |  | ) |

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

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