Back to Exoplayer

DecoderOutputBuffer (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/decoder/DecoderOutputBuffer.html

latest3.4 KB
Original Source

Package com.google.android.exoplayer2.decoder

Class DecoderOutputBuffer


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classDecoderOutputBufferextends[Buffer](Buffer.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.

Output buffer decoded by a Decoder.

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static interface | DecoderOutputBuffer.Owner<S extends DecoderOutputBuffer> | Deprecated.

Buffer owner. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | int | skippedOutputBufferCount | Deprecated.

The number of buffers immediately prior to this one that were skipped in the Decoder. | | long | timeUs | Deprecated.

The presentation timestamp for the buffer, in microseconds. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DecoderOutputBuffer() | Deprecated. |

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | abstract void | release() | Deprecated.

Releases the output buffer for reuse. |

- 

Methods inherited from class com.google.android.exoplayer2.decoder.Buffer

addFlag, clear, clearFlag, getFlag, hasSupplementalData, isDecodeOnly, isEndOfStream, isFirstSample, isKeyFrame, isLastSample, setFlags

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

timeUs

public long timeUs

Deprecated.

The presentation timestamp for the buffer, in microseconds.

- 

skippedOutputBufferCount

public int skippedOutputBufferCount

Deprecated.

The number of buffers immediately prior to this one that were skipped in the Decoder.

Constructor Detail

- 

DecoderOutputBuffer

public DecoderOutputBuffer()

Deprecated.

Method Detail

- 

release

public abstract void release()

Deprecated.

Releases the output buffer for reuse. Must be called when the buffer is no longer needed.