Package com.bumptech.glide.gifdecoder
Class GifHeader
java.lang.Object
com.bumptech.glide.gifdecoder.GifHeader
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that this header has no "Netscape" loop count.static final intThe "Netscape" loop count which means loop forever. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintGlobal status code of GIF data parsing.intgetWidth()
-
Field Details
-
NETSCAPE_LOOP_COUNT_FOREVER
public static final int NETSCAPE_LOOP_COUNT_FOREVERThe "Netscape" loop count which means loop forever.- See Also:
-
NETSCAPE_LOOP_COUNT_DOES_NOT_EXIST
public static final int NETSCAPE_LOOP_COUNT_DOES_NOT_EXISTIndicates 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.
-