|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.media.BasicPlugIn
com.sun.media.BasicCodec
com.ibm.media.codec.audio.AudioCodec
net.java.sip.communicator.impl.media.codec.audio.speex.JavaEncoder
public class JavaEncoder
The Speex Encoder
| Field Summary | |
|---|---|
(package private) static int |
NARROW_BAND
|
(package private) static int |
ULTRA_WIDE_BAND
|
(package private) static int |
WIDE_BAND
|
| Fields inherited from class com.ibm.media.codec.audio.AudioCodec |
|---|
DEBUG, defaultOutputFormats, inputFormat, outputFormat, PLUGIN_NAME, supportedInputFormats, supportedOutputFormats |
| Fields inherited from class com.sun.media.BasicCodec |
|---|
inputFormats, opened, outputFormats, pendingEOM |
| Fields inherited from class com.sun.media.BasicPlugIn |
|---|
controls |
| 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 | |
|---|---|
JavaEncoder()
Creates the encoder and init supported formats |
|
| Method Summary | |
|---|---|
void |
close()
Does nothing. |
protected javax.media.Format[] |
getMatchingOutputFormats(javax.media.Format in)
Returns the output format that matches the supplied input format. |
void |
open()
Does nothing. |
int |
process(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
Process the input and encodes it. |
| Methods inherited from class com.ibm.media.codec.audio.AudioCodec |
|---|
checkFormat, getInputFormat, getName, getOutputFormat, getSupportedInputFormats, getSupportedOutputFormats, setInputFormat, setOutputFormat |
| Methods inherited from class com.sun.media.BasicCodec |
|---|
checkEOM, checkInputBuffer, getArrayElementSize, isEOM, processAtEOM, propagateEOM, reset, updateOutput, updateRGBFormat |
| Methods inherited from class com.sun.media.BasicPlugIn |
|---|
error, getClassForName, getControl, getControls, getInputData, getNativeData, getOutputData, matches, plugInExists, validateByteArraySize, validateData, validateIntArraySize, validateShortArraySize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Field Detail |
|---|
static final int NARROW_BAND
static final int WIDE_BAND
static final int ULTRA_WIDE_BAND
| Constructor Detail |
|---|
public JavaEncoder()
| Method Detail |
|---|
protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format in)
getMatchingOutputFormats in class com.ibm.media.codec.audio.AudioCodecin - input format
public void open()
open in interface javax.media.PlugInopen in class com.sun.media.BasicCodecpublic void close()
close in interface javax.media.PlugInclose in class com.sun.media.BasicCodec
public int process(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
process in interface javax.media.Codecprocess in class com.sun.media.BasicCodecinputBuffer - the input data.outputBuffer - the result data.
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||