Class CCITTG4Encoder
java.lang.Object
com.lowagie.text.pdf.codec.CCITTG4Encoder
Deprecated.
Encodes data in the CCITT G4 FAX format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDeprecated.private static final intDeprecated.private intDeprecated.private byte[]Deprecated.private static final intDeprecated.private static final intDeprecated.private static final intDeprecated.private static final intDeprecated.private static final intDeprecated.private int[]Deprecated.private static final intDeprecated.private int[]Deprecated.private intDeprecated.private static byte[]Deprecated.private ByteBufferDeprecated.private int[]Deprecated.private byte[]Deprecated.private intDeprecated.private intDeprecated.private static final intDeprecated.private intDeprecated.private int[][]Deprecated.private int[][]Deprecated.private int[][]Deprecated.private static byte[]Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]close()Deprecated.Closes the encoder and returns the encoded data.static byte[]compress(byte[] data, int width, int height) Deprecated.Encodes a full image.private voidDeprecated.voidfax4Encode(byte[] data, int height) Deprecated.Encodes a number of lines.voidfax4Encode(byte[] data, int offset, int size) Deprecated.Encodes a number of lines.private voidDeprecated.private static intfind0span(byte[] bp, int offset, int bs, int be) Deprecated.private static intfind1span(byte[] bp, int offset, int bs, int be) Deprecated.private static intfinddiff(byte[] bp, int offset, int bs, int be, int color) Deprecated.private static intfinddiff2(byte[] bp, int offset, int bs, int be, int color) Deprecated.private voidhandleHorizontalMode(int a0, int a1, int a2) Deprecated.private intpixel(byte[] data, int offset, int bit) Deprecated.private voidputBits(int bits, int length) Deprecated.private voidputcode(int[] table) Deprecated.private voidputspan(int span, int[][] tab) Deprecated.
-
Field Details
-
LENGTH
private static final int LENGTHDeprecated.- See Also:
-
CODE
private static final int CODEDeprecated.- See Also:
-
RUNLEN
private static final int RUNLENDeprecated.- See Also:
-
EOL
private static final int EOLDeprecated.- See Also:
-
G3CODE_EOL
private static final int G3CODE_EOLDeprecated.- See Also:
-
G3CODE_INVALID
private static final int G3CODE_INVALIDDeprecated.- See Also:
-
G3CODE_EOF
private static final int G3CODE_EOFDeprecated.- See Also:
-
G3CODE_INCOMP
private static final int G3CODE_INCOMPDeprecated.- See Also:
-
zeroruns
private static byte[] zerorunsDeprecated. -
oneruns
private static byte[] onerunsDeprecated. -
rowbytes
private int rowbytesDeprecated. -
rowpixels
private int rowpixelsDeprecated. -
bit
private int bitDeprecated. -
data
private int dataDeprecated. -
refline
private byte[] reflineDeprecated. -
outBuf
Deprecated. -
dataBp
private byte[] dataBpDeprecated. -
offsetData
private int offsetDataDeprecated. -
sizeData
private int sizeDataDeprecated. -
TIFFFaxWhiteCodes
private int[][] TIFFFaxWhiteCodesDeprecated. -
TIFFFaxBlackCodes
private int[][] TIFFFaxBlackCodesDeprecated. -
horizcode
private int[] horizcodeDeprecated. -
passcode
private int[] passcodeDeprecated. -
vcodes
private int[][] vcodesDeprecated. -
msbmask
private int[] msbmaskDeprecated.
-
-
Constructor Details
-
CCITTG4Encoder
public CCITTG4Encoder(int width) Deprecated.Creates a new encoder.- Parameters:
width- the line width
-
-
Method Details
-
compress
public static byte[] compress(byte[] data, int width, int height) Deprecated.Encodes a full image.- Parameters:
data- the data to encodewidth- the image widthheight- the image height- Returns:
- the encoded image
-
find1span
private static int find1span(byte[] bp, int offset, int bs, int be) Deprecated. -
find0span
private static int find0span(byte[] bp, int offset, int bs, int be) Deprecated. -
finddiff
private static int finddiff(byte[] bp, int offset, int bs, int be, int color) Deprecated. -
finddiff2
private static int finddiff2(byte[] bp, int offset, int bs, int be, int color) Deprecated. -
fax4Encode
public void fax4Encode(byte[] data, int offset, int size) Deprecated.Encodes a number of lines.- Parameters:
data- the data to be encodedoffset- the offset into the datasize- the size of the data to be encoded
-
fax4Encode
public void fax4Encode(byte[] data, int height) Deprecated.Encodes a number of lines.- Parameters:
data- the data to be encodedheight- the number of lines to encode
-
putcode
private void putcode(int[] table) Deprecated. -
putspan
private void putspan(int span, int[][] tab) Deprecated. -
putBits
private void putBits(int bits, int length) Deprecated. -
Fax3Encode2DRow
private void Fax3Encode2DRow()Deprecated. -
handleHorizontalMode
private void handleHorizontalMode(int a0, int a1, int a2) Deprecated. -
Fax4PostEncode
private void Fax4PostEncode()Deprecated. -
close
public byte[] close()Deprecated.Closes the encoder and returns the encoded data.- Returns:
- the encoded data
-
pixel
private int pixel(byte[] data, int offset, int bit) Deprecated.
-