|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.codec.CCITTG4Encoder
Field Summary | |
private int |
bits
Output bit buffer. |
private static int |
BLACK
The CCITT numerical definition of black. |
private static byte[] |
byteTable
|
private static int[][] |
horz
Black and white horizontal mode table. |
private static int[] |
horzMode
Horizontal mode table. |
private int |
lineStride
|
private static int[][] |
makeupCodes
Black and white make-up code table. |
private static int[] |
makeupCodesBlack
Make-up codes for black runs. |
private static int[] |
makeupCodesWhite
Make-up codes for white runs. |
private int |
ndex
Number of bits in the output bit buffer. |
private ByteBuffer |
outBuf
|
private static int[][] |
pass
Black and white pass mode table. |
private static int[] |
passMode
Pass mode table. |
(package private) byte[] |
refData
|
private static int[][] |
termCodes
Black and white terminating code table. |
private static int[] |
termCodesBlack
Terminating codes for black runs. |
private static int[] |
termCodesWhite
Terminating codes for white runs. |
private static int[][] |
vert
Black and white vertical mode table. |
private static int[] |
vertMode
Vertical mode table. |
private static int |
WHITE
The CCITT numerical definition of white. |
private int |
width
|
Constructor Summary | |
CCITTG4Encoder(int width)
Constructs a TIFFFaxEncoder for CCITT bilevel encoding. |
Method Summary | |
private void |
add1DBits(int count,
int color)
Get code for run and add to compressed bitstream. |
private void |
add2DBits(int[][] mode,
int entry)
Place entry from mode table into compressed bitstream. |
private void |
addEOFB()
Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream. |
private void |
addEOL(boolean is1DMode,
boolean addFill,
boolean add1)
Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment. |
byte[] |
close()
|
static byte[] |
compress(byte[] data,
int width,
int height)
|
void |
encodeT6Line(byte[] data,
int lineAddr)
|
void |
encodeT6Lines(byte[] data,
int lineAddr,
int height)
|
private void |
initBitBuf()
Initialize bit buffer machinery. |
private int |
nextState(byte[] data,
int base,
int bitOffset,
int maxOffset)
Return min of maxOffset or offset of first pixel
different from pixel at bitOffset . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int WHITE
private static final int BLACK
private static byte[] byteTable
private static int[] termCodesBlack
private static int[] termCodesWhite
private static int[] makeupCodesBlack
private static int[] makeupCodesWhite
private static int[] passMode
private static int[] vertMode
private static int[] horzMode
private static int[][] termCodes
private static int[][] makeupCodes
private static int[][] pass
private static int[][] vert
private static int[][] horz
private int bits
private int ndex
private ByteBuffer outBuf
private int width
private int lineStride
byte[] refData
Constructor Detail |
public CCITTG4Encoder(int width)
TIFFFaxEncoder
for CCITT bilevel encoding.
Method Detail |
public static byte[] compress(byte[] data, int width, int height)
public void encodeT6Lines(byte[] data, int lineAddr, int height)
private int nextState(byte[] data, int base, int bitOffset, int maxOffset)
maxOffset
or offset of first pixel
different from pixel at bitOffset
.
private void initBitBuf()
private void add1DBits(int count, int color)
private void add2DBits(int[][] mode, int entry)
private void addEOL(boolean is1DMode, boolean addFill, boolean add1)
private void addEOFB()
public void encodeT6Line(byte[] data, int lineAddr)
public byte[] close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |