• Home
  • Raw
  • Download

Lines Matching refs:qn

651    int qn, qb;  in compute_qn()  local
664 qn = 1; in compute_qn()
666 qn = exp2_table8[qb&0x7]>>(14-(qb>>BITRES)); in compute_qn()
667 qn = (qn+1)>>1<<1; in compute_qn()
669 celt_assert(qn <= 256); in compute_qn()
670 return qn; in compute_qn()
705 int qn; in compute_theta() local
731 qn = compute_qn(N, *b, offset, pulse_cap, stereo); in compute_theta()
733 qn = 1; in compute_theta()
743 if (qn!=1) in compute_theta()
749 itheta = (itheta*(opus_int32)qn+8192)>>14; in compute_theta()
750 if (!stereo && ctx->avoid_split_noise && itheta > 0 && itheta < qn) in compute_theta()
755 int unquantized = celt_udiv((opus_int32)itheta*16384, qn); in compute_theta()
760 itheta = qn; in compute_theta()
767 int bias = itheta > 8192 ? 32767/qn : -32767/qn; in compute_theta()
768 down = IMIN(qn-1, IMAX(0, (itheta*(opus_int32)qn + bias)>>14)); in compute_theta()
781 int x0 = qn/2; in compute_theta()
800 ec_enc_uint(ec, itheta, qn+1); in compute_theta()
802 itheta = ec_dec_uint(ec, qn+1); in compute_theta()
805 ft = ((qn>>1)+1)*((qn>>1)+1); in compute_theta()
810 fs = itheta <= (qn>>1) ? itheta + 1 : qn + 1 - itheta; in compute_theta()
811 fl = itheta <= (qn>>1) ? itheta*(itheta + 1)>>1 : in compute_theta()
812 ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); in compute_theta()
821 if (fm < ((qn>>1)*((qn>>1) + 1)>>1)) in compute_theta()
829 itheta = (2*(qn + 1) in compute_theta()
831 fs = qn + 1 - itheta; in compute_theta()
832 fl = ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); in compute_theta()
839 itheta = celt_udiv((opus_int32)itheta*16384, qn); in compute_theta()