Package com.sun.pdfview.decode
Class CCITTFaxDecoder
java.lang.Object
com.sun.pdfview.decode.CCITTFaxDecoder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static short[]private booleanprivate int(package private) static short[]private intprivate intprivate int[]private byte[]private booleanprivate int(package private) static byte[](package private) static short[]private intprivate int[](package private) static int[](package private) static int[](package private) static short[](package private) static byte[]private int(package private) static short[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanalign()protected booleanprivate intprotected voiddecodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) voiddecodeT41D(byte[] buffer, byte[] compData, int startX, int height) voiddecodeT42D(byte[] buffer, byte[] compData, int startX, int height) voiddecodeT6(byte[] buffer, byte[] compData, int startX, int height) private intprivate voidgetNextChangingElement(int a0, boolean isWhite, int[] ret) booleanisAlign()booleanprivate intnextLesserThan8Bits(int bitsToGet) private intnextNBits(int bitsToGet) private intreadEOL(boolean isFirstEOL) private booleanseekEOL()voidsetAlign(boolean align) voidsetFillBits(boolean fillBits) private voidsetToBlack(byte[] buffer, int lineOffset, int bitOffset, int numBits) private voidupdatePointer(int bitsToMoveBack)
-
Field Details
-
table1
static int[] table1 -
table2
static int[] table2 -
flipTable
static byte[] flipTable -
white
static short[] white -
additionalMakeup
static short[] additionalMakeup -
initBlack
static short[] initBlack -
twoBitBlack
static short[] twoBitBlack -
black
static short[] black -
twoDCodes
static byte[] twoDCodes -
bitPointer
private int bitPointer -
bytePointer
private int bytePointer -
data
private byte[] data -
w
private int w -
align
private boolean align -
fillOrder
private int fillOrder -
changingElemSize
private int changingElemSize -
prevChangingElems
private int[] prevChangingElems -
currChangingElems
private int[] currChangingElems -
lastChangingElement
private int lastChangingElement -
fillBits
private boolean fillBits
-
-
Constructor Details
-
CCITTFaxDecoder
public CCITTFaxDecoder(int fillOrder, int w, int h) - Parameters:
fillOrder- The fill order of the compressed data bytes.w-h-
-
-
Method Details
-
align
private boolean align() -
consumeEOL
protected boolean consumeEOL() -
decodeBlackCodeWord
private int decodeBlackCodeWord() -
decodeNextScanline
protected void decodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) -
decodeT41D
public void decodeT41D(byte[] buffer, byte[] compData, int startX, int height) -
decodeT42D
public void decodeT42D(byte[] buffer, byte[] compData, int startX, int height) -
decodeT6
public void decodeT6(byte[] buffer, byte[] compData, int startX, int height) -
decodeWhiteCodeWord
private int decodeWhiteCodeWord() -
getNextChangingElement
private void getNextChangingElement(int a0, boolean isWhite, int[] ret) -
isAlign
public boolean isAlign() -
isFillBits
public boolean isFillBits() -
nextLesserThan8Bits
private int nextLesserThan8Bits(int bitsToGet) -
nextNBits
private int nextNBits(int bitsToGet) -
readEOL
private int readEOL(boolean isFirstEOL) -
seekEOL
private boolean seekEOL() -
setAlign
public void setAlign(boolean align) -
setFillBits
public void setFillBits(boolean fillBits) -
setToBlack
private void setToBlack(byte[] buffer, int lineOffset, int bitOffset, int numBits) -
updatePointer
private void updatePointer(int bitsToMoveBack)
-