com.lowagie.text.pdf.codec

Class TIFFFaxDecoder

public class TIFFFaxDecoder extends Object

Field Summary
static short[]additionalMakeup
intbitPointer
static short[]black
intbytePointer
intchangingElemSize
intcompression
int[]currChangingElems
byte[]data
intfillBits
intfillOrder
static byte[]flipTable
inth
static short[]initBlack
intlastChangingElement
intoneD
int[]prevChangingElems
static int[]table1
static int[]table2
static short[]twoBitBlack
static byte[]twoDCodes
intuncompressedMode
intw
static short[]white
Constructor Summary
TIFFFaxDecoder(int fillOrder, int w, int h)
Method Summary
booleanadvancePointer()
voiddecode1D(byte[] buffer, byte[] compData, int startX, int height)
voiddecode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options)
intdecodeBlackCodeWord()
voiddecodeNextScanline(byte[] buffer, int lineOffset, int bitOffset)
voiddecodeT6(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options)
intdecodeWhiteCodeWord()
voidgetNextChangingElement(int a0, boolean isWhite, int[] ret)
intnextLesserThan8Bits(int bitsToGet)
intnextNBits(int bitsToGet)
intreadEOL(boolean isFirstEOL)
static voidreverseBits(byte[] b)
Reverses the bits in the array
voidsetToBlack(byte[] buffer, int lineOffset, int bitOffset, int numBits)
voidupdatePointer(int bitsToMoveBack)

Field Detail

additionalMakeup

static short[] additionalMakeup

bitPointer

private int bitPointer

black

static short[] black

bytePointer

private int bytePointer

changingElemSize

private int changingElemSize

compression

private int compression

currChangingElems

private int[] currChangingElems

data

private byte[] data

fillBits

private int fillBits

fillOrder

private int fillOrder

flipTable

static byte[] flipTable

h

private int h

initBlack

static short[] initBlack

lastChangingElement

private int lastChangingElement

oneD

private int oneD

prevChangingElems

private int[] prevChangingElems

table1

static int[] table1

table2

static int[] table2

twoBitBlack

static short[] twoBitBlack

twoDCodes

static byte[] twoDCodes

uncompressedMode

private int uncompressedMode

w

private int w

white

static short[] white

Constructor Detail

TIFFFaxDecoder

public TIFFFaxDecoder(int fillOrder, int w, int h)

Parameters: fillOrder The fill order of the compressed data bytes. w h

Method Detail

advancePointer

private boolean advancePointer()

decode1D

public void decode1D(byte[] buffer, byte[] compData, int startX, int height)

decode2D

public void decode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options)

decodeBlackCodeWord

private int decodeBlackCodeWord()

decodeNextScanline

public void decodeNextScanline(byte[] buffer, int lineOffset, int bitOffset)

decodeT6

public void decodeT6(byte[] buffer, byte[] compData, int startX, int height, long tiffT6Options)

decodeWhiteCodeWord

private int decodeWhiteCodeWord()

getNextChangingElement

private void getNextChangingElement(int a0, boolean isWhite, int[] ret)

nextLesserThan8Bits

private int nextLesserThan8Bits(int bitsToGet)

nextNBits

private int nextNBits(int bitsToGet)

readEOL

private int readEOL(boolean isFirstEOL)

reverseBits

public static void reverseBits(byte[] b)
Reverses the bits in the array

Parameters: b the bits to reverse

Since: 2.0.7

setToBlack

private void setToBlack(byte[] buffer, int lineOffset, int bitOffset, int numBits)

updatePointer

private void updatePointer(int bitsToMoveBack)