Lines Matching refs:repetitions
261 static HuffmanTreeToken* CodeRepeatedValues(int repetitions, in CodeRepeatedValues() argument
269 --repetitions; in CodeRepeatedValues()
271 while (repetitions >= 1) { in CodeRepeatedValues()
272 if (repetitions < 3) { in CodeRepeatedValues()
274 for (i = 0; i < repetitions; ++i) { in CodeRepeatedValues()
280 } else if (repetitions < 7) { in CodeRepeatedValues()
282 tokens->extra_bits = repetitions - 3; in CodeRepeatedValues()
289 repetitions -= 6; in CodeRepeatedValues()
295 static HuffmanTreeToken* CodeRepeatedZeros(int repetitions, in CodeRepeatedZeros() argument
297 while (repetitions >= 1) { in CodeRepeatedZeros()
298 if (repetitions < 3) { in CodeRepeatedZeros()
300 for (i = 0; i < repetitions; ++i) { in CodeRepeatedZeros()
306 } else if (repetitions < 11) { in CodeRepeatedZeros()
308 tokens->extra_bits = repetitions - 3; in CodeRepeatedZeros()
311 } else if (repetitions < 139) { in CodeRepeatedZeros()
313 tokens->extra_bits = repetitions - 11; in CodeRepeatedZeros()
320 repetitions -= 138; in CodeRepeatedZeros()