Mercurial > vba-linux
diff src/win32/7zip/7z/C/HuffEnc.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/C/HuffEnc.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,21 @@ 1.4 +/* HuffEnc.h -- functions for Huffman encoding 1.5 +2008-03-26 1.6 +Igor Pavlov 1.7 +Public domain */ 1.8 + 1.9 +#ifndef __HUFFENC_H 1.10 +#define __HUFFENC_H 1.11 + 1.12 +#include "Types.h" 1.13 + 1.14 +/* 1.15 +Conditions: 1.16 + num <= 1024 = 2 ^ NUM_BITS 1.17 + Sum(freqs) < 4M = 2 ^ (32 - NUM_BITS) 1.18 + maxLen <= 16 = kMaxLen 1.19 + Num_Items(p) >= HUFFMAN_TEMP_SIZE(num) 1.20 +*/ 1.21 + 1.22 +void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen); 1.23 + 1.24 +#endif