Lines Matching refs:level

124  * the desired pack level (0..9). The values given below have been tuned to
182 * If this file is compiled with -DFASTEST, the compression level is forced
210 int ZEXPORT deflateInit_(strm, level, version, stream_size)
212 int level;
216 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
222 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
225 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 ||
313 s->level = level;
422 int ZEXPORT deflateParams(strm, level, strategy)
424 int level;
435 if (level != 0) level = 1;
437 if (level == Z_DEFAULT_COMPRESSION) level = 6;
439 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
442 func = configuration_table[s->level].func;
444 if (func != configuration_table[level].func && strm->total_in != 0) {
448 if (s->level != level) {
449 s->level = level;
450 s->max_lazy_match = configuration_table[level].max_lazy;
451 s->good_match = configuration_table[level].good_length;
452 s->nice_match = configuration_table[level].nice_length;
453 s->max_chain_length = configuration_table[level].max_chain;
596 put_byte(s, s->level == 9 ? 2 :
597 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
613 put_byte(s, s->level == 9 ? 2 :
614 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
634 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
636 else if (s->level < 6)
638 else if (s->level == 6)
796 bstate = (*(configuration_table[s->level].func))(s, flush);
1001 s->max_lazy_match = configuration_table[s->level].max_lazy;
1002 s->good_match = configuration_table[s->level].good_length;
1003 s->nice_match = configuration_table[s->level].nice_length;
1004 s->max_chain_length = configuration_table[s->level].max_chain;
1179 * Optimized version for level == 1 or strategy == Z_RLE only
1307 at the expense of memory usage). We slide even when level == 0
1308 to keep the hash table consistent if we switch back to level > 0
1309 later. (Using level 0 permanently is not an optimal usage of
1392 * only for the level=0 compression option.