Lines Matching full:max16
324 maxE = MAX16(maxE, mem0);
367 tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42);
368 /* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */
369 *tf_estimate = celt_sqrt(MAX16(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
393 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]);
395 spread_old[0] = MAX16(oldE[0],oldE[nbEBands]);
397 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT),
398 MAX16(oldE[i],oldE[i+nbEBands]));
401 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT));
407 x1 = MAX16(0, newE[i]);
408 x2 = MAX16(0, spread_old[i]);
409 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2))));
566 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16
802 logXC2 = MAX16(HALF16(logXC), celt_log2(QCONST32(1.001f, 20)-MULT16_16(minXC, minXC)));
809 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC));
830 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 ));
836 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8),
917 maxDepth = MAX16(maxDepth, bandLogE[c*nbEBands+i]-noise_floor[i]);
938 follower[c*nbEBands+i] = MAX16(follower[c*nbEBands+i], noise_floor[i]);
945 follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT));
946 follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT));
947 follower[i] = HALF16(MAX16(0, bandLogE[i]-follower[i]) + MAX16(0, bandLogE[nbEBands+i]-follower[nbEBands+i]));
952 follower[i] = MAX16(0, bandLogE[i]-follower[i]);
956 follower[i] = MAX16(follower[i], surround_dynalloc[i]);
1079 pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15));
1192 tonal = MAX16(0.f,analysis->tonality-.15f)-0.09f;
1212 /*floor_depth = SHR32(MULT16_16((C*bins<<BITRES),celt_log2(SHL32(MAX16(1,sample_max),13))), DB_SHIFT);*/
1223 rate_factor = MAX16(0,(bitrate-32000));
1225 rate_factor = MAX16(0,(1.f/32768)*(bitrate-32000));
1578 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i],
1602 unmask = MAX16(st->energy_mask[i], st->energy_mask[nbEBands+i]);
1628 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT));
1645 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset);
1647 follow = MAX16(follow, bandLogE[i+nbEBands]-offset);
1652 temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr));