org.mobicents.media.server.impl.dsp.audio.g729
Class Decoder

java.lang.Object
  extended by org.mobicents.media.server.impl.dsp.audio.g729.Decoder
All Implemented Interfaces:
java.io.Serializable, org.mobicents.media.server.spi.dsp.Codec

public class Decoder
extends java.lang.Object
implements org.mobicents.media.server.spi.dsp.Codec

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.mobicents.media.server.spi.dsp.Codec
G729, GSM, LINEAR_AUDIO, PCMA, PCMU, SPEEX
 
Constructor Summary
Decoder()
           
 
Method Summary
 org.mobicents.media.Format getSupportedInputFormat()
           
 org.mobicents.media.Format[] getSupportedInputFormats(org.mobicents.media.Format fmt)
           
 org.mobicents.media.Format getSupportedOutputFormat()
           
 org.mobicents.media.Format[] getSupportedOutputFormats()
           
 void process(org.mobicents.media.Buffer buffer)
           
 byte[] process(byte[] media)
          Perform compression.
 void setProc(org.mobicents.media.server.spi.dsp.SignalingProcessor processor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decoder

public Decoder()
Method Detail

getSupportedInputFormat

public org.mobicents.media.Format getSupportedInputFormat()
Specified by:
getSupportedInputFormat in interface org.mobicents.media.server.spi.dsp.Codec

getSupportedOutputFormat

public org.mobicents.media.Format getSupportedOutputFormat()
Specified by:
getSupportedOutputFormat in interface org.mobicents.media.server.spi.dsp.Codec

getSupportedInputFormats

public org.mobicents.media.Format[] getSupportedInputFormats(org.mobicents.media.Format fmt)

getSupportedOutputFormats

public org.mobicents.media.Format[] getSupportedOutputFormats()

process

public void process(org.mobicents.media.Buffer buffer)
Specified by:
process in interface org.mobicents.media.server.spi.dsp.Codec

process

public byte[] process(byte[] media)
Perform compression.

Parameters:
input - media
Returns:
compressed media.

setProc

public void setProc(org.mobicents.media.server.spi.dsp.SignalingProcessor processor)
Specified by:
setProc in interface org.mobicents.media.server.spi.dsp.Codec


Copyright © 2009. All Rights Reserved.