Lines Matching refs:level
198 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument
200 int level;
204 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
210 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument
213 int level;
244 if (level != 0) level = 1;
246 if (level == Z_DEFAULT_COMPRESSION) level = 6;
260 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
303 s->level = level;
412 int ZEXPORT deflateParams(strm, level, strategy) in deflateParams() argument
414 int level;
425 if (level != 0) level = 1;
427 if (level == Z_DEFAULT_COMPRESSION) level = 6;
429 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
432 func = configuration_table[s->level].func;
434 if ((strategy != s->strategy || func != configuration_table[level].func) &&
439 if (s->level != level) {
440 s->level = level;
441 s->max_lazy_match = configuration_table[level].max_lazy;
442 s->good_match = configuration_table[level].good_length;
443 s->nice_match = configuration_table[level].nice_length;
444 s->max_chain_length = configuration_table[level].max_chain;
618 put_byte(s, s->level == 9 ? 2 :
619 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
635 put_byte(s, s->level == 9 ? 2 :
636 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
656 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
658 else if (s->level < 6)
660 else if (s->level == 6)
820 (*(configuration_table[s->level].func))(s, flush));
1029 s->max_lazy_match = configuration_table[s->level].max_lazy;
1030 s->good_match = configuration_table[s->level].good_length;
1031 s->nice_match = configuration_table[s->level].nice_length;
1032 s->max_chain_length = configuration_table[s->level].max_chain;