Move next token to huffman tree lib
This commit is contained in:
parent
f778d01d74
commit
1ae8e5f050
4 changed files with 29 additions and 27 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "libmineziper_bitstream.h"
|
||||
|
||||
#define DEFAULT_TREE_SIZE 288
|
||||
#define DEFAULT_TREE_SIZE 288
|
||||
#define DEFAULT_DIST_TREE_SIZE 32
|
||||
|
||||
typedef struct leaf
|
||||
|
|
@ -22,8 +22,11 @@ typedef struct tree
|
|||
|
||||
unsigned int* sort(unsigned char* ints, int size);
|
||||
void print_huffman_tree(tree t);
|
||||
|
||||
tree build_tree(char* bit_lengths, int size);
|
||||
tree build_default_tree();
|
||||
tree build_default_dist_tree();
|
||||
|
||||
int next_token(bitstream* bs, tree t);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue