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) int
private int
private static final int
(package private) int
(package private) int
(package private) int
(package private) int
(package private) static final int
(package private) int[]
private int
private int
private int
(package private) int[]
(package private) int
(package private) int
(package private) int
(package private) int
private byte[]
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
char_out
(byte c, OutputStream outs) (package private) void
cl_block
(OutputStream outs) (package private) void
cl_hash
(int hsize) (package private) void
compress
(int init_bits, OutputStream outs) (package private) void
encode
(OutputStream os) (package private) void
flush_char
(OutputStream outs) (package private) final int
MAXCODE
(int n_bits) private int
(package private) void
output
(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
-