• Home
  • Raw
  • Download

Lines Matching refs:MAX16

305          shift = 14-celt_ilog2(MAX16(1, celt_maxabs16(tmp, len)));  in transient_analysis()
344 maxE = MAX16(maxE, mem0); in transient_analysis()
398 tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42); in transient_analysis()
424 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
426 spread_old[start] = MAX16(oldE[start],oldE[start+nbEBands]); in patch_transient_decision()
428 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
429 MAX16(oldE[i],oldE[i+nbEBands])); 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()
438 x1 = MAX16(0, newE[i + c*nbEBands]); in patch_transient_decision()
439 x2 = MAX16(0, spread_old[i]); in patch_transient_decision()
440 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision()
602 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16(-QCONST16(.25f,14), QCONST16(.5f,14)-tf_estimate)); in tf_analysis()
832 logXC2 = MAX16(HALF16(logXC), celt_log2(QCONST32(1.001f, 20)-MULT16_16(minXC, minXC))); in alloc_trim_analysis()
839 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC)); in alloc_trim_analysis()
858 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
998 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]); in dynalloc_analysis()
1012 mask[i] = MAX16(mask[i], bandLogE[nbEBands+i]-noise_floor[i]); 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()
1064 f[i] = MAX16(f[i], median_of_5(&bandLogE2[c*nbEBands+i-2])-offset); in dynalloc_analysis()
1066 f[0] = MAX16(f[0], tmp); in dynalloc_analysis()
1067 f[1] = MAX16(f[1], tmp); in dynalloc_analysis()
1069 f[end-2] = MAX16(f[end-2], tmp); in dynalloc_analysis()
1070 f[end-1] = MAX16(f[end-1], tmp); in dynalloc_analysis()
1073 f[i] = MAX16(f[i], noise_floor[i]); 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()
1082 …follower[i] = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nb… in dynalloc_analysis()
1087 follower[i] = MAX16(0, bandLogE[i]-follower[i]); in dynalloc_analysis()
1091 follower[i] = MAX16(follower[i], surround_dynalloc[i]); in dynalloc_analysis()
1244 pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15)); in run_prefilter()
1356 tonal = MAX16(0.f,analysis->tonality-.15f)-0.12f; in compute_vbr()
1761 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i], in celt_encode_with_ec()
1786 unmask = MAX16(st->energy_mask[i], st->energy_mask[nbEBands+i]); in celt_encode_with_ec()
1811 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1828 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
1830 follow = MAX16(follow, bandLogE[i+nbEBands]-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()
2225 …energyError[i+c*nbEBands] = MAX16(-QCONST16(0.5f, 15), MIN16(QCONST16(0.5f, 15), error[i+c*nbEBand… in celt_encode_with_ec()