docs/doc/reference/com/google/android/exoplayer2/decoder/Decoder.html
Package com.google.android.exoplayer2.decoder
I - The type of buffer input to the decoder.O - The type of buffer output from the decoder.E - The type of exception thrown from the decoder.All Known Subinterfaces:SubtitleDecoderAll Known Implementing Classes:Cea608Decoder, Cea708Decoder, DvbDecoder, ExoplayerCuesDecoder, FlacDecoder, Gav1Decoder, Mp4WebvttDecoder, OpusDecoder, PgsDecoder, SimpleDecoder, SimpleSubtitleDecoder, SsaDecoder, SubripDecoder, TtmlDecoder, Tx3gDecoder, VpxDecoder, WebvttDecoder[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceDecoder\<I,O,E extends [DecoderException](DecoderException.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.
A media decoder.
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| I | dequeueInputBuffer() |
Deprecated.
Dequeues the next input buffer to be filled and queued to the decoder.
|
| O | dequeueOutputBuffer() |
Deprecated.
Dequeues the next output buffer from the decoder.
|
| void | flush() |
Deprecated.
Flushes the decoder.
|
| String | getName() |
Deprecated.
Returns the name of the decoder.
|
| void | queueInputBuffer(I inputBuffer) |
Deprecated.
Queues an input buffer to the decoder.
|
| void | release() |
Deprecated.
Releases the decoder. |
-
[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getName()
Deprecated.
Returns the name of the decoder. Returns:The name of the decoder.
-
@Nullable[I](Decoder.html "type parameter in Decoder")dequeueInputBuffer()
throws[E](Decoder.html "type parameter in Decoder")extends[DecoderException](DecoderException.html "class in com.google.android.exoplayer2.decoder")
Deprecated.
Dequeues the next input buffer to be filled and queued to the decoder.
Returns:The input buffer, which will have been cleared, or null if a buffer isn't available.Throws:E - If a decoder error has occurred.E extends DecoderException
-
void queueInputBuffer([I](Decoder.html "type parameter in Decoder")inputBuffer)
throws[E](Decoder.html "type parameter in Decoder")extends[DecoderException](DecoderException.html "class in com.google.android.exoplayer2.decoder")
Deprecated.
Queues an input buffer to the decoder.
Parameters:inputBuffer - The input buffer.Throws:E - If a decoder error has occurred.E extends DecoderException
-
@Nullable[O](Decoder.html "type parameter in Decoder")dequeueOutputBuffer()
throws[E](Decoder.html "type parameter in Decoder")extends[DecoderException](DecoderException.html "class in com.google.android.exoplayer2.decoder")
Deprecated.
Dequeues the next output buffer from the decoder.
Returns:The output buffer, or null if an output buffer isn't available.Throws:E - If a decoder error has occurred.E extends DecoderException
-
void flush()
Deprecated.
Flushes the decoder. Ownership of dequeued input buffers is returned to the decoder. The caller is still responsible for releasing any dequeued output buffers.
-
void release()
Deprecated.
Releases the decoder. Must be called when the decoder is no longer needed.