r4072 - in trunk: . tests
- From: stw svn gnome org
- To: svn-commits-list gnome org
- Subject: r4072 - in trunk: . tests
- Date: Wed, 8 Nov 2006 17:45:24 -0500 (EST)
Author: stw
Date: 2006-11-08 17:45:16 -0500 (Wed, 08 Nov 2006)
New Revision: 4072
Modified:
trunk/ChangeLog
trunk/tests/testresampler.cc
Log:
Wed Nov 8 23:27:33 2006 Stefan Westerfeld <stefan space twc de>
* tests/testresampler.cc: Support for testing linear interpolation.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-11-08 22:44:30 UTC (rev 4071)
+++ trunk/ChangeLog 2006-11-08 22:45:16 UTC (rev 4072)
@@ -1,3 +1,7 @@
+Wed Nov 8 23:27:33 2006 Stefan Westerfeld <stefan space twc de>
+
+ * tests/testresampler.cc: Support for testing linear interpolation.
+
Wed Nov 8 22:09:36 2006 Stefan Westerfeld <stefan space twc de>
* tests/testresampler.cc: Ensure that accuracy tests use the same
Modified: trunk/tests/testresampler.cc
===================================================================
--- trunk/tests/testresampler.cc 2006-11-08 22:44:30 UTC (rev 4071)
+++ trunk/tests/testresampler.cc 2006-11-08 22:45:16 UTC (rev 4072)
@@ -112,6 +112,7 @@
printf (" --oversample perform --up and --down\n");
printf (" --precision=<bits> choose resampling filter for <bits> precision\n");
printf (" supported precisions: 8, 12, 16, 20, 24 [%d]\n", static_cast<int> (options.precision));
+ printf (" --precision-linear use linear interpolation (very bad quality)\n");
printf (" --fpu disables loading of SSE or similarly optimized code\n");
printf ("\n");
printf ("Options:\n");
@@ -254,6 +255,10 @@
exit (1);
}
}
+ else if (check_arg (argc, argv, &i, "--precision-linear"))
+ {
+ precision = BSE_RESAMPLER2_PREC_LINEAR;
+ }
else if (check_arg (argc, argv, &i, "--freq-scan", &opt_arg))
{
gchar *oa = g_strdup (opt_arg);
@@ -417,7 +422,7 @@
double phase = 0, output_phase = 0;
double test_frequency_max_diff = 0; /* for monitoring frequency scanning */
- while (k < 10000)
+ while (k < 20000)
{
guint misalign = rand() % 4;
if (block_size <= misalign)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]