History

swresample/resample: do not allow odd filter_length

except filter_length == 1 odd filter_length gives worse frequency response, even when compared with shorter filter_length also makes build_filter simpler

Muhammad Faiz committed 9 years ago

Commit 53a5cea1 parent 3016e912 files · +56 −76Browse files

Unified · Split

2 files
  1. libswresample/resample.c +18 −38
  2. tests/fate/libswresample.mak +38 −38
libswresample/resample.c+18−38
@@ -155,6 +155,8 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap · 154 unmodified lines
155 if (!tab || !sin_lut)155 if (!tab || !sin_lut)
156 goto fail;156 goto fail;
157 157
158 av_assert0(tap_count == 1 || tap_count % 2 == 0);
159
158 /* if upsampling, only need to interpolate, no filter */160 /* if upsampling, only need to interpolate, no filter */
159 if (factor > 1.0)161 if (factor > 1.0)
160 factor = 1.0;162 factor = 1.0;
@@ -165,7 +167,7 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap · 4 unmodified lines
165 }167 }
166 for(ph = 0; ph < ph_nb; ph++) {168 for(ph = 0; ph < ph_nb; ph++) {
167 s = sin_lut[ph];169 s = sin_lut[ph];
168 for(i=0;i<=tap_count;i++) {170 for(i=0;i<tap_count;i++) {
169 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor;171 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor;
170 if (x == 0) y = 1.0;172 if (x == 0) y = 1.0;
171 else if (factor == 1.0)173 else if (factor == 1.0)
@@ -194,7 +196,7 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap · 22 unmodified lines
194 196
195 tab[i] = y;197 tab[i] = y;
196 s = -s;198 s = -s;
197 if (!ph && i < tap_count)199 if (!ph)
198 norm += y;200 norm += y;
199 }201 }
200 202
@@ -204,55 +206,29 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap · 3 unmodified lines
204 for(i=0;i<tap_count;i++)206 for(i=0;i<tap_count;i++)
205 ((int16_t*)filter)[ph * alloc + i] = av_clip_int16(lrintf(tab[i] * scale / norm));207 ((int16_t*)filter)[ph * alloc + i] = av_clip_int16(lrintf(tab[i] * scale / norm));
206 if (phase_count % 2) break;208 if (phase_count % 2) break;
207 if (tap_count % 2 == 0 || tap_count == 1) {209 for (i = 0; i < tap_count; i++)
208 for (i = 0; i < tap_count; i++)210 ((int16_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int16_t*)filter)[ph * alloc + i];
209 ((int16_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int16_t*)filter)[ph * alloc + i];
210 }
211 else {
212 for (i = 1; i <= tap_count; i++)
213 ((int16_t*)filter)[(phase_count-ph) * alloc + tap_count-i] =
214 av_clip_int16(lrintf(tab[i] * scale / norm));
215 }
216 break;211 break;
217 case AV_SAMPLE_FMT_S32P:212 case AV_SAMPLE_FMT_S32P:
218 for(i=0;i<tap_count;i++)213 for(i=0;i<tap_count;i++)
219 ((int32_t*)filter)[ph * alloc + i] = av_clipl_int32(llrint(tab[i] * scale / norm));214 ((int32_t*)filter)[ph * alloc + i] = av_clipl_int32(llrint(tab[i] * scale / norm));
220 if (phase_count % 2) break;215 if (phase_count % 2) break;
221 if (tap_count % 2 == 0 || tap_count == 1) {216 for (i = 0; i < tap_count; i++)
222 for (i = 0; i < tap_count; i++)217 ((int32_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int32_t*)filter)[ph * alloc + i];
223 ((int32_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int32_t*)filter)[ph * alloc + i];
224 }
225 else {
226 for (i = 1; i <= tap_count; i++)
227 ((int32_t*)filter)[(phase_count-ph) * alloc + tap_count-i] =
228 av_clipl_int32(llrint(tab[i] * scale / norm));
229 }
230 break;218 break;
231 case AV_SAMPLE_FMT_FLTP:219 case AV_SAMPLE_FMT_FLTP:
232 for(i=0;i<tap_count;i++)220 for(i=0;i<tap_count;i++)
233 ((float*)filter)[ph * alloc + i] = tab[i] * scale / norm;221 ((float*)filter)[ph * alloc + i] = tab[i] * scale / norm;
234 if (phase_count % 2) break;222 if (phase_count % 2) break;
235 if (tap_count % 2 == 0 || tap_count == 1) {223 for (i = 0; i < tap_count; i++)
236 for (i = 0; i < tap_count; i++)224 ((float*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((float*)filter)[ph * alloc + i];
237 ((float*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((float*)filter)[ph * alloc + i];
238 }
239 else {
240 for (i = 1; i <= tap_count; i++)
241 ((float*)filter)[(phase_count-ph) * alloc + tap_count-i] = tab[i] * scale / norm;
242 }
243 break;225 break;
244 case AV_SAMPLE_FMT_DBLP:226 case AV_SAMPLE_FMT_DBLP:
245 for(i=0;i<tap_count;i++)227 for(i=0;i<tap_count;i++)
246 ((double*)filter)[ph * alloc + i] = tab[i] * scale / norm;228 ((double*)filter)[ph * alloc + i] = tab[i] * scale / norm;
247 if (phase_count % 2) break;229 if (phase_count % 2) break;
248 if (tap_count % 2 == 0 || tap_count == 1) {230 for (i = 0; i < tap_count; i++)
249 for (i = 0; i < tap_count; i++)231 ((double*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((double*)filter)[ph * alloc + i];
250 ((double*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((double*)filter)[ph * alloc + i];
251 }
252 else {
253 for (i = 1; i <= tap_count; i++)
254 ((double*)filter)[(phase_count-ph) * alloc + tap_count-i] = tab[i] * scale / norm;
255 }
256 break;232 break;
257 }233 }
258 }234 }
@@ -308,6 +284,10 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r · 49 unmodified lines
308 double factor= FFMIN(out_rate * cutoff / in_rate, 1.0);284 double factor= FFMIN(out_rate * cutoff / in_rate, 1.0);
309 int phase_count= 1<<phase_shift;285 int phase_count= 1<<phase_shift;
310 int phase_count_compensation = phase_count;286 int phase_count_compensation = phase_count;
287 int filter_length = FFMAX((int)ceil(filter_size/factor), 1);
288
289 if (filter_length > 1)
290 filter_length = FFALIGN(filter_length, 2);
311 291
312 if (exact_rational) {292 if (exact_rational) {
313 int phase_count_exact, phase_count_exact_den;293 int phase_count_exact, phase_count_exact_den;
@@ -320,7 +300,7 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r · 6 unmodified lines
320 }300 }
321 301
322 if (!c || c->phase_count != phase_count || c->linear!=linear || c->factor != factor302 if (!c || c->phase_count != phase_count || c->linear!=linear || c->factor != factor
323 || c->filter_length != FFMAX((int)ceil(filter_size/factor), 1) || c->format != format303 || c->filter_length != filter_length || c->format != format
324 || c->filter_type != filter_type || c->kaiser_beta != kaiser_beta) {304 || c->filter_type != filter_type || c->kaiser_beta != kaiser_beta) {
325 c = av_mallocz(sizeof(*c));305 c = av_mallocz(sizeof(*c));
326 if (!c)306 if (!c)
@@ -354,7 +334,7 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r · 27 unmodified lines
354 c->phase_count = phase_count;334 c->phase_count = phase_count;
355 c->linear = linear;335 c->linear = linear;
356 c->factor = factor;336 c->factor = factor;
357 c->filter_length = FFMAX((int)ceil(filter_size/factor), 1);337 c->filter_length = filter_length;
358 c->filter_alloc = FFALIGN(c->filter_length, 8);338 c->filter_alloc = FFALIGN(c->filter_length, 8);
359 c->filter_bank = av_calloc(c->filter_alloc, (phase_count+1)*c->felem_size);339 c->filter_bank = av_calloc(c->filter_alloc, (phase_count+1)*c->felem_size);
360 c->filter_type = filter_type;340 c->filter_type = filter_type;
tests/fate/libswresample.mak+38−38
@@ -26,16 +26,16 @@ endef · 25 unmodified lines
26#you can use this if you need to update it!26#you can use this if you need to update it!
27#make -k `make fate-list | grep swr` | egrep 'TEST|stddev' | tr '\n' '@' | sed 's#TEST *\([^@]*\)@stddev: *\([0-9.]*\)[^b@]*bytes: *\([0-9]*\) */ *\([0-9]*\)@#fate-\1: CMP_TARGET = \2@fate-\1: SIZE_TOLERANCE = \3 - \4@@#g' | tr '@' '\n'27#make -k `make fate-list | grep swr` | egrep 'TEST|stddev' | tr '\n' '@' | sed 's#TEST *\([^@]*\)@stddev: *\([0-9.]*\)[^b@]*bytes: *\([0-9]*\) */ *\([0-9]*\)@#fate-\1: CMP_TARGET = \2@fate-\1: SIZE_TOLERANCE = \3 - \4@@#g' | tr '@' '\n'
28 28
29fate-swr-resample-dblp-2626-44100: CMP_TARGET = 1352.6929fate-swr-resample-dblp-2626-44100: CMP_TARGET = 1352.67
30fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 2048030fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
31 31
32fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1352.6632fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1352.66
33fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 2048033fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
34 34
35fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1353.0935fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1352.56
36fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 2048236fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
37 37
38fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1352.6838fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1352.67
39fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 2048039fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
40 40
41fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.8241fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.82
@@ -62,7 +62,7 @@ fate-swr-resample-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
62fate-swr-resample-dblp-48000-96000: CMP_TARGET = 0.4762fate-swr-resample-dblp-48000-96000: CMP_TARGET = 0.47
63fate-swr-resample-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 2048063fate-swr-resample-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
64 64
65fate-swr-resample-dblp-8000-2626: CMP_TARGET = 2506.0265fate-swr-resample-dblp-8000-2626: CMP_TARGET = 2503.33
66fate-swr-resample-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 2048666fate-swr-resample-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
67 67
68fate-swr-resample-dblp-8000-44100: CMP_TARGET = 15.0968fate-swr-resample-dblp-8000-44100: CMP_TARGET = 15.09
@@ -74,7 +74,7 @@ fate-swr-resample-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480 · 5 unmodified lines
74fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.8174fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.81
75fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 2048075fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
76 76
77fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.0877fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.07
78fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 2047478fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
79 79
80fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.4480fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.44
@@ -86,16 +86,16 @@ fate-swr-resample-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 · 5 unmodified lines
86fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.5786fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.57
87fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 2049687fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
88 88
89fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1352.6989fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1352.67
90fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 2048090fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
91 91
92fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1352.6692fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1352.66
93fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 2048093fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
94 94
95fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1353.0995fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1352.56
96fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 2048296fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
97 97
98fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1352.6898fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1352.67
99fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 2048099fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
100 100
101fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.82101fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.82
@@ -122,7 +122,7 @@ fate-swr-resample-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
122fate-swr-resample-fltp-48000-96000: CMP_TARGET = 0.47122fate-swr-resample-fltp-48000-96000: CMP_TARGET = 0.47
123fate-swr-resample-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480123fate-swr-resample-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
124 124
125fate-swr-resample-fltp-8000-2626: CMP_TARGET = 2506.02125fate-swr-resample-fltp-8000-2626: CMP_TARGET = 2503.33
126fate-swr-resample-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486126fate-swr-resample-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
127 127
128fate-swr-resample-fltp-8000-44100: CMP_TARGET = 15.09128fate-swr-resample-fltp-8000-44100: CMP_TARGET = 15.09
@@ -134,7 +134,7 @@ fate-swr-resample-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480 · 5 unmodified lines
134fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.81134fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.81
135fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480135fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
136 136
137fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.08137fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.07
138fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474138fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
139 139
140fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.44140fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.44
@@ -146,16 +146,16 @@ fate-swr-resample-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 · 5 unmodified lines
146fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.57146fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.57
147fate-swr-resample-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496147fate-swr-resample-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
148 148
149fate-swr-resample-s16p-2626-44100: CMP_TARGET = 1393.02149fate-swr-resample-s16p-2626-44100: CMP_TARGET = 1392.98
150fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480150fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
151 151
152fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1393.01152fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1393.01
153fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480153fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
154 154
155fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.91155fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.36
156fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482156fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
157 157
158fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.09158fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.07
159fate-swr-resample-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480159fate-swr-resample-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
160 160
161fate-swr-resample-s16p-44100-2626: CMP_TARGET = 185.84161fate-swr-resample-s16p-44100-2626: CMP_TARGET = 185.84
@@ -182,7 +182,7 @@ fate-swr-resample-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
182fate-swr-resample-s16p-48000-96000: CMP_TARGET = 0.73182fate-swr-resample-s16p-48000-96000: CMP_TARGET = 0.73
183fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480183fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
184 184
185fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2506.02185fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2503.32
186fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486186fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
187 187
188fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.13188fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.13
@@ -206,16 +206,16 @@ fate-swr-resample-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 · 17 unmodified lines
206fate-swr-resample-s16p-96000-8000: CMP_TARGET = 58.60206fate-swr-resample-s16p-96000-8000: CMP_TARGET = 58.60
207fate-swr-resample-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496207fate-swr-resample-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
208 208
209fate-swr-resample-s32p-2626-44100: CMP_TARGET = 1393.02209fate-swr-resample-s32p-2626-44100: CMP_TARGET = 1392.99
210fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480210fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
211 211
212fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1393.01212fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1393.01
213fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480213fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
214 214
215fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.90215fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.36
216fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482216fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
217 217
218fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.01218fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.00
219fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480219fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
220 220
221fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.82221fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.82
@@ -242,7 +242,7 @@ fate-swr-resample-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
242fate-swr-resample-s32p-48000-96000: CMP_TARGET = 0.47242fate-swr-resample-s32p-48000-96000: CMP_TARGET = 0.47
243fate-swr-resample-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480243fate-swr-resample-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
244 244
245fate-swr-resample-s32p-8000-2626: CMP_TARGET = 2506.02245fate-swr-resample-s32p-8000-2626: CMP_TARGET = 2503.33
246fate-swr-resample-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486246fate-swr-resample-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
247 247
248fate-swr-resample-s32p-8000-44100: CMP_TARGET = 15.09248fate-swr-resample-s32p-8000-44100: CMP_TARGET = 15.09
@@ -254,7 +254,7 @@ fate-swr-resample-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480 · 5 unmodified lines
254fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.81254fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.81
255fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480255fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
256 256
257fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.08257fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.07
258fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474258fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
259 259
260fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.44260fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.44
@@ -389,16 +389,16 @@ fate-swr-resample_exact-$(3)-$(1)-$(2): FUZZ = 0.1 · 128 unmodified lines
389fate-swr-resample_exact-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav389fate-swr-resample_exact-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
390endef390endef
391 391
392fate-swr-resample_exact-dblp-2626-44100: CMP_TARGET = 1352.69392fate-swr-resample_exact-dblp-2626-44100: CMP_TARGET = 1352.67
393fate-swr-resample_exact-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480393fate-swr-resample_exact-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
394 394
395fate-swr-resample_exact-dblp-2626-48000: CMP_TARGET = 1352.66395fate-swr-resample_exact-dblp-2626-48000: CMP_TARGET = 1352.66
396fate-swr-resample_exact-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480396fate-swr-resample_exact-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
397 397
398fate-swr-resample_exact-dblp-2626-8000: CMP_TARGET = 1353.09398fate-swr-resample_exact-dblp-2626-8000: CMP_TARGET = 1352.56
399fate-swr-resample_exact-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482399fate-swr-resample_exact-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
400 400
401fate-swr-resample_exact-dblp-2626-96000: CMP_TARGET = 1352.68401fate-swr-resample_exact-dblp-2626-96000: CMP_TARGET = 1352.67
402fate-swr-resample_exact-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480402fate-swr-resample_exact-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
403 403
404fate-swr-resample_exact-dblp-44100-2626: CMP_TARGET = 185.82404fate-swr-resample_exact-dblp-44100-2626: CMP_TARGET = 185.82
@@ -425,7 +425,7 @@ fate-swr-resample_exact-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
425fate-swr-resample_exact-dblp-48000-96000: CMP_TARGET = 0.47425fate-swr-resample_exact-dblp-48000-96000: CMP_TARGET = 0.47
426fate-swr-resample_exact-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480426fate-swr-resample_exact-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
427 427
428fate-swr-resample_exact-dblp-8000-2626: CMP_TARGET = 2506.02428fate-swr-resample_exact-dblp-8000-2626: CMP_TARGET = 2503.33
429fate-swr-resample_exact-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486429fate-swr-resample_exact-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
430 430
431fate-swr-resample_exact-dblp-8000-44100: CMP_TARGET = 14.59431fate-swr-resample_exact-dblp-8000-44100: CMP_TARGET = 14.59
@@ -437,7 +437,7 @@ fate-swr-resample_exact-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480 · 5 unmodified lines
437fate-swr-resample_exact-dblp-8000-96000: CMP_TARGET = 13.62437fate-swr-resample_exact-dblp-8000-96000: CMP_TARGET = 13.62
438fate-swr-resample_exact-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480438fate-swr-resample_exact-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
439 439
440fate-swr-resample_exact-dblp-96000-2626: CMP_TARGET = 675.08440fate-swr-resample_exact-dblp-96000-2626: CMP_TARGET = 675.07
441fate-swr-resample_exact-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474441fate-swr-resample_exact-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
442 442
443fate-swr-resample_exact-dblp-96000-44100: CMP_TARGET = 1.23443fate-swr-resample_exact-dblp-96000-44100: CMP_TARGET = 1.23
@@ -449,16 +449,16 @@ fate-swr-resample_exact-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 · 5 unmodified lines
449fate-swr-resample_exact-dblp-96000-8000: CMP_TARGET = 58.52449fate-swr-resample_exact-dblp-96000-8000: CMP_TARGET = 58.52
450fate-swr-resample_exact-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496450fate-swr-resample_exact-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
451 451
452fate-swr-resample_exact-fltp-2626-44100: CMP_TARGET = 1352.69452fate-swr-resample_exact-fltp-2626-44100: CMP_TARGET = 1352.67
453fate-swr-resample_exact-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480453fate-swr-resample_exact-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
454 454
455fate-swr-resample_exact-fltp-2626-48000: CMP_TARGET = 1352.66455fate-swr-resample_exact-fltp-2626-48000: CMP_TARGET = 1352.66
456fate-swr-resample_exact-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480456fate-swr-resample_exact-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
457 457
458fate-swr-resample_exact-fltp-2626-8000: CMP_TARGET = 1353.09458fate-swr-resample_exact-fltp-2626-8000: CMP_TARGET = 1352.56
459fate-swr-resample_exact-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482459fate-swr-resample_exact-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
460 460
461fate-swr-resample_exact-fltp-2626-96000: CMP_TARGET = 1352.68461fate-swr-resample_exact-fltp-2626-96000: CMP_TARGET = 1352.67
462fate-swr-resample_exact-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480462fate-swr-resample_exact-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
463 463
464fate-swr-resample_exact-fltp-44100-2626: CMP_TARGET = 185.82464fate-swr-resample_exact-fltp-44100-2626: CMP_TARGET = 185.82
@@ -485,7 +485,7 @@ fate-swr-resample_exact-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
485fate-swr-resample_exact-fltp-48000-96000: CMP_TARGET = 0.47485fate-swr-resample_exact-fltp-48000-96000: CMP_TARGET = 0.47
486fate-swr-resample_exact-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480486fate-swr-resample_exact-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
487 487
488fate-swr-resample_exact-fltp-8000-2626: CMP_TARGET = 2506.02488fate-swr-resample_exact-fltp-8000-2626: CMP_TARGET = 2503.33
489fate-swr-resample_exact-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486489fate-swr-resample_exact-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
490 490
491fate-swr-resample_exact-fltp-8000-44100: CMP_TARGET = 14.59491fate-swr-resample_exact-fltp-8000-44100: CMP_TARGET = 14.59
@@ -497,7 +497,7 @@ fate-swr-resample_exact-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480 · 5 unmodified lines
497fate-swr-resample_exact-fltp-8000-96000: CMP_TARGET = 13.62497fate-swr-resample_exact-fltp-8000-96000: CMP_TARGET = 13.62
498fate-swr-resample_exact-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480498fate-swr-resample_exact-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
499 499
500fate-swr-resample_exact-fltp-96000-2626: CMP_TARGET = 675.08500fate-swr-resample_exact-fltp-96000-2626: CMP_TARGET = 675.07
501fate-swr-resample_exact-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474501fate-swr-resample_exact-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
502 502
503fate-swr-resample_exact-fltp-96000-44100: CMP_TARGET = 1.23503fate-swr-resample_exact-fltp-96000-44100: CMP_TARGET = 1.23
@@ -509,16 +509,16 @@ fate-swr-resample_exact-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 · 5 unmodified lines
509fate-swr-resample_exact-fltp-96000-8000: CMP_TARGET = 58.52509fate-swr-resample_exact-fltp-96000-8000: CMP_TARGET = 58.52
510fate-swr-resample_exact-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496510fate-swr-resample_exact-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
511 511
512fate-swr-resample_exact-s16p-2626-44100: CMP_TARGET = 1393.02512fate-swr-resample_exact-s16p-2626-44100: CMP_TARGET = 1392.98
513fate-swr-resample_exact-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480513fate-swr-resample_exact-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
514 514
515fate-swr-resample_exact-s16p-2626-48000: CMP_TARGET = 1393.01515fate-swr-resample_exact-s16p-2626-48000: CMP_TARGET = 1393.01
516fate-swr-resample_exact-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480516fate-swr-resample_exact-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
517 517
518fate-swr-resample_exact-s16p-2626-8000: CMP_TARGET = 1393.91518fate-swr-resample_exact-s16p-2626-8000: CMP_TARGET = 1393.36
519fate-swr-resample_exact-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482519fate-swr-resample_exact-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
520 520
521fate-swr-resample_exact-s16p-2626-96000: CMP_TARGET = 1393.09521fate-swr-resample_exact-s16p-2626-96000: CMP_TARGET = 1393.07
522fate-swr-resample_exact-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480522fate-swr-resample_exact-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
523 523
524fate-swr-resample_exact-s16p-44100-2626: CMP_TARGET = 185.84524fate-swr-resample_exact-s16p-44100-2626: CMP_TARGET = 185.84
@@ -545,7 +545,7 @@ fate-swr-resample_exact-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
545fate-swr-resample_exact-s16p-48000-96000: CMP_TARGET = 0.73545fate-swr-resample_exact-s16p-48000-96000: CMP_TARGET = 0.73
546fate-swr-resample_exact-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480546fate-swr-resample_exact-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
547 547
548fate-swr-resample_exact-s16p-8000-2626: CMP_TARGET = 2506.02548fate-swr-resample_exact-s16p-8000-2626: CMP_TARGET = 2503.32
549fate-swr-resample_exact-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486549fate-swr-resample_exact-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
550 550
551fate-swr-resample_exact-s16p-8000-44100: CMP_TARGET = 14.63551fate-swr-resample_exact-s16p-8000-44100: CMP_TARGET = 14.63
@@ -569,16 +569,16 @@ fate-swr-resample_exact-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 · 17 unmodified lines
569fate-swr-resample_exact-s16p-96000-8000: CMP_TARGET = 58.56569fate-swr-resample_exact-s16p-96000-8000: CMP_TARGET = 58.56
570fate-swr-resample_exact-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496570fate-swr-resample_exact-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
571 571
572fate-swr-resample_exact-s32p-2626-44100: CMP_TARGET = 1393.02572fate-swr-resample_exact-s32p-2626-44100: CMP_TARGET = 1392.99
573fate-swr-resample_exact-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480573fate-swr-resample_exact-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
574 574
575fate-swr-resample_exact-s32p-2626-48000: CMP_TARGET = 1393.01575fate-swr-resample_exact-s32p-2626-48000: CMP_TARGET = 1393.01
576fate-swr-resample_exact-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480576fate-swr-resample_exact-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
577 577
578fate-swr-resample_exact-s32p-2626-8000: CMP_TARGET = 1393.90578fate-swr-resample_exact-s32p-2626-8000: CMP_TARGET = 1393.36
579fate-swr-resample_exact-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482579fate-swr-resample_exact-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
580 580
581fate-swr-resample_exact-s32p-2626-96000: CMP_TARGET = 1393.01581fate-swr-resample_exact-s32p-2626-96000: CMP_TARGET = 1393.00
582fate-swr-resample_exact-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480582fate-swr-resample_exact-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
583 583
584fate-swr-resample_exact-s32p-44100-2626: CMP_TARGET = 185.82584fate-swr-resample_exact-s32p-44100-2626: CMP_TARGET = 185.82
@@ -605,7 +605,7 @@ fate-swr-resample_exact-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484 · 20 unmodified lines
605fate-swr-resample_exact-s32p-48000-96000: CMP_TARGET = 0.47605fate-swr-resample_exact-s32p-48000-96000: CMP_TARGET = 0.47
606fate-swr-resample_exact-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480606fate-swr-resample_exact-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
607 607
608fate-swr-resample_exact-s32p-8000-2626: CMP_TARGET = 2506.02608fate-swr-resample_exact-s32p-8000-2626: CMP_TARGET = 2503.33
609fate-swr-resample_exact-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486609fate-swr-resample_exact-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
610 610
611fate-swr-resample_exact-s32p-8000-44100: CMP_TARGET = 14.59611fate-swr-resample_exact-s32p-8000-44100: CMP_TARGET = 14.59
@@ -617,7 +617,7 @@ fate-swr-resample_exact-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480 · 5 unmodified lines
617fate-swr-resample_exact-s32p-8000-96000: CMP_TARGET = 13.62617fate-swr-resample_exact-s32p-8000-96000: CMP_TARGET = 13.62
618fate-swr-resample_exact-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480618fate-swr-resample_exact-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
619 619
620fate-swr-resample_exact-s32p-96000-2626: CMP_TARGET = 675.08620fate-swr-resample_exact-s32p-96000-2626: CMP_TARGET = 675.07
621fate-swr-resample_exact-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474621fate-swr-resample_exact-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
622 622
623fate-swr-resample_exact-s32p-96000-44100: CMP_TARGET = 1.23623fate-swr-resample_exact-s32p-96000-44100: CMP_TARGET = 1.23

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t