net.java.sip.communicator.impl.neomedia.codec.audio.speex
Class JavaDecoder
java.lang.Object
net.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractCodec
net.java.sip.communicator.impl.neomedia.codec.audio.speex.JavaDecoder
- All Implemented Interfaces:
- javax.media.Codec, javax.media.Controls, javax.media.PlugIn
public class JavaDecoder
- extends net.sf.fmj.media.AbstractCodec
Speex to PCM java decoder
- Author:
- Damian Minkov
| Fields inherited from class net.sf.fmj.media.AbstractCodec |
inputFormat, inputFormats, opened, outputFormat |
| Fields inherited from interface javax.media.PlugIn |
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
|
Constructor Summary |
JavaDecoder()
Creates the decoder and inits supported input formats. |
|
Method Summary |
void |
close()
Does nothing. |
String |
getName()
Returns the name of this plugin/codec. |
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format in)
Return the list of formats supported at the output. |
void |
open()
Does nothing. |
int |
process(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
Process the input and decodes it. |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM, setInputFormat, setOutputFormat |
| Methods inherited from class net.sf.fmj.media.AbstractPlugIn |
reset |
| Methods inherited from class net.sf.fmj.media.AbstractControls |
addControl, getControl, getControls, removeControl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.PlugIn |
reset |
| Methods inherited from interface javax.media.Controls |
getControl, getControls |
DEFAULT_OUTPUT_FORMATS
protected javax.media.Format[] DEFAULT_OUTPUT_FORMATS
- Default output formats.
JavaDecoder
public JavaDecoder()
- Creates the decoder and inits supported input formats.
getName
public String getName()
- Returns the name of this plugin/codec.
- Specified by:
getName in interface javax.media.PlugIn- Overrides:
getName in class net.sf.fmj.media.AbstractPlugIn
- Returns:
- the name.
getSupportedOutputFormats
public javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
- Return the list of formats supported at the output.
- Specified by:
getSupportedOutputFormats in interface javax.media.Codec- Specified by:
getSupportedOutputFormats in class net.sf.fmj.media.AbstractCodec
- Parameters:
in - the input format.
- Returns:
- array of formats supported at output
open
public void open()
- Does nothing.
- Specified by:
open in interface javax.media.PlugIn- Overrides:
open in class net.sf.fmj.media.AbstractPlugIn
close
public void close()
- Does nothing.
- Specified by:
close in interface javax.media.PlugIn- Overrides:
close in class net.sf.fmj.media.AbstractPlugIn
process
public int process(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
- Process the input and decodes it.
- Specified by:
process in interface javax.media.Codec- Specified by:
process in class net.sf.fmj.media.AbstractCodec
- Parameters:
inputBuffer - the input data.outputBuffer - the result data.
- Returns:
- state of the process.
SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.