class LZWEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
a_count |
(package private) byte[] |
accum |
(package private) static int |
BITS |
(package private) boolean |
clear_flg |
(package private) int |
ClearCode |
(package private) int[] |
codetab |
(package private) int |
cur_accum |
(package private) int |
cur_bits |
private int |
curPixel |
private static int |
EOF |
(package private) int |
EOFCode |
(package private) int |
free_ent |
(package private) int |
g_init_bits |
(package private) int |
hsize |
(package private) static int |
HSIZE |
(package private) int[] |
htab |
private int |
imgH |
private int |
imgW |
private int |
initCodeSize |
(package private) int[] |
masks |
(package private) int |
maxbits |
(package private) int |
maxcode |
(package private) int |
maxmaxcode |
(package private) int |
n_bits |
private byte[] |
pixAry |
private int |
remaining |
Constructor and Description |
---|
LZWEncoder(int width,
int height,
byte[] pixels,
int color_depth) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
char_out(byte c,
java.io.OutputStream outs) |
(package private) void |
cl_block(java.io.OutputStream outs) |
(package private) void |
cl_hash(int lhsize) |
(package private) void |
compress(int init_bits,
java.io.OutputStream outs) |
(package private) void |
encode(java.io.OutputStream os) |
(package private) void |
flush_char(java.io.OutputStream outs) |
(package private) int |
MAXCODE(int ln_bits) |
private int |
nextPixel() |
(package private) void |
output(int code,
java.io.OutputStream outs) |
private static final int EOF
private int imgW
private int imgH
private byte[] pixAry
private int initCodeSize
private int remaining
private int curPixel
static final int BITS
static final int HSIZE
int n_bits
int maxbits
int maxcode
int maxmaxcode
int[] htab
int[] codetab
int hsize
int free_ent
boolean clear_flg
int g_init_bits
int ClearCode
int EOFCode
int cur_accum
int cur_bits
int[] masks
int a_count
byte[] accum
void char_out(byte c, java.io.OutputStream outs) throws java.io.IOException
java.io.IOException
void cl_block(java.io.OutputStream outs) throws java.io.IOException
java.io.IOException
void cl_hash(int lhsize)
void compress(int init_bits, java.io.OutputStream outs) throws java.io.IOException
java.io.IOException
void encode(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
void flush_char(java.io.OutputStream outs) throws java.io.IOException
java.io.IOException
final int MAXCODE(int ln_bits)
private int nextPixel()
void output(int code, java.io.OutputStream outs) throws java.io.IOException
java.io.IOException
Copyright © 2013. All Rights Reserved.