public class JNIEncoder extends FFmpegAudioEncoder
Modifier and Type | Field and Description |
---|---|
(package private) static int[] |
BIT_RATES
The bit rates supported by Adaptive Multi-Rate Wideband (AMR-WB).
|
(package private) static javax.media.format.AudioFormat[] |
SUPPORTED_INPUT_FORMATS
The list of Formats of audio data supported as input by
JNIEncoder instances.
|
(package private) static javax.media.format.AudioFormat[] |
SUPPORTED_OUTPUT_FORMATS
The list of Formats of audio data supported as output by
JNIEncoder instances.
|
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. |
protected int |
doProcess(javax.media.Buffer inBuf,
javax.media.Buffer outBuf) |
javax.media.Format |
setOutputFormat(javax.media.Format format)
Additionally, determines whether this JNIEncoder is to perform
RTP packetization.
|
assertFindAVCodec, doClose, findAVCodec, getAVCodecContextFormat
codecIDToString, doOpen
calculateLostSeqNoCount, close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
static final int[] BIT_RATES
static final javax.media.format.AudioFormat[] SUPPORTED_INPUT_FORMATS
static final javax.media.format.AudioFormat[] SUPPORTED_OUTPUT_FORMATS
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
configuredprotected int doProcess(javax.media.Buffer inBuf, javax.media.Buffer outBuf)
doProcess
in class FFmpegAudioEncoder
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.