[xiph-commits] r10659 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Mon Dec 19 20:47:39 PST 2005
Author: jm
Date: 2005-12-19 20:47:37 -0800 (Mon, 19 Dec 2005)
New Revision: 10659
Modified:
trunk/speex/libspeex/vorbis_psy.c
Log:
some tuning to the psychoacoustic model
Modified: trunk/speex/libspeex/vorbis_psy.c
===================================================================
--- trunk/speex/libspeex/vorbis_psy.c 2005-12-19 13:26:13 UTC (rev 10658)
+++ trunk/speex/libspeex/vorbis_psy.c 2005-12-20 04:47:37 UTC (rev 10659)
@@ -402,9 +402,15 @@
/* derive a noise curve */
_vp_noisemask(psy,work,curve);
-
+#define SIDE 10
+ for (i=0;i<SIDE;i++)
+ {
+ curve[i]=curve[SIDE];
+ curve[(psy->n>>1)-i]=curve[(psy->n>>1)-SIDE];
+ }
for(i=0;i<((psy->n)>>1);i++)
- curve[i] = fromdB(curve[i]);
+ //curve[i] = fromdB(.5*curve[i])*pow(1+i/12,.6);
+ curve[i] = fromdB(1.2*curve[i]+.2*i);
}
@@ -423,7 +429,7 @@
spx_drft_backward(&psy->lookup, ac);
_spx_lpc(awk1, ac, ord);
-#if 1
+#if 0
for (i=0;i<ord;i++)
awk2[i] = 0;
#else
More information about the commits
mailing list