• Home
  • Raw
  • Download

Lines Matching refs:MAX16

324          maxE = MAX16(maxE, mem0);  in transient_analysis()
367 tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42); in transient_analysis()
369 …*tf_estimate = celt_sqrt(MAX16(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
393 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
395 spread_old[0] = MAX16(oldE[0],oldE[nbEBands]); in patch_transient_decision()
397 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
398 MAX16(oldE[i],oldE[i+nbEBands])); 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()
407 x1 = MAX16(0, newE[i]); in patch_transient_decision()
408 x2 = MAX16(0, spread_old[i]); in patch_transient_decision()
409 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision()
566 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16(-QCONST16(.25f,14), QCONST16(.5f,14)-tf_estimate)); in tf_analysis()
802 logXC2 = MAX16(HALF16(logXC), celt_log2(QCONST32(1.001f, 20)-MULT16_16(minXC, minXC))); in alloc_trim_analysis()
809 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC)); in alloc_trim_analysis()
830 …trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHI… in alloc_trim_analysis()
836 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
917 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]); in dynalloc_analysis()
938 follower[c*nbEBands+i] = MAX16(follower[c*nbEBands+i], noise_floor[i]); 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()
947 …follower[i] = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nb… in dynalloc_analysis()
952 follower[i] = MAX16(0, bandLogE[i]-follower[i]); in dynalloc_analysis()
956 follower[i] = MAX16(follower[i], surround_dynalloc[i]); in dynalloc_analysis()
1079 pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15)); in run_prefilter()
1192 tonal = MAX16(0.f,analysis->tonality-.15f)-0.09f; in compute_vbr()
1223 rate_factor = MAX16(0,(bitrate-32000)); in compute_vbr()
1225 rate_factor = MAX16(0,(1.f/32768)*(bitrate-32000)); in compute_vbr()
1578 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i], in celt_encode_with_ec()
1602 unmask = MAX16(st->energy_mask[i], st->energy_mask[nbEBands+i]); in celt_encode_with_ec()
1628 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1645 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
1647 follow = MAX16(follow, bandLogE[i+nbEBands]-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()