org.libtiff.jai.codecimpl
Class XTIFFLZWTileCodec

java.lang.Object
  extended by org.libtiff.jai.codec.XTIFFTileCodecImpl
      extended by org.libtiff.jai.codecimpl.XTIFFLZWTileCodec
All Implemented Interfaces:
XTIFFTileCodec

public class XTIFFLZWTileCodec
extends XTIFFTileCodecImpl

This codec encapsulates all the logic for the TIFF "lzw" decoding codec algorithm.


Constructor Summary
XTIFFLZWTileCodec()
          Public constructor
 
Method Summary
 XTIFFTileCodec create()
          Creation method
 void decodeTilePixels(byte[] input, java.awt.Rectangle newRect, byte[] bdata)
          Decode a rectangle of pixels
 void decodeTilePixels(byte[] input, java.awt.Rectangle newRect, short[] sdata)
          Decode a rectangle of pixels
 void initializeDecoding()
          The initialization method particular to LZW decoding.
 void register()
          Registration method
 
Methods inherited from class org.libtiff.jai.codec.XTIFFTileCodecImpl
canEncode, create, create, decode, encode, encodeTilePixels, getCompressedTileSize, getCompression, initialize, initializeEncoding, register
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTIFFLZWTileCodec

public XTIFFLZWTileCodec()
Public constructor

Method Detail

create

public XTIFFTileCodec create()
Creation method

Specified by:
create in class XTIFFTileCodecImpl

register

public void register()
Registration method

Specified by:
register in interface XTIFFTileCodec
Specified by:
register in class XTIFFTileCodecImpl
See Also:
XTIFFDirectory

initializeDecoding

public void initializeDecoding()
The initialization method particular to LZW decoding.

Overrides:
initializeDecoding in class XTIFFTileCodecImpl

decodeTilePixels

public void decodeTilePixels(byte[] input,
                             java.awt.Rectangle newRect,
                             byte[] bdata)
Decode a rectangle of pixels

Specified by:
decodeTilePixels in class XTIFFTileCodecImpl
Parameters:
input - the byte array of compressed input data
newRect - the rectangular shape of the target pixels
bdata - the target decompressed pixels.

decodeTilePixels

public void decodeTilePixels(byte[] input,
                             java.awt.Rectangle newRect,
                             short[] sdata)
Decode a rectangle of pixels

Specified by:
decodeTilePixels in class XTIFFTileCodecImpl
Parameters:
input - the byte array of compressed input data
newRect - the rectangular shape of the target pixels
sdata - the target decompressed pixels.