#include <vidcodec.h>
Inheritance diagram for OpalUncompVideoTranscoder:
Public Member Functions | |
Operations | |
virtual PINDEX | GetOptimalDataFrameSize (BOOL input) const |
virtual BOOL | ConvertFrames (const RTP_DataFrame &input, RTP_DataFrameList &output) |
OpalUncompVideoTranscoder::OpalUncompVideoTranscoder | ( | const OpalMediaFormat & | inputMediaFormat, | |
const OpalMediaFormat & | outputMediaFormat | |||
) |
Create a new video transcoder implementation.
inputMediaFormat | Input media format |
outputMediaFormat | Output media format |
OpalUncompVideoTranscoder::~OpalUncompVideoTranscoder | ( | ) |
Destroy the video transcoder cleaning up the colour converter.
OpalUncompVideoTranscoder::OpalUncompVideoTranscoder | ( | const OpalMediaFormat & | inputMediaFormat, | |
const OpalMediaFormat & | outputMediaFormat | |||
) |
Create a new video transcoder implementation.
inputMediaFormat | Input media format |
outputMediaFormat | Output media format |
OpalUncompVideoTranscoder::~OpalUncompVideoTranscoder | ( | ) |
Destroy the video transcoder cleaning up the colour converter.
virtual PINDEX OpalUncompVideoTranscoder::GetOptimalDataFrameSize | ( | BOOL | input | ) | const [virtual] |
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.
input | Flag for input or output data size |
Implements OpalTranscoder.
virtual BOOL OpalUncompVideoTranscoder::ConvertFrames | ( | const RTP_DataFrame & | input, | |
RTP_DataFrameList & | 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 (possibly) into multiple RTP_DataFrame objects.
The default behaviour makes sure the output list has only one element in it and calls the Convert() function.
Returns FALSE if the conversion fails.
input | Input data |
output | Output data |
Reimplemented from OpalTranscoder.
Reimplemented in OpalRFC4175Encoder, and OpalRFC4175Decoder.