Lines Matching refs:qn
626 int qn, qb; in compute_qn() local
639 qn = 1; in compute_qn()
641 qn = exp2_table8[qb&0x7]>>(14-(qb>>BITRES)); in compute_qn()
642 qn = (qn+1)>>1<<1; in compute_qn()
644 celt_assert(qn <= 256); in compute_qn()
645 return qn; in compute_qn()
676 int qn; in compute_theta() local
702 qn = compute_qn(N, *b, offset, pulse_cap, stereo); in compute_theta()
704 qn = 1; in compute_theta()
714 if (qn!=1) in compute_theta()
717 itheta = (itheta*(opus_int32)qn+8192)>>14; in compute_theta()
725 int x0 = qn/2; in compute_theta()
744 ec_enc_uint(ec, itheta, qn+1); in compute_theta()
746 itheta = ec_dec_uint(ec, qn+1); in compute_theta()
749 ft = ((qn>>1)+1)*((qn>>1)+1); in compute_theta()
754 fs = itheta <= (qn>>1) ? itheta + 1 : qn + 1 - itheta; in compute_theta()
755 fl = itheta <= (qn>>1) ? itheta*(itheta + 1)>>1 : in compute_theta()
756 ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); in compute_theta()
765 if (fm < ((qn>>1)*((qn>>1) + 1)>>1)) in compute_theta()
773 itheta = (2*(qn + 1) in compute_theta()
775 fs = qn + 1 - itheta; in compute_theta()
776 fl = ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); in compute_theta()
783 itheta = celt_udiv((opus_int32)itheta*16384, qn); in compute_theta()