]> wimlib.net Git - wimlib/blob - include/wimlib/compress_common.h
v1.14.4
[wimlib] / include / wimlib / compress_common.h
1 /*
2  * compress_common.h
3  *
4  * Header for compression code shared by multiple compression formats.
5  */
6
7 #ifndef _WIMLIB_COMPRESS_COMMON_H
8 #define _WIMLIB_COMPRESS_COMMON_H
9
10 #include "wimlib/types.h"
11
12 #define MAX_NUM_SYMS            799     /* LZMS_MAX_NUM_SYMS */
13 #define MAX_CODEWORD_LEN        16
14
15 void
16 make_canonical_huffman_code(unsigned num_syms, unsigned max_codeword_len,
17                             const u32 freqs[], u8 lens[], u32 codewords[]);
18
19 #endif /* _WIMLIB_COMPRESS_COMMON_H */