Lines Matching defs:qn
618 int qn, qb;
630 qn = 1;
632 qn = exp2_table8[qb&0x7]>>(14-(qb>>BITRES));
633 qn = (qn+1)>>1<<1;
635 celt_assert(qn <= 256);
636 return qn;
666 int qn;
692 qn = compute_qn(N, *b, offset, pulse_cap, stereo);
694 qn = 1;
704 if (qn!=1)
707 itheta = (itheta*qn+8192)>>14;
715 int x0 = qn/2;
734 ec_enc_uint(ec, itheta, qn+1);
736 itheta = ec_dec_uint(ec, qn+1);
739 ft = ((qn>>1)+1)*((qn>>1)+1);
744 fs = itheta <= (qn>>1) ? itheta + 1 : qn + 1 - itheta;
745 fl = itheta <= (qn>>1) ? itheta*(itheta + 1)>>1 :
746 ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1);
755 if (fm < ((qn>>1)*((qn>>1) + 1)>>1))
763 itheta = (2*(qn + 1)
765 fs = qn + 1 - itheta;
766 fl = ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1);
772 itheta = (opus_int32)itheta*16384/qn;