Class Parser

java.lang.Object
io.antmedia.muxer.parser.Parser
Direct Known Subclasses:
AACConfigParser, HEVCDecoderConfigurationParser, HEVCDecoderConfigurationParser.HEVCSPSParser, SPSParser

public abstract class Parser extends Object
  • Field Details

    • currentBit

      protected int currentBit
    • data

      protected byte[] data
    • errorOccured

      protected boolean errorOccured
    • width

      protected int width
    • height

      protected int height
    • nalUnitParsing

      private boolean nalUnitParsing
    • logger

      private static org.slf4j.Logger logger
  • Constructor Details

    • Parser

      public Parser(byte[] data, int offset, boolean nalUnitParsing)
  • Method Details

    • parse

      protected abstract void parse()
    • readBit

      protected int readBit()
    • readBits

      protected int readBits(int n)
    • readExponentialGolombCode

      protected int readExponentialGolombCode()
    • readSE

      protected int readSE()
    • readByte

      protected byte[] readByte(int numBytes)
    • isErrorOccured

      public boolean isErrorOccured()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()