[xiph-cvs] cvs commit: speex/libspeex denoise.c
Jean-Marc Valin
jm at xiph.org
Tue Aug 12 10:17:13 PDT 2003
jm 03/08/12 13:17:13
Modified: libspeex denoise.c
Log:
some tuning...
Revision Changes Path
1.19 +6 -4 speex/libspeex/denoise.c
Index: denoise.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/denoise.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- denoise.c 12 Aug 2003 05:21:38 -0000 1.18
+++ denoise.c 12 Aug 2003 17:17:13 -0000 1.19
@@ -356,11 +356,13 @@
else
min_gamma *= 4.;
#else
- min_gamma = .5*fabs(mean_prior - mean_post);
- if (min_gamma>.5)
- min_gamma = .5;
+ min_gamma = .2*fabs(mean_prior - mean_post)*fabs(mean_prior - mean_post);
+ if (min_gamma>.6)
+ min_gamma = .6;
+ if (min_gamma<.01)
+ min_gamma = .01;
#endif
- /*min_gamma = .5;*/
+ /*min_gamma = .2;*/
if (gamma<min_gamma)
gamma=min_gamma;
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list