org.jmol.export.image
Class GifEncoder
public
class
GifEncoder
extends ImageEncoder
Method Summary |
void | BumpPixel() |
void | char_init() |
void | char_out(byte c, OutputStream outs) |
void | cl_block(OutputStream outs) |
void | cl_hash(int hsize) |
void | compress(int init_bits, OutputStream outs) |
void | encodeDone() |
void | encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize) |
void | encodeStart(int width, int height) |
void | flush_char(OutputStream outs) |
static String | getKey(int rgb) |
byte | GetPixel(int x, int y) |
void | GIFEncode(OutputStream outs, int Width, int Height, boolean Interlace, byte Background, int Transparent, int BitsPerPixel, byte[] Red, byte[] Green, byte[] Blue) |
int | GIFNextPixel() |
int | MAXCODE(int n_bits) |
void | output(int code, OutputStream outs) |
void | Putbyte(byte b, OutputStream outs) |
void | Putword(int w, OutputStream outs) |
static void | writeString(OutputStream out, String str) |
byte[] accum
int a_count
static final int BITS
boolean clear_flg
int[] codetab
Hashtable colorHash
int curx
int cury
int cur_accum
int cur_bits
int ClearCode
int CountDown
static final int EOF
int EOFCode
int free_ent
int g_init_bits
int height
int hsize
int[] htab
int Height
static final int HSIZE
private boolean interlace
boolean Interlace
int[] masks
int maxbits
int maxcode
int maxmaxcode
int n_bits
int Pass
int[][] rgbPixels
int width
int Width
public GifEncoder(Image img, OutputStream out)
public GifEncoder(Image img, OutputStream out, boolean interlace)
public GifEncoder(ImageProducer prod, OutputStream out)
public GifEncoder(ImageProducer prod, OutputStream out, boolean interlace)
void BumpPixel()
void char_init()
void char_out(byte c, OutputStream outs)
void cl_block(OutputStream outs)
void cl_hash(int hsize)
void compress(int init_bits, OutputStream outs)
void encodeDone()
void encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize)
void encodeStart(int width, int height)
void flush_char(OutputStream outs)
private static String getKey(int rgb)
byte GetPixel(int x, int y)
void GIFEncode(OutputStream outs, int Width, int Height, boolean Interlace, byte Background, int Transparent, int BitsPerPixel, byte[] Red, byte[] Green, byte[] Blue)
int GIFNextPixel()
final int MAXCODE(int n_bits)
void output(int code, OutputStream outs)
void Putbyte(byte b, OutputStream outs)
void Putword(int w, OutputStream outs)
static void writeString(OutputStream out, String str)