Class TIFFFaxDecoder
java.lang.Object
org.apache.xmlgraphics.image.codec.tiff.TIFFFaxDecoder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static short[]
private int
(package private) static short[]
private int
private int
private int
private int[]
private byte[]
private int
private int
(package private) static byte[]
(package private) static short[]
private int
private int
private 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 boolean
void
decode1D
(byte[] buffer, byte[] compData, int startX, int height) void
decode2D
(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) private int
void
decodeNextScanline
(byte[] buffer, int lineOffset, int bitOffset) void
decodeT6
(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options) private int
private void
getNextChangingElement
(int a0, boolean isWhite, int[] ret) private int
nextLesserThan8Bits
(int bitsToGet) private int
nextNBits
(int bitsToGet) private int
readEOL()
private void
setToBlack
(byte[] buffer, int lineOffset, int bitOffset, int numBits) private void
updatePointer
(int bitsToMoveBack)
-
Field Details
-
bitPointer
private int bitPointer -
bytePointer
private int bytePointer -
data
private byte[] data -
w
private int w -
fillOrder
private int fillOrder -
changingElemSize
private int changingElemSize -
prevChangingElems
private int[] prevChangingElems -
currChangingElems
private int[] currChangingElems -
lastChangingElement
private int lastChangingElement -
compression
private int compression -
fillBits
private int fillBits -
oneD
private int oneD -
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
-
-
Constructor Details
-
TIFFFaxDecoder
public TIFFFaxDecoder(int fillOrder, int w, int h) - Parameters:
fillOrder
- The fill order of the compressed data bytes.w
- The width of the image in pixelsh
- The height of the image in pixels
-
-
Method Details
-
decode1D
public void decode1D(byte[] buffer, byte[] compData, int startX, int height) -
decodeNextScanline
public void decodeNextScanline(byte[] buffer, int lineOffset, int bitOffset) -
decode2D
public void decode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) -
decodeT6
public 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() -
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()
-