OPAL
Version 3.18.8
|
#include <opalpluginmgr.h>
Inherits PObject.
Public Member Functions | |
virtual struct PluginCodec_Definition * | GetDefinition () |
virtual PString | GetInputFormat () const =0 |
virtual PString | GetOutputFormat () const =0 |
virtual int | Encode (const void *from, unsigned *fromLen, void *to, unsigned *toLen, unsigned int *flag)=0 |
virtual unsigned int | GetSampleRate () const =0 |
virtual unsigned int | GetBitsPerSec () const =0 |
virtual unsigned int | GetFrameTime () const =0 |
virtual unsigned int | GetSamplesPerFrame () const =0 |
virtual unsigned int | GetBytesPerFrame () const =0 |
virtual unsigned int | GetRecommendedFramesPerPacket () const =0 |
virtual unsigned int | GetMaxFramesPerPacket () const =0 |
virtual BYTE | GetRTPPayload () const =0 |
virtual PString | GetSDPFormat () const =0 |
Class for codcs which is accessible via the abstract factory functions. The code would be :
PFactory<OpalFactoryCodec>::CreateInstance(conversion);
to create an instance, where conversion is (eg) "L16:G.711-uLaw-64k"
|
pure virtual |
Take the supplied data and apply the conversion specified by CreateInstance call (above). When this method returns, toLen contains the number of bytes placed in the destination buffer.
from | pointer to the source data |
fromLen | number of bytes in the source data to process |
to | pointer to the destination buffer, which contains the output of the conversion |
toLen | Number of available bytes in the destination buffer |
flag | Typically, this is not used. |
|
pure virtual |
Return the bitsPerSec field of PluginCodec_Definition for this codec
|
pure virtual |
Return the bytesPerFrame field of PluginCodec_Definition for this codec
|
inlinevirtual |
Return the PluginCodec_Definition, which describes this codec
|
pure virtual |
Return the nmPerFrame field of PluginCodec_Definition for this codec
|
pure virtual |
Return the sourceFormat field of PluginCodec_Definition for this codec
|
pure virtual |
Return the maxFramesPerPacket field of PluginCodec_Definition for this codec
|
pure virtual |
Return the destFormat field of PluginCodec_Definition for this codec
|
pure virtual |
Return the recommendedFramesPerPacket field of PluginCodec_Definition for this codec
|
pure virtual |
Return the rtpPayload field of PluginCodec_Definition for this codec
|
pure virtual |
Return the sampleRate field of PluginCodec_Definition for this codec
|
pure virtual |
Return the samplesPerFrame field of PluginCodec_Definition for this codec
|
pure virtual |
Return the sampleRate field of PluginCodec_Definition for this codec