public class TIFFLZWUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static int[] |
andTable |
(package private) int |
bitsToGet |
private static boolean |
debug |
(package private) byte[] |
dstData |
(package private) int |
dstIndex |
(package private) int |
nextBits |
(package private) int |
nextData |
(package private) int |
predictor |
(package private) int |
samplesPerPixel |
(package private) byte[] |
srcData |
(package private) int |
srcIndex |
(package private) byte[][] |
stringTable |
(package private) int |
tableIndex |
Constructor and Description |
---|
TIFFLZWUtil() |
Modifier and Type | Method and Description |
---|---|
void |
addStringToTable(byte[] string)
Add a new string to the string table.
|
void |
addStringToTable(byte[] oldString,
byte newString)
Add a new string to the string table.
|
byte[] |
composeString(byte[] oldString,
byte newString)
Append
newString to the end of oldString . |
byte[] |
decode(byte[] data,
int predictor,
int samplesPerPixel,
int width,
int height) |
private void |
ensureCapacity(int bytesToAdd) |
int |
getNextCode() |
void |
initializeStringTable()
Initialize the string table.
|
void |
writeString(byte[] string)
Write out the string just uncompressed.
|
private static final boolean debug
byte[] srcData
int srcIndex
byte[] dstData
int dstIndex
byte[][] stringTable
int tableIndex
int bitsToGet
int predictor
int samplesPerPixel
int nextData
int nextBits
private static final int[] andTable
public byte[] decode(byte[] data, int predictor, int samplesPerPixel, int width, int height) throws IOException
IOException
public void initializeStringTable()
private void ensureCapacity(int bytesToAdd)
public void writeString(byte[] string)
public void addStringToTable(byte[] oldString, byte newString)
public void addStringToTable(byte[] string)
public byte[] composeString(byte[] oldString, byte newString)
newString
to the end of oldString
.public int getNextCode()
Copyright © 2016 Open Microscopy Environment