|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.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 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 static int[][] |
pass
Black and white pass mode table. |
private static int[] |
passMode
Pass mode table. |
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. |
Constructor Summary | |
CCITTG4Encoder()
Constructs a TIFFFaxEncoder for CCITT bilevel encoding. |
Method Summary | |
private int |
add1DBits(byte[] buf,
int where,
int count,
int color)
Get code for run and add to compressed bitstream. |
private int |
add2DBits(byte[] buf,
int where,
int[][] mode,
int entry)
Place entry from mode table into compressed bitstream. |
private int |
addEOFB(byte[] buf,
int where)
Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream. |
private int |
addEOL(boolean is1DMode,
boolean addFill,
boolean add1,
byte[] buf,
int where)
Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment. |
static byte[] |
compress(byte[] data,
int width,
int height)
|
byte[] |
encodeT6(byte[] data,
int width,
int height)
Encode a buffer of data using CCITT T.6 Compression also known as Group 4 facsimile compression. |
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
Constructor Detail |
public CCITTG4Encoder()
TIFFFaxEncoder
for CCITT bilevel encoding.
Method Detail |
public static byte[] compress(byte[] data, int width, 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 int add1DBits(byte[] buf, int where, int count, int color)
private int add2DBits(byte[] buf, int where, int[][] mode, int entry)
private int addEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)
private int addEOFB(byte[] buf, int where)
public byte[] encodeT6(byte[] data, int width, int height)
data
- The row of data to compress.width
- Number of bits in the row.height
- Number of rows in the buffer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |