Lines Matching refs:quality
36 static BROTLI_INLINE size_t MaxHashTableSize(int quality) { in MaxHashTableSize() argument
37 return quality == FAST_ONE_PASS_COMPRESSION_QUALITY ? 1 << 15 : 1 << 17; in MaxHashTableSize()
48 return params->quality <= 10 ? in MaxZopfliLen()
56 return params->quality <= 10 ? 1 : 5; in MaxZopfliCandidates()
60 params->quality = BROTLI_MIN(int, BROTLI_MAX_QUALITY, in SanitizeParams()
61 BROTLI_MAX(int, BROTLI_MIN_QUALITY, params->quality)); in SanitizeParams()
62 if (params->quality <= MAX_QUALITY_FOR_STATIC_ENTROPY_CODES) { in SanitizeParams()
77 if (params->quality == FAST_ONE_PASS_COMPRESSION_QUALITY || in ComputeLgBlock()
78 params->quality == FAST_TWO_PASS_COMPRESSION_QUALITY) { in ComputeLgBlock()
80 } else if (params->quality < MIN_QUALITY_FOR_BLOCK_SPLIT) { in ComputeLgBlock()
84 if (params->quality >= 9 && params->lgwin > lgblock) { in ComputeLgBlock()
118 return params->quality < 9 ? 64 : 512; in LiteralSpreeLengthForSparseSearch()
123 if (params->quality > 9) { in ChooseHasher()
125 } else if (params->quality == 4 && params->size_hint >= (1 << 20)) { in ChooseHasher()
127 } else if (params->quality < 5) { in ChooseHasher()
128 hparams->type = params->quality; in ChooseHasher()
130 hparams->type = params->quality < 7 ? 40 : params->quality < 9 ? 41 : 42; in ChooseHasher()
133 hparams->block_bits = params->quality - 1; in ChooseHasher()
137 params->quality < 7 ? 4 : params->quality < 9 ? 10 : 16; in ChooseHasher()
140 hparams->block_bits = params->quality - 1; in ChooseHasher()
141 hparams->bucket_bits = params->quality < 7 ? 14 : 15; in ChooseHasher()
143 params->quality < 7 ? 4 : params->quality < 9 ? 10 : 16; in ChooseHasher()