Lines Matching refs:MIN16
400 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
818 sum = MIN16(QCONST16(1.f, 10), ABS16(sum)); in alloc_trim_analysis()
825 minXC = MIN16(minXC, ABS16(EXTRACT16(SHR32(partial, 18)))); in alloc_trim_analysis()
827 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC)); in alloc_trim_analysis()
840 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2)); in alloc_trim_analysis()
858 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
939 return MIN16(t2, t3); in median_of_5()
941 return MIN16(t4, t1); in median_of_5()
944 return MIN16(t1, t3); in median_of_5()
946 return MIN16(t2, t4); in median_of_5()
1026 int shift = -PSHR32(MAX16(-QCONST16(5.f, DB_SHIFT), MIN16(0, smr)), 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()
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()
1128 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT)); in dynalloc_analysis()
1337 stereo_saving = MIN16(stereo_saving, QCONST16(1.f, 8)); in compute_vbr()
1761 mask = MAX16(MIN16(st->energy_mask[nbEBands*c+i], in celt_encode_with_ec()
1789 unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT)); 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()
2299 oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]); in celt_encode_with_ec()