MVT API

mvt.util
Class GifEncoder

java.lang.Object
  |
  +--mvt.util.ImageEncoder
        |
        +--mvt.util.GifEncoder
All Implemented Interfaces:
java.awt.image.ImageConsumer

public class GifEncoder
extends ImageEncoder


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)  IntHashtable 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
           
(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
           
 
Fields inherited from class mvt.util.ImageEncoder
out
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
GifEncoder(java.awt.Image img, java.io.OutputStream out)
           
GifEncoder(java.awt.Image img, java.io.OutputStream out, boolean interlace)
           
GifEncoder(java.awt.image.ImageProducer prod, java.io.OutputStream out)
           
GifEncoder(java.awt.image.ImageProducer prod, java.io.OutputStream out, boolean interlace)
           
 
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 mvt.util.ImageEncoder
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

int width

height

int height

rgbPixels

int[][] rgbPixels

colorHash

IntHashtable 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
Constructor Detail

GifEncoder

public GifEncoder(java.awt.Image img,
                  java.io.OutputStream out)
           throws java.io.IOException

GifEncoder

public GifEncoder(java.awt.Image img,
                  java.io.OutputStream out,
                  boolean interlace)
           throws java.io.IOException

GifEncoder

public GifEncoder(java.awt.image.ImageProducer prod,
                  java.io.OutputStream out)
           throws java.io.IOException

GifEncoder

public GifEncoder(java.awt.image.ImageProducer prod,
                  java.io.OutputStream out,
                  boolean interlace)
           throws java.io.IOException
Method Detail

encodeStart

void encodeStart(int width,
                 int height)
           throws java.io.IOException
Specified by:
encodeStart in class ImageEncoder
java.io.IOException

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 ImageEncoder
java.io.IOException

encodeDone

void encodeDone()
          throws java.io.IOException
Specified by:
encodeDone in class ImageEncoder
java.io.IOException

GetPixel

byte GetPixel(int x,
              int y)
        throws java.io.IOException
java.io.IOException

writeString

static void writeString(java.io.OutputStream out,
                        java.lang.String str)
                 throws java.io.IOException
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
java.io.IOException

BumpPixel

void BumpPixel()

GIFNextPixel

int GIFNextPixel()
           throws java.io.IOException
java.io.IOException

Putword

void Putword(int w,
             java.io.OutputStream outs)
       throws java.io.IOException
java.io.IOException

Putbyte

void Putbyte(byte b,
             java.io.OutputStream outs)
       throws java.io.IOException
java.io.IOException

MAXCODE

final int MAXCODE(int n_bits)

compress

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

output

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

cl_block

void cl_block(java.io.OutputStream outs)
        throws java.io.IOException
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
java.io.IOException

flush_char

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

MVT API

mvt.icons