Lines Matching defs:level
94 * the desired pack level (0..9). The values given below have been tuned to
148 * If this file is compiled with -DFASTEST, the compression level is forced
179 * bit values at the expense of memory usage). We slide even when level == 0 to
180 * keep the hash table consistent if we switch back to level > 0 later.
374 int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version,
376 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
382 int ZEXPORT deflateInit2_(z_streamp strm, int level, int method,
412 if (level != 0) level = 1;
414 if (level == Z_DEFAULT_COMPRESSION) level = 6;
430 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
522 s->level = level;
685 s->max_lazy_match = configuration_table[s->level].max_lazy;
686 s->good_match = configuration_table[s->level].good_length;
687 s->nice_match = configuration_table[s->level].nice_length;
688 s->max_chain_length = configuration_table[s->level].max_chain;
757 int ZEXPORT deflateParams(z_streamp strm, int level, int strategy) {
765 if (level != 0) level = 1;
767 if (level == Z_DEFAULT_COMPRESSION) level = 6;
769 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
772 func = configuration_table[s->level].func;
774 if ((strategy != s->strategy || func != configuration_table[level].func) &&
783 if (s->level != level) {
784 if (s->level == 0 && s->matches != 0) {
791 s->level = level;
792 s->max_lazy_match = configuration_table[level].max_lazy;
793 s->good_match = configuration_table[level].good_length;
794 s->nice_match = configuration_table[level].nice_length;
795 s->max_chain_length = configuration_table[level].max_chain;
896 return (s->w_bits <= s->hash_bits && s->level ? fixedlen : storelen) +
1009 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
1011 else if (s->level < 6)
1013 else if (s->level == 6)
1051 put_byte(s, s->level == 9 ? 2 :
1052 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
1075 put_byte(s, s->level == 9 ? 2 :
1076 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
1190 bstate = s->level == 0 ? deflate_stored(s, flush) :
1193 (*(configuration_table[s->level].func))(s, flush);
1628 * level, s->matches (otherwise unused when storing) keeps track of the number
1727 * a non-zero compression level.