public final class DvbDecoder extends SimpleSubtitleDecoder
SimpleSubtitleDecoder for DVB subtitles.| Constructor and Description |
|---|
DvbDecoder(java.util.List<byte[]> initializationData) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.android.exoplayer2.text.dvb.DvbSubtitle |
decode(byte[] data,
int length,
boolean reset)
Decodes data into a
Subtitle. |
createInputBuffer, createOutputBuffer, createUnexpectedDecodeException, decode, getName, releaseOutputBuffer, setPositionUsdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, setInitialInputBufferSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, releasepublic DvbDecoder(java.util.List<byte[]> initializationData)
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).protected com.google.android.exoplayer2.text.dvb.DvbSubtitle decode(byte[] data,
int length,
boolean reset)
SimpleSubtitleDecoderSubtitle.decode in class SimpleSubtitleDecoderdata - An array holding the data to be decoded, starting at position 0.length - The size of the data to be decoded.reset - Whether the decoder must be reset before decoding.Subtitle.