[xiph-cvs] cvs commit: vorbis-tools/oggenc resample.c
Michael Smith
msmith at xiph.org
Sat Jun 1 20:47:28 PDT 2002
msmith 02/06/01 20:47:27
Modified: oggenc resample.c
Log:
Use more taps for better quality when downsampling.
Revision Changes Path
1.2 +3 -3 vorbis-tools/oggenc/resample.c
Index: resample.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/resample.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- resample.c 2002/05/30 12:14:09 1.1
+++ resample.c 2002/06/02 03:47:27 1.2
@@ -184,9 +184,9 @@
/* push the cutoff frequency down to the output frequency */
cutoff = cutoff * outfreq / infreq;
- /* compensate for the sharper roll-off requirement
- * (this method I found empirically, and don't understand, but it's fast) */
- beta = beta * outfreq * outfreq / (infreq * infreq);
+ /* compensate for the sharper roll-off requirement
+ * by using a bigger hammer */
+ taps = taps * infreq/outfreq;
}
assert(taps >= (infreq + outfreq - 1) / outfreq);
<p><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