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 byteprivate intprivate int(package private) byte[](package private) intprivate intprivate int(package private) final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd8Bits(byte b) voidaddBit(boolean bit) private intdeltaCompression(byte[] seed, byte[] buff, int len) voidendLine()private intrunCompression(byte[] buff, int len) private inttiffCompression(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
-