• Home
  • Raw
  • Download

Lines Matching refs:MAX16

321          maxE = MAX16(maxE, mem0);  in transient_analysis()
364 tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42); in transient_analysis()
390 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
392 spread_old[start] = MAX16(oldE[start],oldE[start+nbEBands]); in patch_transient_decision()
394 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
395 MAX16(oldE[i],oldE[i+nbEBands])); in patch_transient_decision()
398 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
404 x1 = MAX16(0, newE[i + c*nbEBands]); in patch_transient_decision()
405 x2 = MAX16(0, spread_old[i]); in patch_transient_decision()
406 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision()
568 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16(-QCONST16(.25f,14), QCONST16(.5f,14)-tf_estimate)); in tf_analysis()
792 logXC2 = MAX16(HALF16(logXC), celt_log2(QCONST32(1.001f, 20)-MULT16_16(minXC, minXC))); in alloc_trim_analysis()
799 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC)); in alloc_trim_analysis()
812 …trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHI… in alloc_trim_analysis()
818 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
957 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]); in dynalloc_analysis()
987 f[i] = MAX16(f[i], median_of_5(&bandLogE2[c*nbEBands+i-2])-offset); in dynalloc_analysis()
989 f[0] = MAX16(f[0], tmp); in dynalloc_analysis()
990 f[1] = MAX16(f[1], tmp); in dynalloc_analysis()
992 f[end-2] = MAX16(f[end-2], tmp); in dynalloc_analysis()
993 f[end-1] = MAX16(f[end-1], tmp); in dynalloc_analysis()
996 f[i] = MAX16(f[i], noise_floor[i]); in dynalloc_analysis()
1003 … follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1004 … follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT)); in dynalloc_analysis()
1005 …follower[i] = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nb… in dynalloc_analysis()
1010 follower[i] = MAX16(0, bandLogE[i]-follower[i]); in dynalloc_analysis()
1014 follower[i] = MAX16(follower[i], surround_dynalloc[i]); in dynalloc_analysis()
1139 pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15)); in run_prefilter()
1252 tonal = MAX16(0.f,analysis->tonality-.15f)-0.09f; in compute_vbr()
1288 rate_factor = MAX16(0,(bitrate-32000)); in compute_vbr()
1290 rate_factor = MAX16(0,(1.f/32768)*(bitrate-32000)); in compute_vbr()
1651 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i], in celt_encode_with_ec()
1676 unmask = MAX16(st->energy_mask[i], st->energy_mask[nbEBands+i]); in celt_encode_with_ec()
1701 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1718 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset); in celt_encode_with_ec()
1720 follow = MAX16(follow, bandLogE[i+nbEBands]-offset); in celt_encode_with_ec()
1725 temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr)); in celt_encode_with_ec()