• Home
  • Raw
  • Download

Lines Matching refs:qi

185          int qi, qi0;  in quant_coarse_energy_impl()  local
196 qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7); in quant_coarse_energy_impl()
202 qi = (int)floor(.5f+f); in quant_coarse_energy_impl()
207 if (qi < 0 && x < decay_bound) in quant_coarse_energy_impl()
209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); in quant_coarse_energy_impl()
210 if (qi > 0) in quant_coarse_energy_impl()
211 qi = 0; in quant_coarse_energy_impl()
213 qi0 = qi; in quant_coarse_energy_impl()
221 qi = IMIN(1, qi); in quant_coarse_energy_impl()
223 qi = IMAX(-1, qi); in quant_coarse_energy_impl()
226 qi = IMIN(qi, 0); in quant_coarse_energy_impl()
231 ec_laplace_encode(enc, &qi, in quant_coarse_energy_impl()
236 qi = IMAX(-1, IMIN(qi, 1)); in quant_coarse_energy_impl()
237 ec_enc_icdf(enc, 2*qi^-(qi<0), small_energy_icdf, 2); in quant_coarse_energy_impl()
241 qi = IMIN(0, qi); in quant_coarse_energy_impl()
242 ec_enc_bit_logp(enc, -qi, 1); in quant_coarse_energy_impl()
245 qi = -1; in quant_coarse_energy_impl()
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl()
247 badness += abs(qi0-qi); in quant_coarse_energy_impl()
248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in quant_coarse_energy_impl()
454 int qi; in unquant_coarse_energy() local
466 qi = ec_laplace_decode(dec, in unquant_coarse_energy()
471 qi = ec_dec_icdf(dec, small_energy_icdf, 2); in unquant_coarse_energy()
472 qi = (qi>>1)^-(qi&1); in unquant_coarse_energy()
476 qi = -ec_dec_bit_logp(dec, 1); in unquant_coarse_energy()
479 qi = -1; in unquant_coarse_energy()
480 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in unquant_coarse_energy()