Class LZWEncoder
java.lang.Object
com.madgag.gif.fmsware.LZWEncoder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) byte[](package private) static final int(package private) boolean(package private) int(package private) int[](package private) int(package private) intprivate intprivate static final int(package private) int(package private) int(package private) int(package private) int(package private) static final int(package private) int[]private intprivate intprivate int(package private) int[](package private) int(package private) int(package private) int(package private) intprivate byte[]private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidchar_out(byte c, OutputStream outs) (package private) voidcl_block(OutputStream outs) (package private) voidcl_hash(int hsize) (package private) voidcompress(int init_bits, OutputStream outs) (package private) voidencode(OutputStream os) (package private) voidflush_char(OutputStream outs) (package private) final intMAXCODE(int n_bits) private int(package private) voidoutput(int code, OutputStream outs)
-
Field Details
-
EOF
private static final int EOF- See Also:
-
imgW
private int imgW -
imgH
private int imgH -
pixAry
private byte[] pixAry -
initCodeSize
private int initCodeSize -
remaining
private int remaining -
curPixel
private int curPixel -
BITS
static final int BITS- See Also:
-
HSIZE
static final int HSIZE- See Also:
-
n_bits
int n_bits -
maxbits
int maxbits -
maxcode
int maxcode -
maxmaxcode
int maxmaxcode -
htab
int[] htab -
codetab
int[] codetab -
hsize
int hsize -
free_ent
int free_ent -
clear_flg
boolean clear_flg -
g_init_bits
int g_init_bits -
ClearCode
int ClearCode -
EOFCode
int EOFCode -
cur_accum
int cur_accum -
cur_bits
int cur_bits -
masks
int[] masks -
a_count
int a_count -
accum
byte[] accum
-
-
Constructor Details
-
LZWEncoder
LZWEncoder(int width, int height, byte[] pixels, int color_depth)
-
-
Method Details
-
char_out
- Throws:
IOException
-
cl_block
- Throws:
IOException
-
cl_hash
void cl_hash(int hsize) -
compress
- Throws:
IOException
-
encode
- Throws:
IOException
-
flush_char
- Throws:
IOException
-
MAXCODE
final int MAXCODE(int n_bits) -
nextPixel
private int nextPixel() -
output
- Throws:
IOException
-