java.lang.Object
com.memoire.acme.AcmeImageEncoder
com.memoire.acme.AcmeGifEncoder
- All Implemented Interfaces:
- java.awt.image.ImageConsumer
- public class AcmeGifEncoder
- extends AcmeImageEncoder
|
Method Summary |
(package private) void |
BumpPixel()
|
(package private) void |
char_init()
|
(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 |
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(java.io.OutputStream outs)
|
(package private) byte |
GetPixel(int x,
int y)
|
(package private) void |
GIFEncode(java.io.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,
java.io.OutputStream outs)
|
(package private) void |
Putbyte(byte b,
java.io.OutputStream outs)
|
(package private) void |
Putword(int w,
java.io.OutputStream outs)
|
(package private) static void |
writeString(java.io.OutputStream out,
java.lang.String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interlace
private boolean interlace
width
int width
height
int height
rgbPixels
int[][] rgbPixels
colorHash
AcmeIntHashtable colorHash
Width
int Width
Height
int Height
Interlace
boolean Interlace
curx
int curx
cury
int cury
CountDown
int CountDown
Pass
int Pass
EOF
static final int EOF
- See Also:
- Constant Field Values
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
AcmeGifEncoder
public AcmeGifEncoder(java.awt.Image img,
java.io.OutputStream out)
throws java.io.IOException
AcmeGifEncoder
public AcmeGifEncoder(java.awt.Image img,
java.io.OutputStream out,
boolean interlace)
throws java.io.IOException
AcmeGifEncoder
public AcmeGifEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out)
throws java.io.IOException
AcmeGifEncoder
public AcmeGifEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out,
boolean interlace)
throws java.io.IOException
encodeStart
void encodeStart(int width,
int height)
throws java.io.IOException
- Specified by:
encodeStart in class AcmeImageEncoder
encodePixels
void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws java.io.IOException
- Specified by:
encodePixels in class AcmeImageEncoder
encodeDone
void encodeDone()
throws java.io.IOException
- Specified by:
encodeDone in class AcmeImageEncoder
GetPixel
byte GetPixel(int x,
int y)
throws java.io.IOException
writeString
static void writeString(java.io.OutputStream out,
java.lang.String str)
throws java.io.IOException
GIFEncode
void GIFEncode(java.io.OutputStream outs,
int Width,
int Height,
boolean Interlace,
byte Background,
int Transparent,
int BitsPerPixel,
byte[] Red,
byte[] Green,
byte[] Blue)
throws java.io.IOException
BumpPixel
void BumpPixel()
GIFNextPixel
int GIFNextPixel()
throws java.io.IOException
Putword
void Putword(int w,
java.io.OutputStream outs)
throws java.io.IOException
Putbyte
void Putbyte(byte b,
java.io.OutputStream outs)
throws java.io.IOException
MAXCODE
final int MAXCODE(int n_bits)
compress
void compress(int init_bits,
java.io.OutputStream outs)
throws java.io.IOException
output
void output(int code,
java.io.OutputStream outs)
throws java.io.IOException
cl_block
void cl_block(java.io.OutputStream outs)
throws java.io.IOException
cl_hash
void cl_hash(int hsize)
char_init
void char_init()
char_out
void char_out(byte c,
java.io.OutputStream outs)
throws java.io.IOException
flush_char
void flush_char(java.io.OutputStream outs)
throws java.io.IOException