public class TIFFFaxDecompressor extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static short[] |
additionalMakeup |
private int |
bitPointer |
private int |
bitsPerScanline |
(package private) static short[] |
black |
private byte[] |
buffer |
private int |
bytePointer |
private int |
changingElemSize |
protected int |
compression |
private int[] |
currChangingElems |
private byte[] |
data |
int |
fails |
protected int |
fillBits
EOL padding flag: 1 if fill bits have been added before an EOL such
that the EOL ends on a byte boundary, 0 otherwise.
|
protected int |
fillOrder
The logical order of bits within a byte.
|
(package private) static byte[] |
flipTable |
private int |
h |
(package private) static short[] |
initBlack |
private int |
lastChangingElement |
private int |
lineBitNum |
protected int |
oneD
Coding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional.
|
private int[] |
prevChangingElems |
private int |
t4Options |
private int |
t6Options |
(package private) static int[] |
table1 |
(package private) static int[] |
table2 |
(package private) static short[] |
twoBitBlack |
(package private) static byte[] |
twoDCodes |
protected int |
uncompressedMode
Uncompressed mode flag: 1 if uncompressed, 0 if not.
|
private int |
w |
(package private) static short[] |
white |
Constructor and Description |
---|
TIFFFaxDecompressor() |
Modifier and Type | Method and Description |
---|---|
private int |
decodeBlackCodeWord() |
void |
decodeNextScanline() |
void |
decodeRaw(byte[] buffer,
byte[] compData,
int w,
int h) |
void |
decodeRLE() |
void |
decodeT4() |
void |
decodeT6() |
private int |
decodeWhiteCodeWord() |
private int |
findNextLine() |
private void |
getNextChangingElement(int a0,
boolean isWhite,
int[] ret) |
private int |
nextLesserThan8Bits(int bitsToGet) |
private int |
nextNBits(int bitsToGet) |
void |
SetOptions(int fillOrder,
int compression,
int t4Options,
int t6Options)
Invokes the superclass method and then sets instance variables on
the basis of the metadata set on this decompressor.
|
private void |
setToBlack(int bitNum,
int numBits) |
private void |
updatePointer(int bitsToMoveBack) |
protected int fillOrder
1 = MSB-to-LSB 2 = LSB-to-MSB (flipped)
protected int compression
private int t4Options
private int t6Options
public int fails
protected int uncompressedMode
protected int fillBits
protected int oneD
private byte[] data
private int bitPointer
private int bytePointer
private byte[] buffer
private int w
private int h
private int bitsPerScanline
private int lineBitNum
private int changingElemSize
private int[] prevChangingElems
private int[] currChangingElems
private int lastChangingElement
static int[] table1
static int[] table2
static byte[] flipTable
static short[] white
static short[] additionalMakeup
static short[] initBlack
static short[] twoBitBlack
static short[] black
static byte[] twoDCodes
public TIFFFaxDecompressor()
public void SetOptions(int fillOrder, int compression, int t4Options, int t6Options)
public void decodeRaw(byte[] buffer, byte[] compData, int w, int h)
public void decodeRLE()
public void decodeNextScanline()
public void decodeT4()
public void decodeT6()
private void setToBlack(int bitNum, int numBits)
private int decodeWhiteCodeWord()
private int decodeBlackCodeWord()
private int findNextLine()
private void getNextChangingElement(int a0, boolean isWhite, int[] ret)
private int nextNBits(int bitsToGet)
private int nextLesserThan8Bits(int bitsToGet)
private void updatePointer(int bitsToMoveBack)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses