Lines Matching refs:DB_SHIFT
393 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
397 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
401 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
414 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
805 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
806 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
822 if (diff > QCONST16(2.f, DB_SHIFT)) in alloc_trim_analysis()
824 if (diff > QCONST16(8.f, DB_SHIFT)) in alloc_trim_analysis()
826 if (diff < -QCONST16(4.f, DB_SHIFT)) in alloc_trim_analysis()
828 if (diff < -QCONST16(10.f, DB_SHIFT)) in alloc_trim_analysis()
830 …X16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 )); in alloc_trim_analysis()
831 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
905 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis()
910 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis()
911 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6) in dynalloc_analysis()
912 +MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5)); in dynalloc_analysis()
931 if (bandLogE2[c*nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT)) in dynalloc_analysis()
933 …follower[c*nbEBands+i] = MIN16(follower[c*nbEBands+i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBa… in dynalloc_analysis()
936 …N16(follower[c*nbEBands+i], MIN16(follower[c*nbEBands+i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbE… in dynalloc_analysis()
945 … follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
946 … follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
973 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT)); in dynalloc_analysis()
978 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); in dynalloc_analysis()
981 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); in dynalloc_analysis()
984 boost = (int)SHR32(EXTEND32(follower[i])*width/6,DB_SHIFT); in dynalloc_analysis()
1203 …ound_target = target + (opus_int32)SHR32(MULT16_16(surround_masking,coded_bins<<BITRES), DB_SHIFT); in compute_vbr()
1213 floor_depth = (opus_int32)SHR32(MULT16_16((C*bins<<BITRES),maxDepth), DB_SHIFT); in compute_vbr()
1238 tvbr_factor = SHR32(MULT16_16(temporal_vbr, amount), DB_SHIFT); in compute_vbr()
1542 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1579 QCONST16(.25f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in celt_encode_with_ec()
1588 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1592 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
1605 unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT)); in celt_encode_with_ec()
1607 if (unmask > QCONST16(.25f, DB_SHIFT)) in celt_encode_with_ec()
1609 surround_dynalloc[i] = unmask - QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1617 mask_avg += QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1628 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1631 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1640 opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); in celt_encode_with_ec()
1642 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; in celt_encode_with_ec()
1645 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
1652 temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr)); in celt_encode_with_ec()
1678 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1982 oldBandE[i] = -QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2074 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2079 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2284 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT); in opus_custom_encoder_ctl()