org.jmol.export.image
public class GifEncoder extends ImageEncoder
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GifEncoder.AdaptiveColorCollection |
(package private) static class |
GifEncoder.ColorItem |
(package private) static class |
GifEncoder.ColorVector |
Modifier and Type | Field and Description |
---|---|
(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) Map<String,GifEncoder.AdaptiveColorCollection> |
colorHash |
(package private) int |
CountDown |
(package private) int |
cur_accum |
(package private) int |
cur_bits |
(package private) int |
curx |
(package private) int |
cury |
(package private) static int |
EOF |
(package private) int |
EOFCode |
(package private) int |
free_ent |
(package private) int |
g_init_bits |
(package private) int |
height |
(package private) int |
Height |
(package private) int |
hsize |
(package private) static int |
HSIZE |
(package private) int[] |
htab |
private boolean |
interlace |
(package private) boolean |
Interlace |
(package private) int[] |
masks |
(package private) int |
maxbits |
(package private) int |
maxcode |
(package private) int |
maxmaxcode |
(package private) int |
n_bits |
(package private) int |
Pass |
(package private) int[][] |
rgbPixels |
(package private) int |
width |
(package private) int |
Width |
out
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
GifEncoder(Image img,
OutputStream out) |
GifEncoder(Image img,
OutputStream out,
boolean interlace) |
GifEncoder(ImageProducer prod,
OutputStream out) |
GifEncoder(ImageProducer prod,
OutputStream out,
boolean interlace) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
BumpPixel() |
(package private) void |
char_init() |
(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 |
encodeDone() |
(package private) void |
encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize) |
(package private) void |
encodeStart(int width,
int height) |
(package private) void |
flush_char(OutputStream outs) |
static byte[] |
getBytes(Image image) |
private static String |
getKey(int rgb) |
(package private) byte |
GetPixel(int x,
int y) |
(package private) void |
GIFEncode(OutputStream outs,
int Width,
int Height,
boolean Interlace,
byte Background,
int Transparent,
int BitsPerPixel,
byte[] Red,
byte[] Green,
byte[] Blue) |
(package private) int |
GIFNextPixel() |
(package private) int |
MAXCODE(int n_bits) |
(package private) void |
output(int code,
OutputStream outs) |
(package private) void |
Putbyte(byte b,
OutputStream outs) |
(package private) void |
Putword(int w,
OutputStream outs) |
static void |
write(Image image,
OutputStream os) |
(package private) static void |
writeString(OutputStream out,
String str) |
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setProperties
private boolean interlace
int width
int height
int[][] rgbPixels
Map<String,GifEncoder.AdaptiveColorCollection> colorHash
int Width
int Height
boolean Interlace
int curx
int cury
int CountDown
int Pass
static final int EOF
static final int BITS
static final int HSIZE
int n_bits
int maxbits
int maxcode
int maxmaxcode
int[] htab
int[] codetab
int hsize
int free_ent
boolean clear_flg
int g_init_bits
int ClearCode
int EOFCode
int cur_accum
int cur_bits
int[] masks
int a_count
byte[] accum
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)
public static void write(Image image, OutputStream os) throws IOException
IOException
public static byte[] getBytes(Image image)
void encodeStart(int width, int height) throws IOException
encodeStart
in class ImageEncoder
IOException
void encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize) throws IOException
encodePixels
in class ImageEncoder
IOException
void encodeDone() throws IOException
encodeDone
in class ImageEncoder
IOException
private static String getKey(int rgb)
byte GetPixel(int x, int y)
static void writeString(OutputStream out, String str) throws IOException
IOException
void GIFEncode(OutputStream outs, int Width, int Height, boolean Interlace, byte Background, int Transparent, int BitsPerPixel, byte[] Red, byte[] Green, byte[] Blue) throws IOException
IOException
void BumpPixel()
int GIFNextPixel()
void Putword(int w, OutputStream outs) throws IOException
IOException
void Putbyte(byte b, OutputStream outs) throws IOException
IOException
final int MAXCODE(int n_bits)
void compress(int init_bits, OutputStream outs) throws IOException
IOException
void output(int code, OutputStream outs) throws IOException
IOException
void cl_block(OutputStream outs) throws IOException
IOException
void cl_hash(int hsize)
void char_init()
void char_out(byte c, OutputStream outs) throws IOException
IOException
void flush_char(OutputStream outs) throws IOException
IOException