Package icyllis.arc3d.core.image
Class GIFDecoder
java.lang.Object
icyllis.arc3d.core.image.GIFDecoder
GIF decoder that created with compressed data and decode frame by frame,
GIFDecoder is not thread safe, but can be locked and use across threads.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkMagic
(byte[] buf) int
decodeNextFrame
(ByteBuffer pixels) int
int
int
readByte()
void
-
Field Details
-
sDefaultDelayMillis
public static volatile int sDefaultDelayMillis
-
-
Constructor Details
-
GIFDecoder
- Throws:
IOException
-
-
Method Details
-
checkMagic
public static boolean checkMagic(@Nonnull byte[] buf) -
getScreenWidth
public int getScreenWidth() -
getScreenHeight
public int getScreenHeight() -
decodeNextFrame
- Returns:
- the frame delay in milliseconds
- Throws:
IOException
-
skipExtension
- Throws:
IOException
-
readByte
- Throws:
IOException
-