Class XTIFFLZWTileCodec
java.lang.Object
org.libtiff.jai.codec.XTIFFTileCodecImpl
org.libtiff.jai.codecimpl.XTIFFLZWTileCodec
- All Implemented Interfaces:
XTIFFTileCodec
This codec encapsulates all the logic for the TIFF
"lzw" decoding codec algorithm.
-
Field Summary
Fields inherited from class XTIFFTileCodecImpl
_bdata, _sdata, bitsPerSample, bpixvals, buffer, colormap, compression, dataType, decodePaletteAsShorts, decodeParam, directory, encodeParam, image, image_type, isTiled, length, minX, minY, numBands, sampleModel, sampleSize, spixvals, tileLength, tileWidth, unitsInThisTile, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creation methodvoiddecodeTilePixels(byte[] input, Rectangle newRect, byte[] bdata) Decode a rectangle of pixelsvoiddecodeTilePixels(byte[] input, Rectangle newRect, short[] sdata) Decode a rectangle of pixelsvoidThe initialization method particular to LZW decoding.voidregister()Registration methodMethods inherited from class XTIFFTileCodecImpl
canEncode, create, create, decode, decodeColor, decodeColor, decodeColor, decodeColor, decodeTilePixels, encode, encodeTilePixels, getCompressedTileSize, getCompression, getLongField, getTilePixels, initialize, initialize, initialize, initializeEncoding, register, setTilePixels, setupBufferForDecoding, setupBufferForEncoding, setupSourceImage, unpackShorts
-
Constructor Details
-
XTIFFLZWTileCodec
public XTIFFLZWTileCodec()Public constructor
-
-
Method Details
-
create
-
register
public void register()Registration method- Specified by:
registerin interfaceXTIFFTileCodec- Specified by:
registerin classXTIFFTileCodecImpl- See Also:
-
initializeDecoding
public void initializeDecoding()The initialization method particular to LZW decoding.- Overrides:
initializeDecodingin classXTIFFTileCodecImpl
-
decodeTilePixels
Decode a rectangle of pixels- Specified by:
decodeTilePixelsin classXTIFFTileCodecImpl- Parameters:
input- the byte array of compressed input datanewRect- the rectangular shape of the target pixelsbdata- the target decompressed pixels.
-
decodeTilePixels
Decode a rectangle of pixels- Specified by:
decodeTilePixelsin classXTIFFTileCodecImpl- Parameters:
input- the byte array of compressed input datanewRect- the rectangular shape of the target pixelssdata- the target decompressed pixels.
-