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

Quick Search    Search Deep

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

java.lang.Object
  extended byAcme.JPM.Encoders.GrayJPEG

public class GrayJPEG
extends java.lang.Object

DOCUMENT ME!


Field Summary
private  byte[] APP0
           
private  byte[] BE
           
private  int BitCnt
           
private  byte[] Bits
           
private  int[] BITS
           
private  int CODE
           
private  long DATA
           
private  int[] EHUFCO
           
private  int[] EHUFSI
           
private  byte[] EOI
           
private  java.io.OutputStream fos
           
private  byte[] HuffACHeader
           
private  int[] HUFFCODE
           
private  byte[] HuffDC
           
private  int[] HUFFSIZE
           
private  byte[] Huffval
           
private  int[] HUFFVAL
           
private  int I
           
private  java.awt.Image image
           
private  int J
           
private  int K
           
private  int LASTK
           
private  int ln
           
private  byte[] QNT
           
private  float[][] QT
           
private  int R
           
private  int SI
           
private  byte[] SOF
           
private  byte[] SOI
           
private  byte[] SOS
           
private  int SSSS
           
private  java.lang.String str
           
private  int X
           
private  int Y
           
private  int[][] ZZ
           
 
Constructor Summary
GrayJPEG()
           
 
Method Summary
 void compress(java.awt.Image i, java.io.OutputStream os)
           
private  void Encode_AC_coefficients(int[] ZZ)
           
private  void Encode_R(int ZZ)
           
private  int[] FDCT(int[][] block)
           
private  void Generate_code_table()
           
private  void Generate_size_table()
           
private  void getPixels(int[] data)
           
private  void Huffman(int[][] blocks)
           
private  int MagCat(int dat)
           
private  void Order_codes()
           
private  void writeData(long dat, int bits)
           
private  void writeEnd()
           
private  void writeEndData()
           
private  void writeHeaders()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

private java.awt.Image image

fos

private java.io.OutputStream fos

str

private java.lang.String str

APP0

private byte[] APP0

BE

private byte[] BE

BITS

private int[] BITS

Bits

private byte[] Bits

EHUFCO

private int[] EHUFCO

EHUFSI

private int[] EHUFSI

EOI

private byte[] EOI

HUFFCODE

private int[] HUFFCODE

HUFFSIZE

private int[] HUFFSIZE

HUFFVAL

private int[] HUFFVAL

HuffACHeader

private byte[] HuffACHeader

HuffDC

private byte[] HuffDC

Huffval

private byte[] Huffval

QNT

private byte[] QNT

QT

private float[][] QT

SOF

private byte[] SOF

SOI

private byte[] SOI

SOS

private byte[] SOS

ZZ

private int[][] ZZ

BitCnt

private int BitCnt

CODE

private int CODE

I

private int I

J

private int J

K

private int K

LASTK

private int LASTK

R

private int R

SI

private int SI

SSSS

private int SSSS

X

private int X

Y

private int Y

ln

private int ln

DATA

private long DATA
Constructor Detail

GrayJPEG

public GrayJPEG()
Method Detail

compress

public void compress(java.awt.Image i,
                     java.io.OutputStream os)

getPixels

private void getPixels(int[] data)

Encode_AC_coefficients

private void Encode_AC_coefficients(int[] ZZ)

Encode_R

private void Encode_R(int ZZ)

FDCT

private int[] FDCT(int[][] block)

Generate_code_table

private void Generate_code_table()

Generate_size_table

private void Generate_size_table()

Huffman

private void Huffman(int[][] blocks)

MagCat

private int MagCat(int dat)

Order_codes

private void Order_codes()

writeData

private void writeData(long dat,
                       int bits)

writeEnd

private void writeEnd()

writeEndData

private void writeEndData()

writeHeaders

private void writeHeaders()