Yate
Public Types | Static Public Member Functions | Static Public Attributes

IAXFormat Class Reference

Wrapper class for audio and video formats. More...

#include <yateiax.h>

List of all members.

Public Types

enum  Audio {
  G723_1 = (1 << 0), GSM = (1 << 1), ULAW = (1 << 2), ALAW = (1 << 3),
  MP3 = (1 << 4), ADPCM = (1 << 5), SLIN = (1 << 6), LPC10 = (1 << 7),
  G729A = (1 << 8), SPEEX = (1 << 9), ILBC = (1 << 10)
}
enum  Video { JPEG = (1 << 16), PNG = (1 << 17), H261 = (1 << 18), H263 = (1 << 19) }

Static Public Member Functions

static void formatList (String &dest, u_int32_t formats, char sep= ',')
static const char * audioText (u_int32_t audio)
static const char * videoText (u_int32_t video)

Static Public Attributes

static TokenDict audioData []
static TokenDict videoData []

Detailed Description

Wrapper class for audio and video formats.

This class holds the enumeration values for audio and video formats


Member Enumeration Documentation

enum Audio

Audio format enumeration types

enum Video

Video format enumeration types


Member Function Documentation

static const char* audioText ( u_int32_t  audio) [inline, static]

Get the text associated with an audio format

Parameters:
audioThe desired format
Returns:
A pointer to the text associated with the format or 0 if the format doesn't exist

References TelEngine::lookup().

static void formatList ( String dest,
u_int32_t  formats,
char  sep = ',' 
) [static]

Create a string list from formats

Parameters:
destThe destination
formatsThe formats
sepThe separator to use
static const char* videoText ( u_int32_t  video) [inline, static]

Get the text associated with a video format

Parameters:
videoThe desired format
Returns:
A pointer to the text associated with the format or 0 if the format doesn't exist

References TelEngine::lookup().


Member Data Documentation

TokenDict audioData[] [static]

Keep the texts associated with the audio formats

TokenDict videoData[] [static]

Keep the texts associated with the video formats


The documentation for this class was generated from the following file: