Class GIFReader

All Implemented Interfaces:
Closeable, AutoCloseable, ICompressedTileReader, IFormatHandler, IFormatReader, IMetadataConfigurable, IPyramidHandler

public class GIFReader extends FormatReader
GIFReader is the file format reader for Graphics Interchange Format (GIF) files. Much of this code was adapted from the Animated GIF Reader plugin for ImageJ (http://rsb.info.nih.gov/ij).
  • Field Details

    • GIF_MAGIC_STRING

      public static final String GIF_MAGIC_STRING
      See Also:
    • MAX_STACK_SIZE

      private static final int MAX_STACK_SIZE
      Maximum buffer size.
      See Also:
    • IMAGE_SEPARATOR

      private static final int IMAGE_SEPARATOR
      See Also:
    • EXTENSION

      private static final int EXTENSION
      See Also:
    • END

      private static final int END
      See Also:
    • GRAPHICS

      private static final int GRAPHICS
      See Also:
    • gct

      private int[] gct
      Global color table.
    • act

      private int[] act
      Active color table.
    • interlace

      private boolean interlace
      Interlace flag.
    • ix

      private int ix
      Current image rectangle.
    • iy

      private int iy
      Current image rectangle.
    • iw

      private int iw
      Current image rectangle.
    • ih

      private int ih
      Current image rectangle.
    • dBlock

      private byte[] dBlock
      Current data block.
    • blockSize

      private int blockSize
      Block size.
    • dispose

      private int dispose
    • lastDispose

      private int lastDispose
    • transparency

      private boolean transparency
      Use transparent color.
    • transIndex

      private int transIndex
      Transparent color index.
    • prefix

      private short[] prefix
    • suffix

      private byte[] suffix
    • pixelStack

      private byte[] pixelStack
    • pixels

      private byte[] pixels
    • images

      private Vector<byte[]> images
    • colorTables

      private Vector<int[]> colorTables
    • planesRead

      private transient Set<Integer> planesRead
  • Constructor Details

    • GIFReader

      public GIFReader()
      Constructs a new GIF reader.
  • Method Details