# HG changeset patch # User michael # Date 1174522601 0 # Node ID e210bbc7dd19451bec6acb4f3eea0f5cda9d4f11 # Parent 4040ca52670a2e75c1129d6f86203f92cd34ab50 select more sensible default windows (= attenuation beyond the dynamic range of your input is silly if it negatively affects other parameters) diff -r 4040ca52670a -r e210bbc7dd19 resample2.c --- a/resample2.c Wed Mar 21 23:44:49 2007 +0000 +++ b/resample2.c Thu Mar 22 00:16:41 2007 +0000 @@ -37,6 +37,7 @@ #define FELEM2 int32_t #define FELEM_MAX INT16_MAX #define FELEM_MIN INT16_MIN +#define WINDOW_TYPE 9 #else #define FILTER_SHIFT 30 @@ -44,6 +45,7 @@ #define FELEM2 int64_t #define FELEM_MAX INT32_MAX #define FELEM_MIN INT32_MIN +#define WINDOW_TYPE 12 #endif @@ -177,7 +179,7 @@ c->filter_length= FFMAX((int)ceil(filter_size/factor), 1); c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM)); - av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<filter_bank, factor, c->filter_length, phase_count, 1<filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM)); c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];