Lines Matching refs:QCONST16
304 tmp[i] = mem0 + MULT16_16_P15(QCONST16(.0625f,15),x2-mem0);
318 tmp[i] = mem0 + MULT16_16_P15(QCONST16(0.125f,15),tmp[i]-mem0);
366 *tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
390 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]);
394 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT),
398 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT));
411 return mean_diff > QCONST16(1.f, DB_SHIFT);
568 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16(-QCONST16(.25f,14), QCONST16(.5f,14)-tf_estimate));
763 opus_val16 trim = QCONST16(5.f, 8);
777 sum = MULT16_16_Q15(QCONST16(1.f/8, 15), sum);
778 sum = MIN16(QCONST16(1.f, 10), ABS16(sum));
787 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC));
795 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8);
796 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8);
799 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC));
800 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2));
812 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 ));
818 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8),
819 (opus_val16)(QCONST16(2.f, 8)*(analysis->tonality_slope+.05f))));
861 sumMS = MULT16_32_Q15(QCONST16(0.707107f, 15), sumMS);
945 maxDepth=-QCONST16(31.9f, DB_SHIFT);
950 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i])
951 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6)
952 +MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5));
975 if (bandLogE2[c*nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT))
977 f[i] = MIN16(f[i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBands+i]);
980 f[i] = MIN16(f[i], MIN16(f[i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbEBands+i]));
985 offset = QCONST16(1.f, DB_SHIFT);
1003 follower[nbEBands+i] = MAX16(follower[nbEBands+i], follower[ i]-QCONST16(4.f,DB_SHIFT));
1004 follower[ i] = MAX16(follower[ i], follower[nbEBands+i]-QCONST16(4.f,DB_SHIFT));
1031 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT));
1110 gain1 = MULT16_16_Q15(QCONST16(.7f,15),gain1);
1124 pf_threshold = QCONST16(.2f,15);
1128 pf_threshold += QCONST16(.2f,15);
1130 pf_threshold += QCONST16(.1f,15);
1132 pf_threshold += QCONST16(.1f,15);
1133 if (st->prefilter_gain > QCONST16(.4f,15))
1134 pf_threshold -= QCONST16(.1f,15);
1135 if (st->prefilter_gain > QCONST16(.55f,15))
1136 pf_threshold -= QCONST16(.1f,15);
1139 pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15));
1148 if (ABS16(gain1-st->prefilter_gain)<QCONST16(.1f,15))
1157 gain1 = QCONST16(0.09375f,15)*(qg+1);
1231 max_frac = DIV32_16(MULT16_16(QCONST16(0.8f, 15), coded_stereo_dof), coded_bins);
1232 stereo_saving = MIN16(stereo_saving, QCONST16(1.f, 8));
1235 SHR32(MULT16_16(stereo_saving-QCONST16(0.1f,8),(coded_stereo_dof<<BITRES)),8));
1241 QCONST16(0.02f,14) : QCONST16(0.04f,14);
1294 rate_factor = MIN16(rate_factor, QCONST16(0.67f, 15));
1299 if (!has_surround_mask && tf_estimate < QCONST16(.2f, 14))
1303 amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate)));
1566 if ((gain1 > QCONST16(.4f,15) || st->prefilter_gain > QCONST16(.4f,15)) && (!st->analysis.valid || st->analysis.tonality > .3)
1628 bandE[i] = IMIN(bandE[i], MULT16_32_Q15(QCONST16(1e-4f,15),bandE[0]));
1652 QCONST16(.25f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT));
1662 mask_avg += QCONST16(.2f, DB_SHIFT);
1679 unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT));
1681 if (unmask > QCONST16(.25f, DB_SHIFT))
1683 surround_dynalloc[i] = unmask - QCONST16(.25f, DB_SHIFT);
1691 mask_avg += QCONST16(.25f, DB_SHIFT);
1701 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT));
1704 mask_avg += QCONST16(.2f, DB_SHIFT);
1713 opus_val16 follow=-QCONST16(10.0f,DB_SHIFT);
1718 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-offset);
1725 temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr));
1726 st->spec_avg += MULT16_16_Q15(QCONST16(.02f, 15), temporal_vbr);
1751 tf_estimate = QCONST16(.2f,14);
1814 static const opus_val16 spread_thresholds[3] = {-QCONST16(.6f, 15), -QCONST16(.2f, 15), -QCONST16(.07f, 15)};
1815 static const opus_val16 spread_histeresis[3] = {QCONST16(.15f, 15), QCONST16(.07f, 15), QCONST16(.02f, 15)};
1816 static const opus_val16 tapset_thresholds[2] = {QCONST16(.0f, 15), QCONST16(.15f, 15)};
1817 static const opus_val16 tapset_histeresis[2] = {QCONST16(.1f, 15), QCONST16(.05f, 15)};
1968 alpha = QCONST16(.001f,15);
2056 oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
2131 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
2136 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
2341 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT);