From 344ef3c28d39530c87ea0cf590a58885f12572df Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 15 Sep 2016 03:34:16 +0000 Subject: [PATCH] some more fine patches from Danilo and the mcHF team git-svn-id: https://svn.code.sf.net/p/freetel/code@2864 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/fdmdv.c | 138 ++++++++++++++++++++++++++++------- codec2-dev/src/pilot_coeff.h | 7 ++ codec2-dev/src/quantise.c | 63 ++++++++++------ 3 files changed, 159 insertions(+), 49 deletions(-) diff --git a/codec2-dev/src/fdmdv.c b/codec2-dev/src/fdmdv.c index 3b3d9fad..64c615dd 100644 --- a/codec2-dev/src/fdmdv.c +++ b/codec2-dev/src/fdmdv.c @@ -726,11 +726,35 @@ void lpf_peak_pick(float *foff, float *max, COMP pilot_baseband[], /* LPF cutoff 200Hz, so we can handle max +/- 200 Hz freq offset */ for(i=0; i max_Rw) max_Rw = Rw[i]; if (Rw[i] < min_Rw) @@ -909,7 +909,7 @@ void lpc_post_filter(kiss_fft_cfg fft_fwd_cfg, COMP Pw[], float ak[], e_before = 1E-4; for(i=0; i 242 ms + // so please leave it as is or improve further + // since this code is called 4 times it results in almost 4ms gain (21ms -> 17ms per audio frame decode @ 1300 ) + + float Pw[FFT_ENC]; + for(i=FFT_ENC/2; iA[m]*model->A[m]; -- 2.25.1