misc/libphysfs/lzma/C/Compress/Huffman/HuffmanEncode.h
changeset 12218 bb5522e88ab2
equal deleted inserted replaced
12217:ea891871f481 12218:bb5522e88ab2
       
     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