Lines Matching defs:level

112  * the desired pack level (0..9). The values given below have been tuned to
168 * bit values at the expense of memory usage). We slide even when level == 0 to
169 * keep the hash table consistent if we switch back to level > 0 later.
383 int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version,
385 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
391 int ZEXPORT deflateInit2_(z_streamp strm, int level, int method,
430 if (level != 0) level = 1;
432 if (level == Z_DEFAULT_COMPRESSION) level = 6;
448 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
561 s->level = level;
718 s->max_lazy_match = configuration_table[s->level].max_lazy;
719 s->good_match = configuration_table[s->level].good_length;
720 s->nice_match = configuration_table[s->level].nice_length;
721 s->max_chain_length = configuration_table[s->level].max_chain;
790 int ZEXPORT deflateParams(z_streamp strm, int level, int strategy) {
798 if (level != 0) level = 1;
800 if (level == Z_DEFAULT_COMPRESSION) level = 6;
802 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
805 func = configuration_table[s->level].func;
807 if ((strategy != s->strategy || func != configuration_table[level].func) &&
816 if (s->level != level) {
817 if (s->level == 0 && s->matches != 0) {
824 s->level = level;
825 s->max_lazy_match = configuration_table[level].max_lazy;
826 s->good_match = configuration_table[level].good_length;
827 s->nice_match = configuration_table[level].nice_length;
828 s->max_chain_length = configuration_table[level].max_chain;
928 return (s->w_bits <= s->hash_bits && s->level ? fixedlen : storelen) +
1039 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
1041 else if (s->level < 6)
1043 else if (s->level == 6)
1081 put_byte(s, s->level == 9 ? 2 :
1082 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
1105 put_byte(s, s->level == 9 ? 2 :
1106 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
1220 bstate = s->level == 0 ? deflate_stored(s, flush) :
1223 (*(configuration_table[s->level].func))(s, flush);
1674 * level, s->matches (otherwise unused when storing) keeps track of the number
1772 * a non-zero compression level.