Lines Matching refs:qn
234 uint32_t ff_opus_rc_dec_uint_tri(OpusRangeCoder *rc, int qn)
238 total = ((qn>>1) + 1) * ((qn>>1) + 1);
248 k = (2*(qn + 1) - ff_sqrt(8*(total - center - 1) + 1)) >> 1;
249 low = total - ((qn + 1 - k) * (qn + 2 - k) >> 1);
250 symbol = qn + 1 - k;
258 void ff_opus_rc_enc_uint_tri(OpusRangeCoder *rc, uint32_t k, int qn)
262 total = ((qn>>1) + 1) * ((qn>>1) + 1);
264 if (k <= qn >> 1) {
268 low = total - ((qn + 1 - k) * (qn + 2 - k) >> 1);
269 symbol = qn + 1 - k;