public class JPEGHuffmanTable extends Object
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.
| 限定符和类型 | 字段和说明 |
|---|---|
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 )
|
| 构造器和说明 |
|---|
JPEGHuffmanTable(short[] lengths,
short[] symbols)
Creates a Huffman Table and initializes it.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public static final JPEGHuffmanTable StdDCLuminance
public static final JPEGHuffmanTable StdDCChrominance
public static final JPEGHuffmanTable StdACLuminance
public static final JPEGHuffmanTable StdACChrominance
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 lengthIllegalArgumentException - if the length of
lengths is greater than 17IllegalArgumentException - if the length of
symbols is greater than 256IllegalArgumentException - if any of the values in
lengths or symbols is less than zeropublic short[] getLengths()
public short[] getSymbols()
Copyright © 2022. All rights reserved.