public final class Tx3gDecoder extends SimpleSubtitleDecoder
SimpleSubtitleDecoder
for tx3g.
Currently supports parsing of a single text track with embedded styles.
Constructor and Description |
---|
Tx3gDecoder(List<byte[]> initializationData)
Sets up a new
Tx3gDecoder with default values. |
Modifier and Type | Method and Description |
---|---|
protected Subtitle |
decode(byte[] bytes,
int length,
boolean reset)
Decodes data into a
Subtitle . |
createInputBuffer, createOutputBuffer, decode, getName, releaseOutputBuffer, setPositionUs
dequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, setInitialInputBufferSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release
public Tx3gDecoder(List<byte[]> initializationData)
Tx3gDecoder
with default values.initializationData
- Sample description atom ('stsd') data with default subtitle styles.protected Subtitle decode(byte[] bytes, int length, boolean reset) throws SubtitleDecoderException
SimpleSubtitleDecoder
Subtitle
.decode
in class SimpleSubtitleDecoder
bytes
- 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
.SubtitleDecoderException
- If a decoding error occurs.