#include <transcoders.h>
Inheritance diagram for OpalStreamedTranscoder:
Public Member Functions | |
Construction | |
OpalStreamedTranscoder (const OpalMediaFormat &inputMediaFormat, const OpalMediaFormat &outputMediaFormat, unsigned inputBits, unsigned outputBits, PINDEX optimalSamples) | |
Operations | |
virtual PINDEX | GetOptimalDataFrameSize (BOOL input) const |
virtual BOOL | Convert (const RTP_DataFrame &input, RTP_DataFrame &output) |
virtual int | ConvertOne (int sample) const =0 |
Protected Attributes | |
unsigned | inputBitsPerSample |
unsigned | outputBitsPerSample |
PINDEX | optimalSamples |
An application may create a descendent off this class and override functions as required for descibing a specific transcoder.
|
Create a new streamed transcoder implementation.
|
|
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.
Implements OpalTranscoder. |
|
Convert one sample from one format to another. This function takes the input data as a single sample value and converts it to its output format. Returns converted value. Implemented in Opal_G711_uLaw_PCM, Opal_PCM_G711_uLaw, Opal_G711_ALaw_PCM, Opal_PCM_G711_ALaw, Opal_G726_40_PCM, Opal_PCM_G726_40, Opal_G726_32_PCM, Opal_PCM_G726_32, Opal_G726_24_PCM, Opal_PCM_G726_24, Opal_G726_16_PCM, Opal_PCM_G726_16, Opal_Linear16Mono_PCM, and Opal_PCM_Linear16Mono. |
|
Get the optimal size for data frames to be converted. This function returns the size of frames that will be most efficient in conversion. A RTP_DataFrame will attempt to provide or use data in multiples of this size. Note that it may not do so, so the transcoder must be able to handle any sized packets.
Implements OpalTranscoder. |
|
|
|
|
|
|