org.mobicents.media.server.spi.dsp
Interface Processor


public interface Processor

Digital signaling processor. DSP transforms media from its original format to one of the specified output format. Output formats are specified as array where order of the formats defines format's priority. If frame has format matching to output format the frame won't be changed.

Author:
kulikov

Method Summary
 Codec[] getCodecs()
          Gets the list of supported codecs.
 Frame process(Frame frame)
          Transforms supplied frame if frame's format does not match to any of the supported output formats and such transcoding is possible.
 void setFormats(Formats formats)
          Sets the list of supported output formats.
 

Method Detail

getCodecs

Codec[] getCodecs()
Gets the list of supported codecs.

Returns:
array of codecs

setFormats

void setFormats(Formats formats)
Sets the list of supported output formats.

Parameters:
formats - the list of formats sorted by format priority.

process

Frame process(Frame frame)
Transforms supplied frame if frame's format does not match to any of the supported output formats and such transcoding is possible.

Parameters:
frame - the frame for transcoding
Returns:
transcoded frame


Copyright © 2011. All Rights Reserved.