Package edu.wisc.ssec.mcidasv.util
Class LZWEncoder
java.lang.Object
edu.wisc.ssec.mcidasv.util.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
- See Also:
-
imgW
-
imgH
-
pixAry
-
initCodeSize
-
remaining
-
curPixel
-
BITS
- See Also:
-
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
-
compress
- Throws:
IOException
-
encode
- Throws:
IOException
-
flush_char
- Throws:
IOException
-
MAXCODE
-
nextPixel
-
output
- Throws:
IOException
-