Home | History | Annotate | Download | only in puff

Lines Matching full:decode

13  * around 4K on my machine (a PowerPC using GNU cc).  If the faster decode()
45 * 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!),
104 /* input limit error return state for bits() and decode() */
194 * seen in the function decode() below.
202 * Decode a code from the stream s using huffman table h. Return the symbol or
225 local int decode(struct state *s, struct huffman *h)
248 * A faster version of decode() for real applications of this code. It's not
253 local int decode(struct state *s, struct huffman *h)
297 * Huffman code for n symbols, construct the tables required to decode those
304 * possible for decode() using that table to return an error--any stream of
306 * it is possible for decode() using that table to return an error for received
309 * Not used by decode(), but used for error checking, h->count[0] is the number
340 return 0; /* complete, but decode() will fail */
368 * Decode literal/length and distance codes until an end-of-block code.
444 /* decode literals and length/distance pairs */
446 symbol = decode(s, lencode);
463 symbol = decode(s, distcode);
554 /* decode data until end-of-block code */
686 symbol = decode(s, &lencode);
721 /* decode data until end-of-block code */
790 /* return if bits() or decode() tries to read past available input */