Package com.bumptech.glide.gifdecoder
Class GifHeaderParser
- java.lang.Object
-
- com.bumptech.glide.gifdecoder.GifHeaderParser
-
public class GifHeaderParser extends java.lang.ObjectA class responsible for creatingGifHeaders from data representing animated GIFs.- See Also:
- GIF 89a Specification
-
-
Constructor Summary
Constructors Constructor Description GifHeaderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanisAnimated()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.GifHeaderparseHeader()GifHeaderParsersetData(byte[] data)GifHeaderParsersetData(java.nio.ByteBuffer data)
-
-
-
Method Detail
-
setData
public GifHeaderParser setData(@NonNull java.nio.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.
-
-