| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | HUFFMAN_MAX_TABLE_SIZE
Maximum possible Huffman table size for an alphabet size of 704, max code length 15 and root table bits 8. |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | buildHuffmanTable(int[] rootTable, int tableOffset, int rootBits, int[] codeLengths, int codeLengthsSize)
Builds Huffman lookup table assuming code lengths are in symbol order. |
| private static int | |
| private static int | Returns: table width of the next 2nd level table.histogram of bit lengths for the remaining symbols, count, int code length of the next processed symbol. len, int rootBits)
|
| private static void | replicateValue(int[] table, int offset, int step, int end, int item)
Stores |
| HUFFMAN_MAX_TABLE_SIZE | back to summary |
|---|---|
| pack-priv static final int HUFFMAN_MAX_TABLE_SIZE Maximum possible Huffman table size for an alphabet size of 704, max code length 15 and root table bits 8. | |
| MAX_LENGTH | back to summary |
|---|---|
| private static final int MAX_LENGTH | |
| Huffman | back to summary |
|---|---|
| pack-priv Huffman() | |
| buildHuffmanTable | back to summary |
|---|---|
| pack-priv static void buildHuffmanTable(int[] rootTable, int tableOffset, int rootBits, int[] codeLengths, int codeLengthsSize) Builds Huffman lookup table assuming code lengths are in symbol order. | |
| getNextKey | back to summary |
|---|---|
| private static int getNextKey(int key, int len) Returns reverse(reverse(key, len) + 1, len). reverse(key, len) is the bit-wise reversal of the len least significant bits of key. | |
| nextTableBitSize | back to summary |
|---|---|
private static int nextTableBitSize(int[] count, int len, int rootBits)
| |
| replicateValue | back to summary |
|---|---|
| private static void replicateValue(int[] table, int offset, int step, int end, int item) Stores Assumes that end is an integer multiple of step. | |