public class LZWTreeDecoder extends java.lang.Object implements ImageDecoder
There are some subtle differences between the LZW algorithm used by TIFF and GIF images.
Constructor and Description |
---|
LZWTreeDecoder(java.io.InputStream is,
int min_code_size) |
LZWTreeDecoder(int min_code_size,
boolean isTIFF) |
public LZWTreeDecoder(java.io.InputStream is, int min_code_size)
public LZWTreeDecoder(int min_code_size, boolean isTIFF)
public int decode(byte[] pix, int offset, int len) throws java.lang.Exception
decode
in interface ImageDecoder
pix
- buffer to put decoded dataoffset
- offset to start put decoded datalen
- the maximum number of uncompressed bytesjava.lang.Exception
public void setInput(byte[] input)
setInput
in interface ImageDecoder
public void setInput(byte[] input, int offset, int len)
setInput
in interface ImageDecoder