public class JNIEncoder extends AbstractCodec2
Modifier and Type | Field and Description |
---|---|
(package private) static double[] |
SUPPORTED_INPUT_SAMPLE_RATES
The list of sample rates of audio data supported as input by
JNIEncoder instances.
|
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN
Constructor and Description |
---|
JNIEncoder()
Initializes a new JNIEncoder 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 inputBuffer,
javax.media.Buffer outputBuffer)
Processes (encode) a specific input Buffer.
|
protected javax.media.Format[] |
getMatchingOutputFormats(javax.media.Format inputFormat)
Get the output formats matching a specific input format.
|
javax.media.Format |
getOutputFormat()
Get the output format.
|
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the input format.
|
calculateLostSeqNoCount, close, discardOutputBuffer, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
checkInputBuffer, dump, getInputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
static final double[] SUPPORTED_INPUT_SAMPLE_RATES
protected void doClose()
doClose
in class AbstractCodec2
AbstractCodecExt#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 acquiredAbstractCodecExt#doOpen()
protected int doProcess(javax.media.Buffer inputBuffer, javax.media.Buffer outputBuffer)
doProcess
in class AbstractCodec2
inputBuffer
- input bufferoutputBuffer
- output bufferAbstractCodecExt#doProcess(Buffer, Buffer)
protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format inputFormat)
getMatchingOutputFormats
in class AbstractCodec2
inputFormat
- the input format to get the matching output formats ofAbstractCodecExt#getMatchingOutputFormats(Format)
public javax.media.Format getOutputFormat()
getOutputFormat
in class net.sf.fmj.media.AbstractCodec
AbstractCodec.getOutputFormat()
public javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat
in interface javax.media.Codec
setInputFormat
in class AbstractCodec2
format
- format to setAbstractCodecExt#setInputFormat(Format)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.