public final class SsaDecoder extends SimpleSubtitleDecoder
SimpleSubtitleDecoder for SSA/ASS.| Constructor and Description |
|---|
SsaDecoder() |
SsaDecoder(java.util.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(java.lang.String timeString)
Parses an SSA timecode string.
|
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 SsaDecoder()
public SsaDecoder(java.util.List<byte[]> initializationData)
initializationData - Optional initialization data for the decoder. If not null or empty,
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(java.lang.String timeString)
timeString - The string to parse.