From ae232dd740b35652cb32655b8f72ffc880de2ccf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 21 Mar 2007 22:37:05 +0000 Subject: [PATCH] code for testing the accuracy of the resampler Originally committed as revision 8468 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/resample2.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c index 82eddf6562..ce7daa38a8 100644 --- a/libavcodec/resample2.c +++ b/libavcodec/resample2.c @@ -124,6 +124,42 @@ void av_build_filter(FELEM *filter, double factor, int tap_count, int phase_coun filter[ph * tap_count + i] = v; } } +#if 0 + { +#define LEN 1024 + int j,k; + double sine[LEN + tap_count]; + double filtered[LEN]; + double maxff=-2, minff=2, maxsf=-2, minsf=2; + for(i=0; i