int huffman_build_tree(struct huffman_decoder *decoder, uint32_t totaldata, uint32_t totalweight)
Definition: libchdr_huffman.c:387
lookup_value * lookup
Definition: huffman.h:62
uint32_t weight
Definition: huffman.h:47
enum huffman_error huffman_import_tree_rle(struct huffman_decoder *decoder, struct bitstream *bitbuf)
Definition: libchdr_huffman.c:180
enum huffman_error huffman_compute_tree_from_histo(struct huffman_decoder *decoder)
Definition: libchdr_huffman.c:324
enum huffman_error huffman_import_tree_huffman(struct huffman_decoder *decoder, struct bitstream *bitbuf)
Definition: libchdr_huffman.c:242
int rleremaining
Definition: huffman.h:61
struct node_t * parent
Definition: huffman.h:45
struct node_t * huffnode
Definition: huffman.h:63
struct huffman_decoder * create_huffman_decoder(int numcodes, int maxbits)
Definition: libchdr_huffman.c:125
uint32_t * datahisto
Definition: huffman.h:64
Definition: bitstream.h:24
uint32_t bits
Definition: huffman.h:48
uint8_t prevdata
Definition: huffman.h:60
uint32_t huffman_decode_one(struct huffman_decoder *decoder, struct bitstream *bitbuf)
Definition: libchdr_huffman.c:161
huffman_error
Definition: huffman.h:24
uint8_t numbits
Definition: huffman.h:49
void huffman_build_lookup_table(struct huffman_decoder *decoder)
Definition: libchdr_huffman.c:539
uint8_t maxbits
Definition: huffman.h:59
enum huffman_error huffman_assign_canonical_codes(struct huffman_decoder *decoder)
Definition: libchdr_huffman.c:498
void delete_huffman_decoder(struct huffman_decoder *decoder)
Definition: libchdr_huffman.c:143
uint16_t lookup_value
Definition: huffman.h:40
unsigned short uint16_t
Definition: stdint.h:125
uint32_t count
Definition: huffman.h:46
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126
uint32_t numcodes
Definition: huffman.h:58