#include <transcoders.h>
Inheritance diagram for OpalTranscoder:
An application may create a descendent off this class and override functions as required for implementing a transcoder.
|
Create a new 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.
Implemented in Opal_GSM0610_PCM, OpalVideoTranscoder, OpalFramedTranscoder, and OpalStreamedTranscoder. |
|
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.
Reimplemented in Opal_H261_YUV420P, Opal_YUV420P_H261, and OpalUncompVideoTranscoder. |
|
Create an instance of a media conversion function. Returns NULL if there is no registered media transcoder between the two named formats.
|
|
Execute the command specified to the transcoder. The commands are highly context sensitive, for example VideoFastUpdate would only apply to a video transcoder. The default behaviour simply returns FALSE.
Reimplemented in OpalVideoTranscoder. |
|
Find media intermediate format for transcoders. This function attempts to find the intermediate media format that will allow two transcoders to be used to get data from the source format to the destination format. Returns FALSE if there is no registered media transcoder that can be used between the two named formats.
|
|
Get the notifier to receive commands generated by the transcoder. The commands are highly context sensitive, for example VideoFastUpdate would only apply to a video transcoder. |
|
Get a list of possible destination media formats for the destination.
|
|
Get maximum output size. |
|
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.
Implemented in Opal_H261_YUV420P, Opal_YUV420P_H261, OpalUncompVideoTranscoder, OpalFramedTranscoder, and OpalStreamedTranscoder. |
|
Get a list of possible media formats that can do bi-directional media.
|
|
Get a list of possible source media formats for the destination.
|
|
Find media format(s) for transcoders. This function attempts to find and intermediate media format that will allow two transcoders to be used to get data from the source format to the destination format. There could be many possible matches between the two lists, so preference is given to the order of the destination formats. Returns FALSE if there is no registered media transcoder that can be used between the two named formats.
|
|
Set a notifier to receive commands generated by the transcoder. The commands are highly context sensitive, for example VideoFastUpdate would only apply to a video transcoder.
|
|
Set the maximum output size. |
|
|
|
Update the output media format. This can be used to adjust the parameters of a codec at run time. Note you cannot change the basic media format, eg change GSM0610 to G.711, only options for that format, eg 6k3 mode to 5k3 mode in G.723.1. The default behaviour updates the outputMediaFormat member variable and sets the outputMediaFormatUpdated flag.
Reimplemented in OpalVideoTranscoder. |
|
|
|
|
|
|
|
|
|
|