Class TIFFFaxDecoder
java.lang.Object
com.aowagie.text.pdf.codec.TIFFFaxDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static short[]private intprivate static short[]private intprivate intprivate intprivate int[]private byte[]private intprivate final intprivate static byte[]private final intprivate static short[]private intprivate intprivate int[]private static int[]private static int[]private static short[]private static byte[]private intprivate final intprivate static short[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean(package private) voiddecode1D(byte[] buffer, byte[] compData, int startX, int height) (package private) voiddecode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) private intprivate voiddecodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) (package private) voiddecodeT6(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options) private intprivate voidgetNextChangingElement(int a0, boolean isWhite, int[] ret) private intnextLesserThan8Bits(int bitsToGet) private intnextNBits(int bitsToGet) private intreadEOL(boolean isFirstEOL) static voidreverseBits(byte[] b) Reverses the bits in the arrayprivate voidsetToBlack(byte[] buffer, int lineOffset, int bitOffset, int numBits) private voidupdatePointer(int bitsToMoveBack)
-
Field Details
-
bitPointer
private int bitPointer -
bytePointer
private int bytePointer -
data
private byte[] data -
w
private final int w -
h
private final int h -
fillOrder
private final int fillOrder -
changingElemSize
private int changingElemSize -
prevChangingElems
private int[] prevChangingElems -
currChangingElems
private int[] currChangingElems -
lastChangingElement
private int lastChangingElement -
compression
private int compression -
uncompressedMode
private int uncompressedMode -
fillBits
private int fillBits -
oneD
private int oneD -
table1
private static int[] table1 -
table2
private static int[] table2 -
flipTable
private static byte[] flipTable -
white
private static short[] white -
additionalMakeup
private static short[] additionalMakeup -
initBlack
private static short[] initBlack -
twoBitBlack
private static short[] twoBitBlack -
black
private static short[] black -
twoDCodes
private static byte[] twoDCodes
-
-
Constructor Details
-
TIFFFaxDecoder
TIFFFaxDecoder(int fillOrder, int w, int h) - Parameters:
fillOrder- The fill order of the compressed data bytes.w-h-
-
-
Method Details
-
reverseBits
public static void reverseBits(byte[] b) Reverses the bits in the array- Parameters:
b- the bits to reverse- Since:
- 2.0.7
-
decode1D
void decode1D(byte[] buffer, byte[] compData, int startX, int height) -
decodeNextScanline
private void decodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) -
decode2D
void decode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) -
decodeT6
void decodeT6(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options) -
setToBlack
private void setToBlack(byte[] buffer, int lineOffset, int bitOffset, int numBits) -
decodeWhiteCodeWord
private int decodeWhiteCodeWord() -
decodeBlackCodeWord
private int decodeBlackCodeWord() -
readEOL
private int readEOL(boolean isFirstEOL) -
getNextChangingElement
private void getNextChangingElement(int a0, boolean isWhite, int[] ret) -
nextNBits
private int nextNBits(int bitsToGet) -
nextLesserThan8Bits
private int nextLesserThan8Bits(int bitsToGet) -
updatePointer
private void updatePointer(int bitsToMoveBack) -
advancePointer
private boolean advancePointer()
-