Class GIFDecoder

java.lang.Object
icyllis.arc3d.core.image.GIFDecoder

public class GIFDecoder extends Object
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 Details

    • sDefaultDelayMillis

      public static volatile int sDefaultDelayMillis
  • Constructor Details

  • Method Details

    • checkMagic

      public static boolean checkMagic(@Nonnull byte[] buf)
    • getScreenWidth

      public int getScreenWidth()
    • getScreenHeight

      public int getScreenHeight()
    • decodeNextFrame

      public int decodeNextFrame(ByteBuffer pixels) throws IOException
      Returns:
      the frame delay in milliseconds
      Throws:
      IOException
    • skipExtension

      public void skipExtension() throws IOException
      Throws:
      IOException
    • readByte

      public int readByte() throws IOException
      Throws:
      IOException