|
Jitsi: 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.Objectnet.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractCodec
net.java.sip.communicator.impl.neomedia.codec.AbstractCodecExt
net.java.sip.communicator.impl.neomedia.codec.audio.speex.JavaEncoder
public class JavaEncoder
The Speex Encoder
| Field Summary | |
|---|---|
(package private) static int |
NARROW_BAND
Narrow band used for 8 kHz. |
(package private) static int |
ULTRA_WIDE_BAND
Utra wide band used for 32 kHz. |
(package private) static int |
WIDE_BAND
Wide band used for 16 kHz. |
| 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 | |
|---|---|
JavaEncoder()
Creates the encoder and init supported formats |
|
| Method Summary | |
|---|---|
void |
doClose()
Does nothing. |
void |
doOpen()
Opens this Codec and acquires the resources that it needs to operate. |
protected int |
doProcess(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
Process the input and encodes it. |
protected javax.media.Format[] |
getMatchingOutputFormats(javax.media.Format in)
Returns the output format that matches the supplied input format. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.codec.AbstractCodecExt |
|---|
close, discardOutputBuffer, getName, getSupportedOutputFormats, matches, open, process, setInputFormat, setOutputFormat, updateOutput, validateByteArraySize, validateShortArraySize |
| Methods inherited from class net.sf.fmj.media.AbstractCodec |
|---|
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM |
| 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 |
| Field Detail |
|---|
static final int NARROW_BAND
static final int ULTRA_WIDE_BAND
static final int WIDE_BAND
| Constructor Detail |
|---|
public JavaEncoder()
| Method Detail |
|---|
public void doClose()
doClose in class AbstractCodecExtAbstractCodecExt.doClose()
public void doOpen()
throws javax.media.ResourceUnavailableException
PlugIn.open() on this instance will result in
a call to doOpen only if AbstractCodec.opened is
false. All required input and/or output formats are assumed to
have been set on this Codec before doOpen is called.
doOpen in class AbstractCodecExtjavax.media.ResourceUnavailableException - if any of the resources that this
Codec needs to operate cannot be acquiredAbstractCodecExt.doOpen()
protected int doProcess(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
doProcess in class AbstractCodecExtinputBuffer - the input data.outputBuffer - the result data
AbstractCodecExt.doProcess(Buffer, Buffer)protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format in)
getMatchingOutputFormats in class AbstractCodecExtin - input format
AbstractCodecExt.getMatchingOutputFormats(Format)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||