• Home
  • Raw
  • Download

Lines Matching refs:DB_SHIFT

424          spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]);  in patch_transient_decision()
428 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
432 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
445 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
835 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
836 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
852 …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()
853 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
986 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis()
991 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis()
992 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6) in dynalloc_analysis()
993 +MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5)); in dynalloc_analysis()
1016 mask[i] = MAX16(mask[i], mask[i-1] - QCONST16(2.f, DB_SHIFT)); in dynalloc_analysis()
1018 mask[i] = MAX16(mask[i], mask[i+1] - QCONST16(3.f, DB_SHIFT)); in dynalloc_analysis()
1022 opus_val16 smr = sig[i]-MAX16(MAX16(0, maxDepth-QCONST16(12.f, DB_SHIFT)), mask[i]); in dynalloc_analysis()
1026 int shift = -PSHR32(MAX16(-QCONST16(5.f, DB_SHIFT), MIN16(0, smr)), DB_SHIFT); in dynalloc_analysis()
1052 if (bandLogE2[c*nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT)) in dynalloc_analysis()
1054 f[i] = MIN16(f[i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBands+i]); in dynalloc_analysis()
1057 f[i] = MIN16(f[i], MIN16(f[i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbEBands+i])); in dynalloc_analysis()
1062 offset = QCONST16(1.f, DB_SHIFT); in dynalloc_analysis()
1080 … follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1081 … follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1095 importance[i] = PSHR32(13*celt_exp2(MIN16(follower[i], QCONST16(4.f, DB_SHIFT))), 16); in dynalloc_analysis()
1097 importance[i] = (int)floor(.5f+13*celt_exp2(MIN16(follower[i], QCONST16(4.f, DB_SHIFT)))); in dynalloc_analysis()
1119 follower[i] = follower[i] + QCONST16(1.f/64.f, DB_SHIFT)*analysis->leak_boost[i]; in dynalloc_analysis()
1128 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT)); in dynalloc_analysis()
1133 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); in dynalloc_analysis()
1136 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); in dynalloc_analysis()
1139 boost = (int)SHR32(EXTEND32(follower[i])*width/6,DB_SHIFT); in dynalloc_analysis()
1370 …ound_target = target + (opus_int32)SHR32(MULT16_16(surround_masking,coded_bins<<BITRES), DB_SHIFT); in compute_vbr()
1380 floor_depth = (opus_int32)SHR32(MULT16_16((C*bins<<BITRES),maxDepth), DB_SHIFT); in compute_vbr()
1398 tvbr_factor = SHR32(MULT16_16(temporal_vbr, amount), DB_SHIFT); in compute_vbr()
1723 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1762 QCONST16(.25f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in celt_encode_with_ec()
1772 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1776 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
1789 unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT)); in celt_encode_with_ec()
1791 if (unmask > QCONST16(.25f, DB_SHIFT)) in celt_encode_with_ec()
1793 surround_dynalloc[i] = unmask - QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1801 mask_avg += QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1811 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1814 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1823 opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); in celt_encode_with_ec()
1825 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; in celt_encode_with_ec()
1828 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
1835 temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr)); in celt_encode_with_ec()
1860 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
1920 if (ABS32(SUB32(bandLogE[i+c*nbEBands], oldBandE[i+c*nbEBands])) < QCONST16(2.f, DB_SHIFT)) in celt_encode_with_ec()
2232 oldBandE[i] = -QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2307 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2312 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2531 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT); in opus_custom_encoder_ctl()