public class JNIEncoder extends FFmpegAudioEncoder implements FlushableControl
prevInLen
avctx, codecID, frameSizeInBytes
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 |
configureAVCodecContext(long avctx,
javax.media.format.AudioFormat format)
Configures the AVCodecContext initialized in
AbstractFFmpegAudioCodec.doOpen()
prior to invoking one of the FFmpeg functions in the
avcodec_open family. |
void |
flush()
Flushes the buffer.
|
java.awt.Component |
getControlComponent() |
assertFindAVCodec, doClose, doProcess, findAVCodec, getAVCodecContextFormat
codecIDToString, doOpen
calculateLostSeqNoCount, close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
protected void configureAVCodecContext(long avctx, javax.media.format.AudioFormat format)
AbstractFFmpegAudioCodec.doOpen()
prior to invoking one of the FFmpeg functions in the
avcodec_open family. Allows extenders to override and provide
additional, optional configuration.configureAVCodecContext
in class FFmpegAudioEncoder
avctx
- the AVCodecContext to configureformat
- the AudioFormat with which avctx is being
configuredpublic void flush()
flush
in interface FlushableControl
public java.awt.Component getControlComponent()
getControlComponent
in interface javax.media.Control
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.