X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fcompress_common.h;h=d2b6310e91534f9f3cf6d3ece57b732d7ac86c3c;hp=14b32f488b488a0084e4a4ac31a72f4769932c5f;hb=f90b1375dd7d3b64fe823ae693083f82019a02f9;hpb=883833a4b3dabec325edf1ca938000f91d587c00 diff --git a/include/wimlib/compress_common.h b/include/wimlib/compress_common.h index 14b32f48..d2b6310e 100644 --- a/include/wimlib/compress_common.h +++ b/include/wimlib/compress_common.h @@ -2,6 +2,9 @@ * compress_common.h * * Header for compression code shared by multiple compression formats. + * + * The author dedicates this file to the public domain. + * You can do whatever you want with this file. */ #ifndef _WIMLIB_COMPRESS_COMMON_H @@ -64,34 +67,11 @@ bitstream_put_bits(struct output_bitstream *ostream, extern void bitstream_put_byte(struct output_bitstream *ostream, u8 n); -struct lz_params { - unsigned min_match; - unsigned max_match; - unsigned max_offset; - unsigned nice_match; - unsigned good_match; - unsigned max_chain_len; - unsigned max_lazy_match; - unsigned too_far; -}; - -typedef void (*lz_record_match_t)(unsigned len, unsigned offset, void *ctx); -typedef void (*lz_record_literal_t)(u8 lit, void *ctx); - -extern void -lz_analyze_block(const u8 window[restrict], - input_idx_t window_size, - lz_record_match_t record_match, - lz_record_literal_t record_literal, - void *record_ctx, - const struct lz_params *params, - input_idx_t prev_tab[restrict]); - extern void make_canonical_huffman_code(unsigned num_syms, unsigned max_codeword_len, const input_idx_t freq_tab[restrict], u8 lens[restrict], - u16 codewords[restrict]); + u32 codewords[restrict]); -#endif /* _WIMLIB_COMPRESS_H */ +#endif /* _WIMLIB_COMPRESS_COMMON_H */