Lines Matching refs:level

113  * the desired pack level (0..9). The values given below have been tuned to
174 * If this file is compiled with -DFASTEST, the compression level is forced
201 int ZEXPORT deflateInit_(strm, level, version, stream_size)
203 int level;
207 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
213 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
216 int level;
256 if (level != 0) level = 1;
258 if (level == Z_DEFAULT_COMPRESSION) level = 6;
272 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
315 s->level = level;
490 int ZEXPORT deflateParams(strm, level, strategy)
492 int level;
503 if (level != 0) level = 1;
505 if (level == Z_DEFAULT_COMPRESSION) level = 6;
507 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
510 func = configuration_table[s->level].func;
512 if ((strategy != s->strategy || func != configuration_table[level].func) &&
519 if (s->level != level) {
520 s->level = level;
521 s->max_lazy_match = configuration_table[level].max_lazy;
522 s->good_match = configuration_table[level].good_length;
523 s->nice_match = configuration_table[level].nice_length;
524 s->max_chain_length = configuration_table[level].max_chain;
703 put_byte(s, s->level == 9 ? 2 :
704 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
720 put_byte(s, s->level == 9 ? 2 :
721 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
741 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
743 else if (s->level < 6)
745 else if (s->level == 6)
905 (*(configuration_table[s->level].func))(s, flush));
1115 s->max_lazy_match = configuration_table[s->level].max_lazy;
1116 s->good_match = configuration_table[s->level].good_length;
1117 s->nice_match = configuration_table[s->level].nice_length;
1118 s->max_chain_length = configuration_table[s->level].max_chain;
1427 at the expense of memory usage). We slide even when level == 0
1428 to keep the hash table consistent if we switch back to level > 0
1429 later. (Using level 0 permanently is not an optimal usage of
1560 * only for the level=0 compression option.