Package com.itextpdf.io.codec
Class TIFFFaxDecompressor
java.lang.Object
com.itextpdf.io.codec.TIFFFaxDecompressor
Class that can decompress TIFF files.
-
Field Summary
Modifier and TypeFieldDescriptionstatic short[]
protected int
int
protected int
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
The logical order of bits within a byte.protected int
Coding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional.protected int
Uncompressed mode flag: 1 if uncompressed, 0 if not. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
decodeRaw
(byte[] buffer, byte[] compData, int w, int h) void
void
decodeT4()
void
decodeT6()
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.
-
Field Details
-
fillOrder
protected int fillOrderThe logical order of bits within a byte.1 = MSB-to-LSB 2 = LSB-to-MSB (flipped)
-
compression
protected int compression -
fails
public int fails -
uncompressedMode
protected int uncompressedModeUncompressed mode flag: 1 if uncompressed, 0 if not. -
fillBits
protected int fillBitsEOL padding flag: 1 if fill bits have been added before an EOL such that the EOL ends on a byte boundary, 0 otherwise. -
oneD
protected int oneDCoding dimensionality: 1 for 2-dimensional, 0 for 1-dimensional. -
additionalMakeup
public static short[] additionalMakeup
-
-
Constructor Details
-
TIFFFaxDecompressor
public TIFFFaxDecompressor()
-
-
Method Details
-
SetOptions
public 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.- Parameters:
-
fillOrder
- The fill order -
compression
- The compression algorithm -
t4Options
- The T4 options -
t6Options
- The T6 options
-
decodeRaw
public void decodeRaw(byte[] buffer, byte[] compData, int w, int h) -
decodeRLE
public void decodeRLE() -
decodeNextScanline
public void decodeNextScanline() -
decodeT4
public void decodeT4() -
decodeT6
public void decodeT6()
-