[xiph-commits] r12755 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Wed Mar 14 02:31:09 PDT 2007


Author: jm
Date: 2007-03-14 02:31:06 -0700 (Wed, 14 Mar 2007)
New Revision: 12755

Modified:
   trunk/speex/libspeex/nb_celp.c
   trunk/speex/libspeex/sb_celp.c
Log:
Fixed minor pi_gain synchronisation problem in the wideband decoder. Should
increase quality slightly.


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2007-03-14 03:51:23 UTC (rev 12754)
+++ trunk/speex/libspeex/nb_celp.c	2007-03-14 09:31:06 UTC (rev 12755)
@@ -1698,7 +1698,7 @@
          for (i=0;i<st->lpcSize;i+=2)
          {
             /*pi_g += -st->interp_qlpc[i] +  st->interp_qlpc[i+1];*/
-            pi_g = ADD32(pi_g, SUB32(EXTEND32(st->interp_qlpc[i+1]),EXTEND32(st->interp_qlpc[i])));
+            pi_g = ADD32(pi_g, SUB32(EXTEND32(ak[i+1]),EXTEND32(ak[i])));
          }
          st->pi_gain[sub] = pi_g;
       }

Modified: trunk/speex/libspeex/sb_celp.c
===================================================================
--- trunk/speex/libspeex/sb_celp.c	2007-03-14 03:51:23 UTC (rev 12754)
+++ trunk/speex/libspeex/sb_celp.c	2007-03-14 09:31:06 UTC (rev 12755)
@@ -1006,8 +1006,8 @@
          rh = LPC_SCALING;
          for (i=0;i<st->lpcSize;i+=2)
          {
-            rh += st->interp_qlpc[i+1] - st->interp_qlpc[i];
-            st->pi_gain[sub] += st->interp_qlpc[i] + st->interp_qlpc[i+1];
+            rh += ak[i+1] - ak[i];
+            st->pi_gain[sub] += ak[i] + ak[i+1];
          }
 
          rl = low_pi_gain[sub];



More information about the commits mailing list