public class JavaEncoder extends AbstractCodec2 implements PacketLossAwareEncoder
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 |
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) |
Component |
getControlComponent()
Stub.
|
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.
|
void |
setExpectedPacketLoss(int percentage)
Updates the encoder's packet loss percentage.
|
calculateLostSeqNoCount, close, discardOutputBuffer, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySizecheckInputBuffer, dump, getInputFormat, getSupportedInputFormats, isEOM, propagateEOMaddControl, getControl, getControls, removeControlprotected void doClose()
doClose in class AbstractCodec2protected void doOpen()
throws javax.media.ResourceUnavailableException
AbstractCodec2PlugIn.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 AbstractCodec2javax.media.ResourceUnavailableException - if any of the resources that this
Codec needs to operate cannot be acquiredprotected int doProcess(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
doProcess in class AbstractCodec2protected javax.media.Format[] getMatchingOutputFormats(javax.media.Format inputFormat)
getMatchingOutputFormats in class AbstractCodec2inputFormat - the input format to get the matching output formats ofAbstractCodec2.getMatchingOutputFormats(Format)public javax.media.Format getOutputFormat()
getOutputFormat in class net.sf.fmj.media.AbstractCodecAbstractCodec.getOutputFormat()public void setExpectedPacketLoss(int percentage)
setExpectedPacketLoss in interface PacketLossAwareEncoderpercentage - the expected packet loss percentage to set.public Component getControlComponent()
getControlComponent in interface javax.media.ControlCopyright © 2021 jitsi.org. All rights reserved.