X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fcomp.h;h=c60fd886e3ea17d112c499cce015b13555971444;hb=2a7e6a7d014689899c90a926a095a53753488967;hp=af17826310e093f9b3a668731cdb66167f54c73a;hpb=885632f08c75c1d7bb5d25436231c78f6ad7e0c0;p=wimlib diff --git a/src/comp.h b/src/comp.h index af178263..c60fd886 100644 --- a/src/comp.h +++ b/src/comp.h @@ -2,23 +2,6 @@ * comp.h * * Functions useful for compression, mainly bitstreams. - * - * Copyright (C) 2012 Eric Biggers - * - * wimlib - Library for working with WIM files - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) any - * later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License along - * with this library; if not, write to the Free Software Foundation, Inc., 59 - * Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _WIMLIB_COMP_H @@ -105,4 +88,8 @@ extern void init_output_bitstream(struct output_bitstream *ostream, extern int flush_output_bitstream(struct output_bitstream *ostream); +extern void make_canonical_huffman_code(uint num_syms, uint max_codeword_len, + const u32 freq_tab[], u8 lens[], + u16 codewords[]); + #endif /* _WIMLIB_COMP_H */