org.mobicents.media.server.impl.dsp.audio.g729
Class Encoder
java.lang.Object
org.mobicents.media.server.impl.dsp.audio.g729.Encoder
- All Implemented Interfaces:
- org.mobicents.media.server.spi.dsp.Codec
public class Encoder
- extends java.lang.Object
- implements org.mobicents.media.server.spi.dsp.Codec
| Fields inherited from interface org.mobicents.media.server.spi.dsp.Codec |
G729, LINEAR_AUDIO, PCMA, PCMU, SPEEX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Encoder
public Encoder()
getSupportedInputFormats
public org.mobicents.media.Format[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormats in interface org.mobicents.media.server.spi.dsp.Codec
getSupportedOutputFormats
public org.mobicents.media.Format[] getSupportedOutputFormats(org.mobicents.media.Format fmt)
- Specified by:
getSupportedOutputFormats in interface org.mobicents.media.server.spi.dsp.Codec
getSupportedInputFormats
public org.mobicents.media.Format[] getSupportedInputFormats(org.mobicents.media.Format fmt)
- Specified by:
getSupportedInputFormats in interface org.mobicents.media.server.spi.dsp.Codec
getSupportedOutputFormats
public org.mobicents.media.Format[] getSupportedOutputFormats()
- Specified by:
getSupportedOutputFormats in interface org.mobicents.media.server.spi.dsp.Codec
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.
processTestDecoderWithFileITUEncoded
public void processTestDecoderWithFileITUEncoded(org.mobicents.media.Buffer buffer)
processTestFileWithoutDecoding
public void processTestFileWithoutDecoding(org.mobicents.media.Buffer buffer)
Copyright © 2008. All Rights Reserved.