Class SsaDecoder

    • Constructor Detail

      • SsaDecoder

        public SsaDecoder()
      • SsaDecoder

        public SsaDecoder​(@Nullable
                          List<byte[]> initializationData)
        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[] bytes,
                                  int length,
                                  boolean reset)
        Description copied from class: SimpleSubtitleDecoder
        Decodes data into a Subtitle.
        Specified by:
        decode in class SimpleSubtitleDecoder
        Parameters:
        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.
        Returns:
        The decoded Subtitle.