public class JPEGHuffmanTable extends Object
关于JPEG标准插件的操作的更多信息,见JPEG metadata format specification and usage notes
| Modifier and Type | Field and Description |
|---|---|
static JPEGHuffmanTable |
StdACChrominance
标准色度表交赫夫曼。
|
static JPEGHuffmanTable |
StdACLuminance
标准交流亮度赫夫曼表。
|
static JPEGHuffmanTable |
StdDCChrominance
标准直流色度赫夫曼表。
|
static JPEGHuffmanTable |
StdDCLuminance
标准直流亮度赫夫曼表。
|
| Constructor and Description |
|---|
JPEGHuffmanTable(short[] lengths, short[] values)
创建一个赫夫曼表并初始化它。
|
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[] values)
lengths -
shorts哪里
lengths[k]等于值的数目与长度
k + 1位对应码数组。
values -一个数组中增加代码长度为包含值的短裤。
IllegalArgumentException -如果
lengths或
values是空的,
lengths的长度大于16,
values的长度大于256,如果
lengths或
values任何值小于零,或者如果数组不描述有效的赫夫曼表。
public short[] getLengths()
shorts包含的值的数目为每个长度在赫夫曼表数组。返回的数组是一个副本。
short阵列的
array[k-1]等于长度
k表的值的数目。
getValues()
public short[] getValues()
shorts数组排列。数组的解释依赖于返回的值从
getLengths。返回的数组是一个副本。
short数组的值。
getLengths()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.