11 #ifndef libmobi_compression_h
12 #define libmobi_compression_h
22 #define MOBI_HUFFMAN_MAXDEPTH 20
23 #define HUFF_CODETABLE_SIZE 33
MOBI_RET mobi_decompress_huffman(unsigned char *out, const unsigned char *in, size_t *len_out, size_t len_in, const MOBIHuffCdic *huffcdic)
Decompressor for huff/cdic compressed text records.
Definition: compression.c:204
MOBI_RET mobi_decompress_lz77(unsigned char *out, const unsigned char *in, size_t *len_out, const size_t len_in)
Decompressor fo PalmDOC version of LZ77 compression.
Definition: compression.c:32
#define HUFF_CODETABLE_SIZE
Definition: compression.h:23
MOBI_RET
Error codes returned by functions.
Definition: mobi.h:59
Libmobi main header file.
Parsed data from HUFF and CDIC records needed to unpack huffman compressed text.
Definition: compression.h:29
size_t code_length
Definition: compression.h:32
size_t index_count
Definition: compression.h:30
uint16_t * symbol_offsets
Definition: compression.h:36
unsigned char ** symbols
Definition: compression.h:37
size_t index_read
Definition: compression.h:31