Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Class java.awt.image.codec.JPEGHuffmanTable

java.lang.Object
    |
    +----java.awt.image.codec.JPEGHuffmanTable

public class JPEGHuffmanTable
extends Object
implements Cloneable
A class to encapsulate a JPEG Huffman table


Field Summary
static short[]  lengths_ac_chrominance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  lengths_ac_luminance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  lengths_dc_chrominance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  lengths_dc_luminance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  symbols_ac_chrominance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  symbols_ac_luminance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  symbols_dc_chrominance
Standard Huffman table ( JPEG standard section K.3 )
static short[]  symbols_dc_luminance
Standard Huffman table ( JPEG standard section K.3 )
 

Constructor Summary
 JPEGHuffmanTable(short[] lengths, short[] symbols)
Creates a Huffman Table and initializes it.
 

Method Summary
Object  clone()
Clones this table.
short[]  getLengths()
Return an array containing the number of symbols for each length in the Huffman table.
short[]  getSymbols()
Return an array containing the Huffman symbols arranged by increasing length.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lengths_dc_luminance

protected static final short[] lengths_dc_luminance
Standard Huffman table ( JPEG standard section K.3 )

symbols_dc_luminance

protected static final short[] symbols_dc_luminance
Standard Huffman table ( JPEG standard section K.3 )

lengths_dc_chrominance

protected static final short[] lengths_dc_chrominance
Standard Huffman table ( JPEG standard section K.3 )

symbols_dc_chrominance

protected static final short[] symbols_dc_chrominance
Standard Huffman table ( JPEG standard section K.3 )

lengths_ac_luminance

protected static final short[] lengths_ac_luminance
Standard Huffman table ( JPEG standard section K.3 )

symbols_ac_luminance

protected static final short[] symbols_ac_luminance
Standard Huffman table ( JPEG standard section K.3 )

lengths_ac_chrominance

protected static final short[] lengths_ac_chrominance
Standard Huffman table ( JPEG standard section K.3 )

symbols_ac_chrominance

protected static final short[] symbols_ac_chrominance
Standard Huffman table ( JPEG standard section K.3 )
Constructor Detail

JPEGHuffmanTable

public JPEGHuffmanTable(short[] lengths,
                        short[] symbols)
Creates a Huffman Table and initializes it.
Parameters:
lengths - lengths[k] = # of symbols with codes of length k bits; lengths[0] is unused
symbols - symbols in order of increasing code length
Method Detail

getLengths

public short[] getLengths()
Return an array containing the number of symbols for each length in the Huffman table.
Returns:
A short array where array[k] = # of symbols in the table of length k. array[0] is unused

getSymbols

public short[] getSymbols()
Return an array containing the Huffman symbols arranged by increasing length.

clone

public Object clone()
Clones this table.
Overrides:
clone in class Object

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.