public class JavaEncoder extends AbstractCodec2 implements AdvancedAttributesAwareCodec
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN
Constructor and Description |
---|
JavaEncoder()
Initializes a new
JavaEncoder instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
discardOutputBuffer(javax.media.Buffer outputBuffer) |
protected void |
doClose() |
protected void |
doOpen()
Opens this Codec and acquires the resources that it needs to
operate.
|
protected int |
doProcess(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer) |
java.awt.Component |
getControlComponent()
Not used.
|
javax.media.Format |
getOutputFormat()
Get the output format.
|
void |
setAdvancedAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets the additional attributes to attributes
|
calculateLostSeqNoCount, close, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
checkInputBuffer, dump, getInputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
public javax.media.Format getOutputFormat()
getOutputFormat
in class net.sf.fmj.media.AbstractCodec
AbstractCodec.getOutputFormat()
protected void discardOutputBuffer(javax.media.Buffer outputBuffer)
discardOutputBuffer
in class AbstractCodec2
protected void doClose()
doClose
in class AbstractCodec2
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 inBuffer, javax.media.Buffer outBuffer)
doProcess
in class AbstractCodec2
public void setAdvancedAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
setAdvancedAttributes
in interface AdvancedAttributesAwareCodec
attributes
- The additional attributes to setpublic java.awt.Component getControlComponent()
getControlComponent
in interface javax.media.Control
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.