public class JNIDecoder extends AbstractCodec2 implements FECDecoderControl
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN
Constructor and Description |
---|
JNIDecoder()
Initializes a new JNIDecoder instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doOpen()
Opens this Codec and acquires the resources that it needs to
operate.
|
protected int |
doProcess(javax.media.Buffer inBuf,
javax.media.Buffer outBuf)
Decodes an Opus packet.
|
int |
fecPacketsDecoded()
Returns the number of packets decoded with FEC.
|
java.awt.Component |
getControlComponent()
Implements
Control.getControlComponent() . |
protected javax.media.Format[] |
getMatchingOutputFormats(javax.media.Format inputFormat)
Gets the Formats which are supported by this Codec as
output when the input is in a specific Format.
|
javax.media.Format |
setInputFormat(javax.media.Format format)
Makes sure that the outputFormat of this instance is in accord
with the inputFormat of this instance.
|
javax.media.Format |
setOutputFormat(javax.media.Format format) |
calculateLostSeqNoCount, close, discardOutputBuffer, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, specialize, updateOutput, validateByteArraySize, validateShortArraySize
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
protected void doClose()
doClose
in class AbstractCodec2
AbstractCodec2.doClose()
protected 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 AbstractCodec2
javax.media.ResourceUnavailableException
- if any of the resources that this
Codec needs to operate cannot be acquiredAbstractCodec2.doOpen()
protected int doProcess(javax.media.Buffer inBuf, javax.media.Buffer outBuf)
doProcess
in class AbstractCodec2
public int fecPacketsDecoded()
fecPacketsDecoded
in interface FECDecoderControl
public java.awt.Component getControlComponent()
Control.getControlComponent()
. JNIDecoder
does not provide user interface of its own.getControlComponent
in interface javax.media.Control
protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format inputFormat)
getMatchingOutputFormats
in class AbstractCodec2
inputFormat
- the Format of the input for which the
supported output Formats are to be returnedpublic javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat
in interface javax.media.Codec
setInputFormat
in class AbstractCodec2
public javax.media.Format setOutputFormat(javax.media.Format format)
setOutputFormat
in interface javax.media.Codec
setOutputFormat
in class AbstractCodec2
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.