Class SimpleDecoderOutputBuffer
- java.lang.Object
-
- com.google.android.exoplayer2.decoder.Buffer
-
- com.google.android.exoplayer2.decoder.DecoderOutputBuffer
-
- com.google.android.exoplayer2.decoder.SimpleDecoderOutputBuffer
-
public class SimpleDecoderOutputBuffer extends DecoderOutputBuffer
Buffer forSimpleDecoderoutput.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.android.exoplayer2.decoder.DecoderOutputBuffer
DecoderOutputBuffer.Owner<S extends DecoderOutputBuffer>
-
-
Field Summary
Fields Modifier and Type Field Description ByteBufferdata-
Fields inherited from class com.google.android.exoplayer2.decoder.DecoderOutputBuffer
skippedOutputBufferCount, timeUs
-
-
Constructor Summary
Constructors Constructor Description SimpleDecoderOutputBuffer(DecoderOutputBuffer.Owner<SimpleDecoderOutputBuffer> owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the buffer.ByteBufferinit(long timeUs, int size)Initializes the buffer.voidrelease()Releases the output buffer for reuse.-
Methods inherited from class com.google.android.exoplayer2.decoder.Buffer
addFlag, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isKeyFrame, setFlags
-
-
-
-
Field Detail
-
data
@Nullable public ByteBuffer data
-
-
Constructor Detail
-
SimpleDecoderOutputBuffer
public SimpleDecoderOutputBuffer(DecoderOutputBuffer.Owner<SimpleDecoderOutputBuffer> owner)
-
-
Method Detail
-
init
public ByteBuffer init(long timeUs, int size)
Initializes the buffer.- Parameters:
timeUs- The presentation timestamp for the buffer, in microseconds.size- An upper bound on the size of the data that will be written to the buffer.- Returns:
- The
databuffer, for convenience.
-
clear
public void clear()
Description copied from class:BufferClears the buffer.
-
release
public void release()
Description copied from class:DecoderOutputBufferReleases the output buffer for reuse. Must be called when the buffer is no longer needed.- Specified by:
releasein classDecoderOutputBuffer
-
-