Class GifHeader

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

public class GifHeader extends Object
A header object containing the number of frames in an animated GIF image as well as basic metadata like width and height that can be used to decode each individual frame of the GIF. Can be shared by one or more GifDecoders to play the same animated GIF in multiple views.
See Also:
  • Field Details

    • NETSCAPE_LOOP_COUNT_FOREVER

      public static final int NETSCAPE_LOOP_COUNT_FOREVER
      The "Netscape" loop count which means loop forever.
      See Also:
    • NETSCAPE_LOOP_COUNT_DOES_NOT_EXIST

      public static final int NETSCAPE_LOOP_COUNT_DOES_NOT_EXIST
      Indicates that this header has no "Netscape" loop count.
      See Also:
  • Constructor Details

    • GifHeader

      public GifHeader()
  • Method Details

    • getHeight

      public int getHeight()
    • getWidth

      public int getWidth()
    • getNumFrames

      public int getNumFrames()
    • getStatus

      public int getStatus()
      Global status code of GIF data parsing.