H323PluginFramedAudioCodec Class Reference

Inheritance diagram for H323PluginFramedAudioCodec:

H323FramedAudioCodec H323AudioCodec H323Codec List of all members.

Public Member Functions

 H323PluginFramedAudioCodec (const OpalMediaFormat &fmtName, Direction direction, PluginCodec_Definition *_codec)
 ~H323PluginFramedAudioCodec ()
BOOL EncodeFrame (BYTE *buffer, unsigned int &toLen)
BOOL DecodeFrame (const BYTE *buffer, unsigned length, unsigned &written, unsigned &bytesDecoded)
void DecodeSilenceFrame (void *buffer, unsigned length)
virtual void SetTxQualityLevel (int qlevel)

Protected Attributes

void * context
PluginCodec_Definitioncodec

Detailed Description

Definition at line 1267 of file h323pluginmgr.cxx.


Member Function Documentation

BOOL H323PluginFramedAudioCodec::EncodeFrame ( BYTE *  buffer,
unsigned int &  toLen 
) [inline]

Parameters:
toLen  Buffer into which encoded bytes are placed Actual length of encoded data buffer

Definition at line 1278 of file h323pluginmgr.cxx.

References PluginCodec_Definition::_parm::audio, PluginCodec_Definition::_parm::_audio::bytesPerFrame, PluginCodec_Definition::codecFunction, PluginCodec_Definition::parm, and PluginCodec_Definition::_parm::_audio::samplesPerFrame.

BOOL H323PluginFramedAudioCodec::DecodeFrame ( const BYTE *  buffer,
unsigned  length,
unsigned &  written,
unsigned &  bytesOutput 
) [inline, virtual]

Decode a sample block from the buffer specified. The samples must be placed into the writeBuffer member variable. It is expected that exactly samplesPerFrame samples is decoded.

Parameters:
length  Buffer from which encoded data is found
written  Length of encoded data buffer
bytesOutput  Number of bytes used from data buffer Number of bytes output from frame

Reimplemented from H323FramedAudioCodec.

Definition at line 1294 of file h323pluginmgr.cxx.

References PluginCodec_Definition::codecFunction.

void H323PluginFramedAudioCodec::DecodeSilenceFrame ( void *  buffer,
unsigned  length 
) [inline, virtual]

Called when a frame is missed due to late arrival or other reasons By default, this function fills the buffer with silence

Parameters:
length  Buffer from which encoded data is found Length of encoded data buffer

Reimplemented from H323FramedAudioCodec.

Definition at line 1314 of file h323pluginmgr.cxx.

References PluginCodec_Definition::codecFunction, and PluginCodec_Definition::flags.

virtual void H323PluginFramedAudioCodec::SetTxQualityLevel ( int   )  [inline, virtual]

for codecs which support it, this sets the quality level of the transmitted audio. In order to have consistency between different codecs, the qlevel parameter is defined to range from 1 (good) to 31 (poor), even if the individual codec defines fewer levels than this.

Reimplemented from H323AudioCodec.

Definition at line 1330 of file h323pluginmgr.cxx.


The documentation for this class was generated from the following file:
Generated on Thu Oct 25 13:45:30 2007 for h323plus by  doxygen 1.5.2