#ifdefed out unused code in pitch estimator post processor, thanks Glen and Steve...
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 16 Sep 2016 21:43:08 +0000 (21:43 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 16 Sep 2016 21:43:08 +0000 (21:43 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2871 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/nlp.c

index d3155367cfd2f0ea9475eac2d379b377e60123bf..6c9b61b681dc2d241357290b494819cc81b63b18 100644 (file)
@@ -52,6 +52,7 @@
 #define F0_MAX      500
 #define CNLP        0.3                /* post processor constant              */
 #define NLP_NTAP 48            /* Decimation LPF order */
+#undef  POST_PROCESS_MBE        /* choose post processor                */
 
 //#undef DUMP
 
@@ -123,8 +124,10 @@ typedef struct {
     kiss_fft_cfg  fft_cfg;           /* kiss FFT config              */
 } NLP;
 
+#ifdef POST_PROCESS_MBE
 float test_candidate_mbe(COMP Sw[], COMP W[], float f0);
 float post_process_mbe(COMP Fw[], int pmin, int pmax, float gmax, COMP Sw[], COMP W[], float *prev_Wo);
+#endif
 float post_process_sub_multiples(COMP Fw[],
                                 int pmin, int pmax, float gmax, int gmax_bin,
                                 float *prev_Wo);
@@ -318,7 +321,6 @@ float nlp(
 
     PROFILE_SAMPLE_AND_LOG(peakpick, magsq, "      peak pick");
 
-    //#define POST_PROCESS_MBE
     #ifdef POST_PROCESS_MBE
     best_f0 = post_process_mbe(Fw, pmin, pmax, gmax, Sw, W, prev_Wo);
     #else
@@ -419,6 +421,8 @@ float post_process_sub_multiples(COMP Fw[],
     return best_f0;
 }
 
+#ifdef POST_PROCESS_MBE
+
 /*---------------------------------------------------------------------------*\
 
   post_process_mbe()
@@ -587,3 +591,4 @@ float test_candidate_mbe(
     return error;
 }
 
+#endif