Package org.jrobin.graph
Class GifPixelsEncoder
- java.lang.Object
-
- org.jrobin.graph.GifPixelsEncoder
-
class GifPixelsEncoder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) inta_count(package private) byte[]accum(package private) static intBITS(package private) booleanclear_flg(package private) intClearCode(package private) int[]codetab(package private) intcur_accum(package private) intcur_bits(package private) intEOFCode(package private) intfree_ent(package private) intg_init_bits(package private) inthsize(package private) static intHSIZE(package private) int[]htab(package private) int[]masks(package private) intmaxbits(package private) intmaxcode(package private) intmaxmaxcode(package private) intn_bits
-
Constructor Summary
Constructors Constructor Description GifPixelsEncoder(int width, int height, byte[] pixels, boolean interlaced, int color_depth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidchar_init()(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) intMAXCODE(int n_bits)(package private) voidoutput(int code, OutputStream outs)
-
-
-
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
-
-
Method Detail
-
encode
void encode(OutputStream os) throws IOException
- Throws:
IOException
-
MAXCODE
final int MAXCODE(int n_bits)
-
compress
void compress(int init_bits, OutputStream outs) throws IOException- Throws:
IOException
-
output
void output(int code, OutputStream outs) throws IOException- Throws:
IOException
-
cl_block
void cl_block(OutputStream outs) throws IOException
- Throws:
IOException
-
cl_hash
void cl_hash(int hsize)
-
char_init
void char_init()
-
char_out
void char_out(byte c, OutputStream outs) throws IOException- Throws:
IOException
-
flush_char
void flush_char(OutputStream outs) throws IOException
- Throws:
IOException
-
-