Class GifHeaderParser

java.lang.Object
com.bumptech.glide.gifdecoder.GifHeaderParser

public class GifHeaderParser extends Object
A class responsible for creating GifHeaders from data representing animated GIFs.
See Also:
  • Constructor Details

    • GifHeaderParser

      public GifHeaderParser()
  • Method Details

    • setData

      public GifHeaderParser setData(@NonNull ByteBuffer data)
    • setData

      public GifHeaderParser setData(@Nullable byte[] data)
    • clear

      public void clear()
    • parseHeader

      @NonNull public GifHeader parseHeader()
    • isAnimated

      public boolean isAnimated()
      Determines if the GIF is animated by trying to read in the first 2 frames This method re-parses the data even if the header has already been read.