Class SsaDecoder

    • Constructor Detail

      • SsaDecoder

        public SsaDecoder()
        Deprecated.
      • SsaDecoder

        public SsaDecoder​(@Nullable
                          List<byte[]> initializationData)
        Deprecated.
        Constructs an SsaDecoder with optional format and header info.
        Parameters:
        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. The header is everything in an SSA file before the [Events] section (i.e. [Script Info] and optional [V4+ Styles] section.
    • Method Detail

      • decode

        protected Subtitle decode​(byte[] data,
                                  int length,
                                  boolean reset)
        Deprecated.
        Description copied from class: SimpleSubtitleDecoder
        Decodes data into a Subtitle.
        Specified by:
        decode in class SimpleSubtitleDecoder
        Parameters:
        data - An array holding the data to be decoded, starting at position 0.
        length - The number of bytes from data to be decoded.
        reset - Whether the decoder must be reset before decoding.
        Returns:
        The decoded Subtitle.