public final class SsaDecoder extends SimpleSubtitleDecoder
SimpleSubtitleDecoder for SSA/ASS.| Constructor and Description |
|---|
SsaDecoder() |
SsaDecoder(List<byte[]> initializationData) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.android.exoplayer2.text.ssa.SsaSubtitle |
decode(byte[] bytes,
int length,
boolean reset)
Decodes data into a
Subtitle. |
static long |
parseTimecodeUs(String timeString)
Parses an SSA timecode string.
|
createInputBuffer, createOutputBuffer, decode, getName, releaseOutputBuffer, setPositionUsdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, setInitialInputBufferSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, releasepublic SsaDecoder()
public SsaDecoder(List<byte[]> initializationData)
initializationData - Optional initialization data for the decoder. If not null, the
initialization data must consist of two byte arrays. The first must contain an SSA format
line. The second must contain an SSA header that will be assumed common to all samples.protected com.google.android.exoplayer2.text.ssa.SsaSubtitle decode(byte[] bytes,
int length,
boolean reset)
SimpleSubtitleDecoderSubtitle.decode in class SimpleSubtitleDecoderbytes - 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.public static long parseTimecodeUs(String timeString)
timeString - The string to parse.