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

java.lang.Object
  extended by 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


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

Constructor Detail

Encoder

public Encoder()
Method Detail

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.