Class DvbDecoder
- java.lang.Object
-
- com.google.android.exoplayer2.decoder.SimpleDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
-
- com.google.android.exoplayer2.text.SimpleSubtitleDecoder
-
- com.google.android.exoplayer2.text.dvb.DvbDecoder
-
- All Implemented Interfaces:
Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
,SubtitleDecoder
@Deprecated public final class DvbDecoder extends SimpleSubtitleDecoder
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.ASimpleSubtitleDecoder
for DVB subtitles.
-
-
Constructor Summary
Constructors Constructor Description DvbDecoder(List<byte[]> initializationData)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Subtitle
decode(byte[] data, int length, boolean reset)
Deprecated.Decodes data into aSubtitle
.-
Methods inherited from class com.google.android.exoplayer2.text.SimpleSubtitleDecoder
createInputBuffer, createOutputBuffer, createUnexpectedDecodeException, decode, getName, setPositionUs
-
Methods inherited from class com.google.android.exoplayer2.decoder.SimpleDecoder
dequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, releaseOutputBuffer, setInitialInputBufferSize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.android.exoplayer2.decoder.Decoder
dequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release
-
-
-
-
Constructor Detail
-
DvbDecoder
public DvbDecoder(List<byte[]> initializationData)
Deprecated.- Parameters:
initializationData
- The initialization data for the decoder. The initialization data must consist of a single byte array containing 5 bytes: flag_pes_stripped (1), composition_page (2), ancillary_page (2).
-
-
Method Detail
-
decode
protected Subtitle decode(byte[] data, int length, boolean reset)
Deprecated.Description copied from class:SimpleSubtitleDecoder
Decodes data into aSubtitle
.- Specified by:
decode
in classSimpleSubtitleDecoder
- Parameters:
data
- An array holding the data to be decoded, starting at position 0.length
- The number of bytes fromdata
to be decoded.reset
- Whether the decoder must be reset before decoding.- Returns:
- The decoded
Subtitle
.
-
-