|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.image.codec.jpeg.JPEGHuffmanTable
A class to encapsulate a JPEG Huffman table.
Note that the classes in the com.sun.image.codec.jpeg package are not part of the core Java APIs. They are a part of Sun's JDK and JRE distributions. Although other licensees may choose to distribute these classes, developers cannot depend on their availability in non-Sun implementations. We expect that equivalent functionality will eventually be available in a core API or standard extension.
Field Summary | |
static JPEGHuffmanTable |
StdACChrominance
Standard Huffman table ( JPEG standard section K.3 ) |
static JPEGHuffmanTable |
StdACLuminance
Standard Huffman table ( JPEG standard section K.3 ) |
static JPEGHuffmanTable |
StdDCChrominance
Standard Huffman table ( JPEG standard section K.3 ) |
static JPEGHuffmanTable |
StdDCLuminance
Standard Huffman table ( JPEG standard section K.3 ) |
Constructor Summary | |
JPEGHuffmanTable(short[] lengths,
short[] symbols)
Creates a Huffman Table and initializes it. |
Method Summary | |
short[] |
getLengths()
Return a copy of the 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 |
public static final JPEGHuffmanTable StdDCLuminance
public static final JPEGHuffmanTable StdDCChrominance
public static final JPEGHuffmanTable StdACLuminance
public static final JPEGHuffmanTable StdACChrominance
Constructor Detail |
public JPEGHuffmanTable(short[] lengths, short[] symbols)
lengths
- lengths[k] = # of symbols with codes of length k
bits; lengths[0] is ignoredsymbols
- symbols in order of increasing code length
IllegalArgumentException
- if the length of
lengths
is greater than 17
IllegalArgumentException
- if the length of
symbols
is greater than 256
IllegalArgumentException
- if any of the values in
lengths
or symbols
is less than zeroMethod Detail |
public short[] getLengths()
public short[] getSymbols()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |