Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Acme.JPM.Encoders
Class GifEncoder  view GifEncoder download GifEncoder.java

java.lang.Object
  extended byAcme.JPM.Encoders.ImageEncoder
      extended byAcme.JPM.Encoders.GifEncoder
All Implemented Interfaces:
java.awt.image.ImageConsumer

public class GifEncoder
extends ImageEncoder

Write out an image as a GIF.

Fetch the software.
Fetch the entire Acme package.


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)  Acme.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
           
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
           
 
Fields inherited from class Acme.JPM.Encoders.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 Acme.JPM.Encoders.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

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

colorHash

Acme.IntHashtable colorHash

accum

byte[] accum

codetab

int[] codetab

htab

int[] htab

masks

int[] masks

rgbPixels

int[][] rgbPixels

Interlace

boolean Interlace

clear_flg

boolean clear_flg

ClearCode

int ClearCode

CountDown

int CountDown

EOFCode

int EOFCode

Height

int Height

Pass

int Pass

Width

int Width

a_count

int a_count

cur_accum

int cur_accum

cur_bits

int cur_bits

curx

int curx

cury

int cury

free_ent

int free_ent

g_init_bits

int g_init_bits

height

int height

hsize

int hsize

maxbits

int maxbits

maxcode

int maxcode

maxmaxcode

int maxmaxcode

n_bits

int n_bits

width

int width

interlace

private boolean interlace
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

GetPixel

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

MAXCODE

final int MAXCODE(int n_bits)

Putbyte

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

char_init

void char_init()

char_out

void char_out(byte c,
              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)

compress

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

encodeDone

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

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

encodeStart

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

writeString

static void writeString(java.io.OutputStream out,
                        java.lang.String str)
                 throws java.io.IOException

BumpPixel

void BumpPixel()

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

GIFNextPixel

int GIFNextPixel()
           throws java.io.IOException

Putword

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

flush_char

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

output

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