public class VideoDecoderInputBuffer extends DecoderInputBuffer
DecoderInputBuffer.BufferReplacementMode, DecoderInputBuffer.InsufficientCapacityException| Modifier and Type | Field | Description |
|---|---|---|
Format |
format |
BUFFER_REPLACEMENT_MODE_DIRECT, BUFFER_REPLACEMENT_MODE_DISABLED, BUFFER_REPLACEMENT_MODE_NORMAL, cryptoInfo, data, supplementalData, timeUs, waitingForKeys| Constructor | Description |
|---|---|
VideoDecoderInputBuffer(int bufferReplacementMode) |
Creates a new instance.
|
VideoDecoderInputBuffer(int bufferReplacementMode,
int paddingSize) |
Creates a new instance.
|
addFlag, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isKeyFrame, setFlagsclear, ensureSpaceForWrite, flip, isEncrypted, isFlagsOnly, newFlagsOnlyInstance, resetSupplementalData@Nullable public Format format
public VideoDecoderInputBuffer(@BufferReplacementMode int bufferReplacementMode)
bufferReplacementMode - Determines the behavior of DecoderInputBuffer.ensureSpaceForWrite(int). One
of DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED, DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL and
DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DIRECT.public VideoDecoderInputBuffer(@BufferReplacementMode int bufferReplacementMode, int paddingSize)
bufferReplacementMode - Determines the behavior of DecoderInputBuffer.ensureSpaceForWrite(int). One
of DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED, DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL and
DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DIRECT.paddingSize - If non-zero, DecoderInputBuffer.ensureSpaceForWrite(int) will ensure that the buffer
is this number of bytes larger than the requested length. This can be useful for decoders
that consume data in fixed size blocks, for efficiency. Setting the padding size to the
decoder's fixed read size is necessary to prevent such a decoder from trying to read beyond
the end of the buffer.