changeset 13886 | 99b265e0d1d0 |
parent 13885 | 5f819b90d479 |
child 13887 | b172a5d40eee |
13885:5f819b90d479 | 13886:99b265e0d1d0 |
---|---|
1 /* Compress/HuffmanEncode.h */ |
|
2 |
|
3 #ifndef __COMPRESS_HUFFMANENCODE_H |
|
4 #define __COMPRESS_HUFFMANENCODE_H |
|
5 |
|
6 #include "../../Types.h" |
|
7 |
|
8 /* |
|
9 Conditions: |
|
10 num <= 1024 = 2 ^ NUM_BITS |
|
11 Sum(freqs) < 4M = 2 ^ (32 - NUM_BITS) |
|
12 maxLen <= 16 = kMaxLen |
|
13 Num_Items(p) >= HUFFMAN_TEMP_SIZE(num) |
|
14 */ |
|
15 |
|
16 void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen); |
|
17 |
|
18 #endif |