Lines Matching refs:scale
66 static av_always_inline void opus_rc_dec_update(OpusRangeCoder *rc, uint32_t scale,
70 rc->value -= scale * (total - high);
71 rc->range = low ? scale * (high - low)
72 : rc->range - scale * (total - high);
92 unsigned int k, scale, total, symbol, low, high;
96 scale = rc->range / total;
97 symbol = rc->value / scale + 1;
104 opus_rc_dec_update(rc, scale, low, high, total);
116 uint32_t k, scale;
117 scale = rc->range >> bits; // in this case, scale = symbol
119 if (rc->value >= scale) {
120 rc->value -= scale;
121 rc->range -= scale;
124 rc->range = scale;
184 uint32_t bits, k, scale, total;
189 scale = rc->range / total;
190 k = rc->value / scale + 1;
192 opus_rc_dec_update(rc, scale, k, k + 1, total);
214 uint32_t k, scale, symbol, total = (k0+1)*3 + k0;
215 scale = rc->range / total;
216 symbol = rc->value / scale + 1;
221 opus_rc_dec_update(rc, scale, (k <= k0) ? 3*(k+0) : (k-1-k0) + 3*(k0+1),
236 uint32_t k, scale, symbol, total, low, center;
239 scale = rc->range / total;
240 center = rc->value / scale + 1;
253 opus_rc_dec_update(rc, scale, low, low + symbol, total);
279 uint32_t scale, low = 0, center;
281 scale = rc->range >> 15;
282 center = rc->value / scale + 1;
309 opus_rc_dec_update(rc, scale, low, FFMIN(low + symbol, 32768), 32768);