ij.plugin
Class LZWEncoder

java.lang.Object
  extended by ij.plugin.LZWEncoder

 class LZWEncoder
extends java.lang.Object


Field Summary
(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
           
(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
           
(package private)  int[] masks
           
(package private)  int maxbits
           
(package private)  int maxcode
           
(package private)  int maxmaxcode
           
(package private)  int n_bits
           
 
Constructor Summary
LZWEncoder(int width, int height, byte[] pixels, int color_depth)
           
 
Method Summary
(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 hsize)
           
(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 n_bits)
           
(package private)  void output(int code, java.io.OutputStream outs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BITS

static final int BITS
See Also:
Constant Field Values

HSIZE

static final int HSIZE
See Also:
Constant Field Values

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 Detail

LZWEncoder

LZWEncoder(int width,
           int height,
           byte[] pixels,
           int color_depth)
Method Detail

char_out

void char_out(byte c,
              java.io.OutputStream outs)
        throws java.io.IOException
Throws:
java.io.IOException

cl_block

void cl_block(java.io.OutputStream outs)
        throws java.io.IOException
Throws:
java.io.IOException

cl_hash

void cl_hash(int hsize)

compress

void compress(int init_bits,
              java.io.OutputStream outs)
        throws java.io.IOException
Throws:
java.io.IOException

encode

void encode(java.io.OutputStream os)
      throws java.io.IOException
Throws:
java.io.IOException

flush_char

void flush_char(java.io.OutputStream outs)
          throws java.io.IOException
Throws:
java.io.IOException

MAXCODE

final int MAXCODE(int n_bits)

output

void output(int code,
            java.io.OutputStream outs)
      throws java.io.IOException
Throws:
java.io.IOException