Lines Matching refs:level

114  * the desired pack level (0..9). The values given below have been tuned to
172 * If this file is compiled with -DFASTEST, the compression level is forced
199 int ZEXPORT deflateInit_(strm, level, stream_size)
201 int level;
204 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
210 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
213 int level;
233 if (level != 0) level = 1;
235 if (level == Z_DEFAULT_COMPRESSION) level = 6;
249 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
334 s->level = level;
443 int ZEXPORT deflateParams(strm, level, strategy)
445 int level;
456 if (level != 0) level = 1;
458 if (level == Z_DEFAULT_COMPRESSION) level = 6;
460 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
463 func = configuration_table[s->level].func;
465 if ((strategy != s->strategy || func != configuration_table[level].func) &&
470 if (s->level != level) {
471 s->level = level;
472 s->max_lazy_match = configuration_table[level].max_lazy;
473 s->good_match = configuration_table[level].good_length;
474 s->nice_match = configuration_table[level].nice_length;
475 s->max_chain_length = configuration_table[level].max_chain;
649 put_byte(s, s->level == 9 ? 2 :
650 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
666 put_byte(s, s->level == 9 ? 2 :
667 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
687 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
689 else if (s->level < 6)
691 else if (s->level == 6)
851 (*(configuration_table[s->level].func))(s, flush));
1057 s->max_lazy_match = configuration_table[s->level].max_lazy;
1058 s->good_match = configuration_table[s->level].good_length;
1059 s->nice_match = configuration_table[s->level].nice_length;
1060 s->max_chain_length = configuration_table[s->level].max_chain;
1366 at the expense of memory usage). We slide even when level == 0
1367 to keep the hash table consistent if we switch back to level > 0
1368 later. (Using level 0 permanently is not an optimal usage of
1484 * only for the level=0 compression option.