org.mobicents.media.server.impl.dsp.audio.g729
Class Decoder
java.lang.Object
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
| Fields inherited from interface org.mobicents.media.server.spi.dsp.Codec |
G729, GSM, LINEAR_AUDIO, PCMA, PCMU, SPEEX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Decoder
public Decoder()
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.