Package org.apache.fop.render.pcl
Class PCLGenerator.ColorEncoder
java.lang.Object
org.apache.fop.render.pcl.PCLGenerator.ColorEncoder
- Enclosing class:
PCLGenerator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final byte[]
(package private) final byte[]
private int
(package private) int
(package private) byte[]
private int
(package private) final byte[]
(package private) final byte[]
(package private) final byte[]
private byte
private int
private int
(package private) byte[]
(package private) int
private int
private int
(package private) final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add8Bits
(byte b) void
addBit
(boolean bit) private int
deltaCompression
(byte[] seed, byte[] buff, int len) void
endLine()
private int
runCompression
(byte[] buff, int len) private int
tiffCompression
(byte[] encodedTagged, int len)
-
Field Details
-
imgw
private int imgw -
bytewidth
private int bytewidth -
ib
private byte ib -
currentIndex
private int currentIndex -
len
private int len -
shiftBit
private int shiftBit -
whiteLines
private int whiteLines -
zeros
final byte[] zeros -
buff1
final byte[] buff1 -
buff2
final byte[] buff2 -
encodedRun
final byte[] encodedRun -
encodedTagged
final byte[] encodedTagged -
encodedDelta
final byte[] encodedDelta -
seed
byte[] seed -
current
byte[] current -
compression
int compression -
seedLen
int seedLen
-
-
Constructor Details
-
ColorEncoder
-
-
Method Details
-
runCompression
private int runCompression(byte[] buff, int len) -
deltaCompression
private int deltaCompression(byte[] seed, byte[] buff, int len) -
tiffCompression
private int tiffCompression(byte[] encodedTagged, int len) -
addBit
public void addBit(boolean bit) -
add8Bits
public void add8Bits(byte b) -
endLine
- Throws:
IOException
-