Class PngDeflater
java.lang.Object
org.eclipse.swt.internal.image.PngDeflater
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) static final int(package private) int(package private) int(package private) ByteArrayOutputStream(package private) static final PngDeflater.Code[](package private) static final int(package private) PngDeflater.Link[](package private) byte[](package private) int(package private) static final PngDeflater.Code[](package private) static final int(package private) static final int(package private) static final short[](package private) int(package private) PngDeflater.Link[](package private) static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) voidcompress()(package private) voidbyte[]deflate(byte[] input) (package private) PngDeflater.CodefindCode(int value, PngDeflater.Code[] codes) (package private) PngDeflater.MatchfindLongestMatch(int position, PngDeflater.Link firstPosition) (package private) inthash(byte[] bytes) (package private) voidoutputLiteral(byte literal) (package private) voidoutputMatch(int length, int distance) (package private) voidstore()(package private) voidupdateAdler(byte value) (package private) voidupdateHashtable(int to, int from) (package private) voidwriteBits(int value, int count) (package private) voidwriteInt(ByteArrayOutputStream baos, int theInt) (package private) voidwriteShortLSB(ByteArrayOutputStream baos, int theShort)
-
Field Details
-
BASE
static final int BASE- See Also:
-
WINDOW
static final int WINDOW- See Also:
-
MIN_LENGTH
static final int MIN_LENGTH- See Also:
-
MAX_MATCHES
static final int MAX_MATCHES- See Also:
-
HASH
static final int HASH- See Also:
-
in
byte[] in -
inLength
int inLength -
bytes
ByteArrayOutputStream bytes -
adler32
int adler32 -
buffer
int buffer -
bitCount
int bitCount -
hashtable
PngDeflater.Link[] hashtable -
window
PngDeflater.Link[] window -
nextWindow
int nextWindow -
mirrorBytes
static final short[] mirrorBytes -
lengthCodes
-
distanceCodes
-
-
Constructor Details
-
PngDeflater
public PngDeflater()
-
-
Method Details
-
writeShortLSB
-
writeInt
-
updateAdler
void updateAdler(byte value) -
hash
int hash(byte[] bytes) -
writeBits
void writeBits(int value, int count) -
alignToByte
void alignToByte() -
outputLiteral
void outputLiteral(byte literal) -
findCode
-
outputMatch
void outputMatch(int length, int distance) -
findLongestMatch
-
updateHashtable
void updateHashtable(int to, int from) -
compress
void compress() -
compressHuffmanOnly
void compressHuffmanOnly() -
store
void store() -
deflate
public byte[] deflate(byte[] input)
-