Lines Matching refs:DB_SHIFT

418          spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]);  in patch_transient_decision()
422 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
426 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
439 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
829 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
830 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
846 …X32(-QCONST16(2.f, 8), MIN32(QCONST16(2.f, 8), SHR32(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 )); in alloc_trim_analysis()
847 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
979 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis()
984 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis()
985 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6) in dynalloc_analysis()
986 +MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5)); in dynalloc_analysis()
1009 if (bandLogE2[c*nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT)) in dynalloc_analysis()
1011 f[i] = MIN16(f[i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBands+i]); in dynalloc_analysis()
1014 f[i] = MIN16(f[i], MIN16(f[i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbEBands+i])); in dynalloc_analysis()
1019 offset = QCONST16(1.f, DB_SHIFT); in dynalloc_analysis()
1037 … follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1038 … follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1068 follower[i] = follower[i] + QCONST16(1.f/64.f, DB_SHIFT)*analysis->leak_boost[i]; in dynalloc_analysis()
1077 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT)); in dynalloc_analysis()
1082 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); in dynalloc_analysis()
1085 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); in dynalloc_analysis()
1088 boost = (int)SHR32(EXTEND32(follower[i])*width/6,DB_SHIFT); in dynalloc_analysis()
1311 …ound_target = target + (opus_int32)SHR32(MULT16_16(surround_masking,coded_bins<<BITRES), DB_SHIFT); in compute_vbr()
1321 floor_depth = (opus_int32)SHR32(MULT16_16((C*bins<<BITRES),maxDepth), DB_SHIFT); in compute_vbr()
1339 tvbr_factor = SHR32(MULT16_16(temporal_vbr, amount), DB_SHIFT); in compute_vbr()
1661 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1697 QCONST16(.25f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in celt_encode_with_ec()
1707 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1711 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
1724 unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT)); in celt_encode_with_ec()
1726 if (unmask > QCONST16(.25f, DB_SHIFT)) in celt_encode_with_ec()
1728 surround_dynalloc[i] = unmask - QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1736 mask_avg += QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1746 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1749 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1758 opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); in celt_encode_with_ec()
1760 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; in celt_encode_with_ec()
1763 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
1770 temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr)); in celt_encode_with_ec()
1795 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1845 if (ABS32(SUB32(bandLogE[i+c*nbEBands], oldBandE[i+c*nbEBands])) < QCONST16(2.f, DB_SHIFT)) in celt_encode_with_ec()
2162 oldBandE[i] = -QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2237 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2242 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2461 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT); in opus_custom_encoder_ctl()