docs/doc/reference/com/google/android/exoplayer2/decoder/SimpleDecoderOutputBuffer.html
Package com.google.android.exoplayer2.decoder
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classSimpleDecoderOutputBufferextends[DecoderOutputBuffer](DecoderOutputBuffer.html "class in com.google.android.exoplayer2.decoder")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Buffer for SimpleDecoder output.
-
DecoderOutputBuffer.Owner<S extends DecoderOutputBuffer>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| ByteBuffer | data |
Deprecated.
|
-
skippedOutputBufferCount, timeUs
Constructors | Constructor | Description |
| --- | --- |
| SimpleDecoderOutputBuffer(DecoderOutputBuffer.Owner<SimpleDecoderOutputBuffer> owner) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | clear() |
Deprecated.
Clears the buffer.
|
| ByteBuffer | init(long timeUs, int size) |
Deprecated.
Initializes the buffer.
|
| void | release() |
Deprecated.
Releases the output buffer for reuse. |
-
addFlag, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isFirstSample, isKeyFrame, isLastSample, setFlags
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
@Nullable
public[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")data
Deprecated.
-
public SimpleDecoderOutputBuffer([DecoderOutputBuffer.Owner](DecoderOutputBuffer.Owner.html "interface in com.google.android.exoplayer2.decoder")<[SimpleDecoderOutputBuffer](SimpleDecoderOutputBuffer.html "class in com.google.android.exoplayer2.decoder")> owner)
Deprecated.
-
public[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")init(long timeUs,
int size)
Deprecated.
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 data buffer, for convenience.
-
public void clear()
Deprecated.
Description copied from class: Buffer
Clears the buffer.
Overrides:clear in class Buffer
-
public void release()
Deprecated.
Description copied from class: DecoderOutputBuffer
Releases the output buffer for reuse. Must be called when the buffer is no longer needed.
Specified by:release in class DecoderOutputBuffer