Get number for dynamic huffman tree

This commit is contained in:
atxr 2024-02-21 17:09:33 +01:00
parent 090e17b3d9
commit a0b4fe5433
2 changed files with 20 additions and 2 deletions

View file

@ -66,8 +66,8 @@ typedef struct ISH
int raw;
struct
{
unsigned last_block : 1;
unsigned block_type : 2;
unsigned last_block : 1;
unsigned block_type : 2;
};
};
} ISH;
@ -98,6 +98,9 @@ void get_cdh(zip* out);
char* get_encoded_block(zip* in, int n);
void deflate(zip* in);
int get_number_bit_length_code(DHCH* dhch);
int get_number_dist_code(DHCH* dhch);
int get_number_litteral_code(DHCH* dhch);
short decode_length_token(bitstream* bs, int token);
int decode_distance_token(bitstream* bs, int token);