• Home
  • Raw
  • Download

Lines Matching refs:DB_SHIFT

153    return MIN32(200,SHR32(dist,2*DB_SHIFT-6));  in loss_distortion()
192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in quant_coarse_energy_impl()
196 qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7); in quant_coarse_energy_impl()
197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), in quant_coarse_energy_impl()
203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; in quant_coarse_energy_impl()
209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); in quant_coarse_energy_impl()
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl()
248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in quant_coarse_energy_impl()
252 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); in quant_coarse_energy_impl()
285 max_decay = QCONST16(16.f,DB_SHIFT); in quant_coarse_energy()
289 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); in quant_coarse_energy()
295 max_decay = QCONST16(3.f,DB_SHIFT); in quant_coarse_energy()
377 q2 = (error[i+c*m->nbEBands]+QCONST16(.5f,DB_SHIFT))>>(DB_SHIFT-fine_quant[i]); in quant_fine_energy()
387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy()
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in quant_energy_finalise()
479 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in unquant_coarse_energy()
481 oldEBands[i+c*m->nbEBands] = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in unquant_coarse_energy()
484 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); in unquant_coarse_energy()
506 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
532 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in unquant_energy_finalise()
554 bandLogE[c*m->nbEBands+i] = -QCONST16(14.f,DB_SHIFT); in amp2Log2()