misc/libphysfs/lzma/C/Compress/Huffman/HuffmanEncode.h
branchui-scaling
changeset 15283 c4fd2813b127
parent 13390 0135e64c6c66
parent 15279 7ab5cf405686
child 15663 d92eeb468dad
equal deleted inserted replaced
13390:0135e64c6c66 15283:c4fd2813b127
     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