OPAL  Version 3.10.10
Opal_G711_PCM Class Reference

#include <g711codec.h>

Inheritance diagram for Opal_G711_PCM:
OpalStreamedTranscoder OpalTranscoder OpalMediaFormatPair Opal_G711_ALaw_PCM Opal_G711_uLaw_PCM

Public Member Functions

 Opal_G711_PCM (const OpalMediaFormat &inputMediaFormat)
virtual PBoolean Convert (const RTP_DataFrame &input, RTP_DataFrame &output)
- Public Member Functions inherited from OpalStreamedTranscoder
 OpalStreamedTranscoder (const OpalMediaFormat &inputMediaFormat, const OpalMediaFormat &outputMediaFormat, unsigned inputBits, unsigned outputBits)
virtual PINDEX GetOptimalDataFrameSize (PBoolean input) const
virtual int ConvertOne (int sample) const =0
- Public Member Functions inherited from OpalTranscoder
 OpalTranscoder (const OpalMediaFormat &inputMediaFormat, const OpalMediaFormat &outputMediaFormat)
virtual bool UpdateMediaFormats (const OpalMediaFormat &inputMediaFormat, const OpalMediaFormat &outputMediaFormat)
virtual PBoolean ExecuteCommand (const OpalMediaCommand &command)
virtual PBoolean ConvertFrames (const RTP_DataFrame &input, RTP_DataFrameList &output)
PINDEX GetMaxOutputSize () const
void SetMaxOutputSize (PINDEX size)
void SetCommandNotifier (const PNotifier &notifier)
const PNotifier & GetCommandNotifier () const
void NotifyCommand (const OpalMediaCommand &command) const
 Notify command notifier of command.
unsigned GetSessionID () const
 Get session ID for the transcoder (from OpalMediaStream)
void SetSessionID (unsigned id)
 Set session ID for the transcoder (from OpalMediaStream)
virtual void SetInstanceID (const BYTE *instance, unsigned instanceLen)
RTP_DataFrame::PayloadTypes GetPayloadType (PBoolean input) const
virtual bool AcceptComfortNoise () const
virtual bool AcceptEmptyPayload () const
virtual bool AcceptOtherPayloads () const
virtual void GetStatistics (OpalMediaStatistics &statistics) const
void CopyTimestamp (RTP_DataFrame &dst, const RTP_DataFrame &src, bool inToOut) const
- Public Member Functions inherited from OpalMediaFormatPair
 OpalMediaFormatPair (const OpalMediaFormat &inputMediaFormat, const OpalMediaFormat &outputMediaFormat)
void PrintOn (ostream &strm) const
virtual Comparison Compare (const PObject &obj) const
const OpalMediaFormatGetInputFormat () const
const OpalMediaFormatGetOutputFormat () const

Protected Attributes

OpalG711_PLC plc
PINDEX lastPayloadSize
- Protected Attributes inherited from OpalStreamedTranscoder
unsigned inputBitsPerSample
unsigned outputBitsPerSample
- Protected Attributes inherited from OpalTranscoder
PINDEX maxOutputSize
PNotifier commandNotifier
PMutex updateMutex
unsigned m_sessionID
bool outputIsRTP
bool inputIsRTP
bool acceptEmptyPayload
bool acceptOtherPayloads
unsigned m_inClockRate
unsigned m_outClockRate
- Protected Attributes inherited from OpalMediaFormatPair
OpalMediaFormat inputMediaFormat
OpalMediaFormat outputMediaFormat

Additional Inherited Members

- Static Public Member Functions inherited from OpalTranscoder
static OpalTranscoderCreate (const OpalMediaFormat &srcFormat, const OpalMediaFormat &dstFormat, const BYTE *instance=NULL, unsigned instanceLen=0)
static bool SelectFormats (const OpalMediaType &mediaType, const OpalMediaFormatList &srcFormats, const OpalMediaFormatList &dstFormats, const OpalMediaFormatList &allFormats, OpalMediaFormat &srcFormat, OpalMediaFormat &dstFormat)
static bool FindIntermediateFormat (const OpalMediaFormat &srcFormat, const OpalMediaFormat &dstFormat, OpalMediaFormat &intermediateFormat)
static OpalMediaFormatList GetDestinationFormats (const OpalMediaFormat &srcFormat)
static OpalMediaFormatList GetSourceFormats (const OpalMediaFormat &dstFormat)
static OpalMediaFormatList GetPossibleFormats (const OpalMediaFormatList &formats)

Constructor & Destructor Documentation

Opal_G711_PCM::Opal_G711_PCM ( const OpalMediaFormat inputMediaFormat)

Member Function Documentation

virtual PBoolean Opal_G711_PCM::Convert ( const RTP_DataFrame input,
RTP_DataFrame output 
)
virtual

Convert the data from one format to another. This function takes the input data as a RTP_DataFrame and converts it to its output format, placing it into the RTP_DataFrame provided.

Returns false if the conversion fails.

Parameters
inputInput data
outputOutput data

Reimplemented from OpalStreamedTranscoder.

Field Documentation

PINDEX Opal_G711_PCM::lastPayloadSize
protected
OpalG711_PLC Opal_G711_PCM::plc
protected

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