Lines Matching refs:QCONST16
307 tmp[i] = mem0 + MULT16_16_P15(QCONST16(.0625f,15),x2-mem0); in transient_analysis()
321 tmp[i] = mem0 + MULT16_16_P15(QCONST16(0.125f,15),tmp[i]-mem0); 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()
397 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), 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()
414 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
566 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16(-QCONST16(.25f,14), QCONST16(.5f,14)-tf_estimate)); in tf_analysis()
763 opus_val16 trim = QCONST16(5.f, 8); in alloc_trim_analysis()
778 sum = MULT16_16_Q15(QCONST16(1.f/8, 15), sum); in alloc_trim_analysis()
779 sum = MIN16(QCONST16(1.f, 10), ABS16(sum)); in alloc_trim_analysis()
789 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC)); in alloc_trim_analysis()
791 if (sum > QCONST16(.995f,10)) in alloc_trim_analysis()
793 else if (sum > QCONST16(.92f,10)) in alloc_trim_analysis()
795 else if (sum > QCONST16(.85f,10)) in alloc_trim_analysis()
797 else if (sum > QCONST16(.8f,10)) in alloc_trim_analysis()
805 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
806 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
809 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC)); in alloc_trim_analysis()
810 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2)); in alloc_trim_analysis()
822 if (diff > QCONST16(2.f, DB_SHIFT)) in alloc_trim_analysis()
824 if (diff > QCONST16(8.f, DB_SHIFT)) in alloc_trim_analysis()
826 if (diff < -QCONST16(4.f, DB_SHIFT)) in alloc_trim_analysis()
828 if (diff < -QCONST16(10.f, DB_SHIFT)) 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()
837 (opus_val16)(QCONST16(2.f, 8)*(analysis->tonality_slope+.05f)))); in alloc_trim_analysis()
880 sumMS = MULT16_32_Q15(QCONST16(0.707107f, 15), sumMS); in stereo_analysis()
905 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis()
910 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis()
911 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6) in dynalloc_analysis()
912 +MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5)); in dynalloc_analysis()
931 if (bandLogE2[c*nbEBands+i] > bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT)) in dynalloc_analysis()
933 …follower[c*nbEBands+i] = MIN16(follower[c*nbEBands+i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBa… in dynalloc_analysis()
936 …Bands+i] = MIN16(follower[c*nbEBands+i], MIN16(follower[c*nbEBands+i+1]+QCONST16(2.f,DB_SHIFT), ba… 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()
973 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT)); in dynalloc_analysis()
1050 gain1 = MULT16_16_Q15(QCONST16(.7f,15),gain1); in run_prefilter()
1064 pf_threshold = QCONST16(.2f,15); in run_prefilter()
1068 pf_threshold += QCONST16(.2f,15); in run_prefilter()
1070 pf_threshold += QCONST16(.1f,15); in run_prefilter()
1072 pf_threshold += QCONST16(.1f,15); in run_prefilter()
1073 if (st->prefilter_gain > QCONST16(.4f,15)) in run_prefilter()
1074 pf_threshold -= QCONST16(.1f,15); in run_prefilter()
1075 if (st->prefilter_gain > QCONST16(.55f,15)) in run_prefilter()
1076 pf_threshold -= QCONST16(.1f,15); in run_prefilter()
1079 pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15)); in run_prefilter()
1088 if (ABS16(gain1-st->prefilter_gain)<QCONST16(.1f,15)) in run_prefilter()
1097 gain1 = QCONST16(0.09375f,15)*(qg+1); in run_prefilter()
1171 max_frac = DIV32_16(MULT16_16(QCONST16(0.8f, 15), coded_stereo_dof), coded_bins); in compute_vbr()
1172 stereo_saving = MIN16(stereo_saving, QCONST16(1.f, 8)); in compute_vbr()
1175 … SHR32(MULT16_16(stereo_saving-QCONST16(0.1f,8),(coded_stereo_dof<<BITRES)),8)); in compute_vbr()
1181 QCONST16(0.02f,14) : QCONST16(0.04f,14); in compute_vbr()
1228 rate_factor = MIN16(rate_factor, QCONST16(0.67f, 15)); in compute_vbr()
1233 if (!has_surround_mask && tf_estimate < QCONST16(.2f, 14)) in compute_vbr()
1237 amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate))); in compute_vbr()
1492 …if ((gain1 > QCONST16(.4f,15) || st->prefilter_gain > QCONST16(.4f,15)) && (!st->analysis.valid ||… in celt_encode_with_ec()
1554 bandE[i] = IMIN(bandE[i], MULT16_32_Q15(QCONST16(1e-4f,15),bandE[0])); in celt_encode_with_ec()
1579 QCONST16(.25f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in celt_encode_with_ec()
1588 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1605 unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT)); in celt_encode_with_ec()
1607 if (unmask > QCONST16(.25f, DB_SHIFT)) in celt_encode_with_ec()
1609 surround_dynalloc[i] = unmask - QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1617 mask_avg += QCONST16(.25f, DB_SHIFT); in celt_encode_with_ec()
1628 surround_dynalloc[i] = MAX16(0, surround_dynalloc[i]-QCONST16(.25f, DB_SHIFT)); in celt_encode_with_ec()
1631 mask_avg += QCONST16(.2f, DB_SHIFT); in celt_encode_with_ec()
1640 opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); in celt_encode_with_ec()
1645 follow = MAX16(follow-QCONST16(1.f, DB_SHIFT), bandLogE[i]-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()
1653 st->spec_avg += MULT16_16_Q15(QCONST16(.02f, 15), temporal_vbr); in celt_encode_with_ec()
1679 tf_estimate = QCONST16(.2f,14); in celt_encode_with_ec()
1742 …static const opus_val16 spread_thresholds[3] = {-QCONST16(.6f, 15), -QCONST16(.2f, 15), -QCONST16(… in celt_encode_with_ec()
1743 …static const opus_val16 spread_histeresis[3] = {QCONST16(.15f, 15), QCONST16(.07f, 15), QCONST16(.… in celt_encode_with_ec()
1744 static const opus_val16 tapset_thresholds[2] = {QCONST16(.0f, 15), QCONST16(.15f, 15)}; in celt_encode_with_ec()
1745 static const opus_val16 tapset_histeresis[2] = {QCONST16(.1f, 15), QCONST16(.05f, 15)}; in celt_encode_with_ec()
1895 alpha = QCONST16(.001f,15); in celt_encode_with_ec()
1982 oldBandE[i] = -QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2074 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2079 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); in celt_encode_with_ec()
2284 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT); in opus_custom_encoder_ctl()