|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.dsp.audio.speex.Encoder
public class Encoder
Implements Speex narrow band, 8kHz compressor.
| Field Summary |
|---|
| Fields inherited from interface org.mobicents.media.server.spi.dsp.Codec |
|---|
G729, GSM, LINEAR_AUDIO, PCMA, PCMU, SPEEX |
| Constructor Summary | |
|---|---|
Encoder()
|
|
| Method Summary | |
|---|---|
int |
getMode()
Gets the mode of the codec. |
int |
getQuality()
Gets the quality value. |
org.mobicents.media.Format |
getSupportedInputFormat()
(Non Java-doc) |
org.mobicents.media.Format |
getSupportedOutputFormat()
(Non Java-doc) |
void |
process(org.mobicents.media.Buffer buffer)
(Non Java-doc) |
int |
process(byte[] media,
int offset,
int length,
byte[] dest)
Perform compression. |
void |
setMode(int mode)
Sets the mode of codec. |
void |
setQuality(int quality)
Modify quality value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Encoder()
| Method Detail |
|---|
public int getMode()
public void setMode(int mode)
mode - the new mode valuepublic int getQuality()
public void setQuality(int quality)
quality - integer value in range 0..10 which shows the quality.public org.mobicents.media.Format getSupportedInputFormat()
getSupportedInputFormat in interface org.mobicents.media.server.spi.dsp.Codecorg.mobicents.media.server.impl.jmf.dsp.Codec#getSupportedFormat().public org.mobicents.media.Format getSupportedOutputFormat()
getSupportedOutputFormat in interface org.mobicents.media.server.spi.dsp.Codecorg.mobicents.media.server.impl.jmf.dsp.Codec#getSupportedFormat().public void process(org.mobicents.media.Buffer buffer)
process in interface org.mobicents.media.server.spi.dsp.Codecorg.mobicents.media.server.impl.jmf.dsp.Codec#process(Buffer).
public int process(byte[] media,
int offset,
int length,
byte[] dest)
media - input media
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||