Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

non_com.media.jai.codec
Class GIFImage  view GIFImage download GIFImage.java

java.lang.Object
  extended bynon_com.media.jai.codec.SimpleRenderedImage
      extended bynon_com.media.jai.codec.GIFImage
All Implemented Interfaces:
java.awt.image.RenderedImage

class GIFImage
extends SimpleRenderedImage


Field Summary
private  int bitPos
           
private  byte[] block
           
private  int blockLength
           
private  int clearCode
           
private  int eofCode
           
private  int initCodeSize
           
private  SeekableStream input
           
private static int[] INTERLACE_INCREMENT
           
private static int[] INTERLACE_OFFSET
           
private  boolean interlaceFlag
           
private  int interlacePass
           
private  boolean lastBlockFound
           
private  int next32Bits
           
private  int nextByte
           
private  java.awt.image.WritableRaster theTile
           
 
Fields inherited from class non_com.media.jai.codec.SimpleRenderedImage
colorModel, height, minX, minY, properties, sampleModel, sources, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Constructor Summary
(package private) GIFImage(SeekableStream input, byte[] globalColorTable)
          Create a new GIFImage.
 
Method Summary
private  int getCode(int codeSize, int codeMask)
           
 java.awt.image.Raster getTile(int tileX, int tileY)
          Gets the Tile attribute of the GIFImage object
private  void initializeStringTable(int[] prefix, byte[] suffix, byte[] initial, int[] length)
           
private  void initNext32Bits()
           
private  java.awt.Point outputPixels(byte[] string, int len, java.awt.Point streamPos, byte[] rowBuf)
           
private  void skipBlocks()
           
 
Methods inherited from class non_com.media.jai.codec.SimpleRenderedImage
copyData, getBounds, getColorModel, getData, getData, getHeight, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, tileXToX, tileXToX, tileYToY, tileYToY, XToTileX, XToTileX, YToTileY, YToTileY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERLACE_INCREMENT

private static final int[] INTERLACE_INCREMENT

INTERLACE_OFFSET

private static final int[] INTERLACE_OFFSET

input

private SeekableStream input

interlaceFlag

private boolean interlaceFlag

block

private byte[] block

blockLength

private int blockLength

bitPos

private int bitPos

nextByte

private int nextByte

initCodeSize

private int initCodeSize

clearCode

private int clearCode

eofCode

private int eofCode

next32Bits

private int next32Bits

lastBlockFound

private boolean lastBlockFound

interlacePass

private int interlacePass

theTile

private java.awt.image.WritableRaster theTile
Constructor Detail

GIFImage

GIFImage(SeekableStream input,
         byte[] globalColorTable)
   throws java.io.IOException
Create a new GIFImage. The input stream must be positioned at the start of the image, i.e., not at the start of the overall stream.

Method Detail

getTile

public java.awt.image.Raster getTile(int tileX,
                                     int tileY)
Gets the Tile attribute of the GIFImage object


getCode

private int getCode(int codeSize,
                    int codeMask)
             throws java.io.IOException

skipBlocks

private void skipBlocks()
                 throws java.io.IOException

initNext32Bits

private void initNext32Bits()

initializeStringTable

private void initializeStringTable(int[] prefix,
                                   byte[] suffix,
                                   byte[] initial,
                                   int[] length)

outputPixels

private java.awt.Point outputPixels(byte[] string,
                                    int len,
                                    java.awt.Point streamPos,
                                    byte[] rowBuf)