Lines Matching refs:opus_val16
92 opus_val16 prefilter_gain;
96 opus_val16 prefilter_gain_old;
111 opus_val16 stereo_saving;
113 opus_val16 *energy_mask;
114 opus_val16 spec_avg;
139 …+ 3*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; … in opus_custom_encoder_get_size()
226 opus_val16 *tf_estimate, int *tf_chan) in transient_analysis()
229 VARDECL(opus_val16, tmp); in transient_analysis()
234 opus_val16 tf_max; in transient_analysis()
248 ALLOC(tmp, len, opus_val16); in transient_analysis()
256 opus_val16 maxE; in transient_analysis()
298 opus_val16 x2 = PSHR32(MULT16_16(tmp[2*i],tmp[2*i]) + MULT16_16(tmp[2*i+1],tmp[2*i+1]),16); in transient_analysis()
378 static int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands, in patch_transient_decision()
383 opus_val16 spread_old[26]; in patch_transient_decision()
403 opus_val16 x1, x2; in patch_transient_decision()
462 void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp, in celt_preemphasis()
463 … int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip) in celt_preemphasis()
466 opus_val16 coef0; in celt_preemphasis()
478 opus_val16 x; in celt_preemphasis()
509 opus_val16 coef1 = coef[1]; in celt_preemphasis()
510 opus_val16 coef2 = coef[2]; in celt_preemphasis()
525 opus_val16 x; in celt_preemphasis()
537 static opus_val32 l1_metric(const celt_norm *tmp, int N, int LM, opus_val16 bias) in l1_metric()
552 int *tf_sum, opus_val16 tf_estimate, int tf_chan) in tf_analysis()
565 opus_val16 bias; in tf_analysis()
755 const opus_val16 *bandLogE, int end, int LM, int C, int N0, in alloc_trim_analysis()
756 AnalysisInfo *analysis, opus_val16 *stereo_saving, opus_val16 tf_estimate, in alloc_trim_analysis()
757 int intensity, opus_val16 surround_trim, int arch) in alloc_trim_analysis()
763 opus_val16 trim = QCONST16(5.f, 8); in alloc_trim_analysis()
764 opus_val16 logXC, logXC2; in alloc_trim_analysis()
767 opus_val16 sum = 0; /* Q10 */ in alloc_trim_analysis()
768 opus_val16 minXC; /* Q10 */ in alloc_trim_analysis()
819 (opus_val16)(QCONST16(2.f, 8)*(analysis->tonality_slope+.05f)))); in alloc_trim_analysis()
870 #define MSWAP(a,b) do {opus_val16 tmp = a;a=b;b=tmp;} while(0)
871 static opus_val16 median_of_5(const opus_val16 *x) in median_of_5()
873 opus_val16 t0, t1, t2, t3, t4; in median_of_5()
910 static opus_val16 median_of_3(const opus_val16 *x) in median_of_3()
912 opus_val16 t0, t1, t2; in median_of_3()
930 static opus_val16 dynalloc_analysis(const opus_val16 *bandLogE, const opus_val16 *bandLogE2, in dynalloc_analysis()
933 int effectiveBytes, opus_int32 *tot_boost_, int lfe, opus_val16 *surround_dynalloc) in dynalloc_analysis()
937 opus_val16 maxDepth; in dynalloc_analysis()
938 VARDECL(opus_val16, follower); in dynalloc_analysis()
939 VARDECL(opus_val16, noise_floor); in dynalloc_analysis()
941 ALLOC(follower, C*nbEBands, opus_val16); in dynalloc_analysis()
942 ALLOC(noise_floor, C*nbEBands, opus_val16); in dynalloc_analysis()
965 opus_val16 offset; in dynalloc_analysis()
966 opus_val16 tmp; in dynalloc_analysis()
967 opus_val16 *f; in dynalloc_analysis()
1066 … int prefilter_tapset, int *pitch, opus_val16 *gain, int *qgain, int enabled, int nbAvailableBytes) in run_prefilter()
1073 opus_val16 gain1; in run_prefilter()
1074 opus_val16 pf_threshold; in run_prefilter()
1095 VARDECL(opus_val16, pitch_buf); in run_prefilter()
1096 ALLOC(pitch_buf, (COMBFILTER_MAXPERIOD+N)>>1, opus_val16); in run_prefilter()
1194 int constrained_vbr, opus_val16 stereo_saving, int tot_boost, in compute_vbr()
1195 opus_val16 tf_estimate, int pitch_change, opus_val16 maxDepth, in compute_vbr()
1196 int variable_duration, int lfe, int has_surround_mask, opus_val16 surround_masking, in compute_vbr()
1197 opus_val16 temporal_vbr) in compute_vbr()
1203 opus_val16 tf_calibration; in compute_vbr()
1227 opus_val16 max_frac; in compute_vbr()
1284 opus_val16 rate_factor = Q15ONE; in compute_vbr()
1301 opus_val16 amount; in compute_vbr()
1302 opus_val16 tvbr_factor; in compute_vbr()
1314 int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_size, uns… in celt_encode_with_ec()
1323 VARDECL(opus_val16, bandLogE); in celt_encode_with_ec()
1324 VARDECL(opus_val16, bandLogE2); in celt_encode_with_ec()
1326 VARDECL(opus_val16, error); in celt_encode_with_ec()
1334 opus_val16 *oldBandE, *oldLogE, *oldLogE2; in celt_encode_with_ec()
1349 opus_val16 gain1 = 0; in celt_encode_with_ec()
1364 opus_val16 tf_estimate; in celt_encode_with_ec()
1368 opus_val16 maxDepth; in celt_encode_with_ec()
1376 opus_val16 surround_masking=0; in celt_encode_with_ec()
1377 opus_val16 temporal_vbr=0; in celt_encode_with_ec()
1378 opus_val16 surround_trim = 0; in celt_encode_with_ec()
1380 VARDECL(opus_val16, surround_dynalloc); in celt_encode_with_ec()
1409 oldBandE = (opus_val16*)(st->in_mem+CC*(overlap+COMBFILTER_MAXPERIOD)); in celt_encode_with_ec()
1521 silence = (sample_max <= (opus_val16)1/(1<<st->lsb_depth)); in celt_encode_with_ec()
1606 ALLOC(bandLogE,nbEBands*CC, opus_val16); in celt_encode_with_ec()
1609 ALLOC(bandLogE2, C*nbEBands, opus_val16); in celt_encode_with_ec()
1634 ALLOC(surround_dynalloc, C*nbEBands, opus_val16); in celt_encode_with_ec()
1650 opus_val16 mask; in celt_encode_with_ec()
1673 opus_val16 unmask; in celt_encode_with_ec()
1713 opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); in celt_encode_with_ec()
1715 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; in celt_encode_with_ec()
1787 ALLOC(error, C*nbEBands, opus_val16); in celt_encode_with_ec()
1814 …static const opus_val16 spread_thresholds[3] = {-QCONST16(.6f, 15), -QCONST16(.2f, 15), -QCONST16(… in celt_encode_with_ec()
1815 …static const opus_val16 spread_histeresis[3] = {QCONST16(.15f, 15), QCONST16(.07f, 15), QCONST16(.… in celt_encode_with_ec()
1816 static const opus_val16 tapset_thresholds[2] = {QCONST16(.0f, 15), QCONST16(.15f, 15)}; in celt_encode_with_ec()
1817 static const opus_val16 tapset_histeresis[2] = {QCONST16(.1f, 15), QCONST16(.05f, 15)}; in celt_encode_with_ec()
1881 static const opus_val16 intensity_thresholds[21]= in celt_encode_with_ec()
1884 static const opus_val16 intensity_histeresis[21]= in celt_encode_with_ec()
1891 st->intensity = hysteresis_decision((opus_val16)(equiv_rate/1000), in celt_encode_with_ec()
1912 opus_val16 alpha; in celt_encode_with_ec()
2094 deemphasis(out_mem, (opus_val16*)pcm, N, CC, st->upsample, mode->preemph, st->preemph_memD); in celt_encode_with_ec()
2333 opus_val16 *oldBandE, *oldLogE, *oldLogE2; in opus_custom_encoder_ctl()
2334 oldBandE = (opus_val16*)(st->in_mem+st->channels*(st->mode->overlap+COMBFILTER_MAXPERIOD)); in opus_custom_encoder_ctl()
2395 opus_val16 *value = va_arg(ap, opus_val16*); in opus_custom_encoder_ctl()