r3914 - in trunk: . slowtests
- From: stw svn gnome org
- To: svn-commits-list gnome org
- Subject: r3914 - in trunk: . slowtests
- Date: Wed, 27 Sep 2006 16:08:52 -0400 (EDT)
Author: stw
Date: 2006-09-27 16:08:22 -0400 (Wed, 27 Sep 2006)
New Revision: 3914
Modified:
trunk/ChangeLog
trunk/slowtests/testresampler.cc
Log:
Wed Sep 27 21:33:48 2006 Stefan Westerfeld <stefan space twc de>
* slowtests/testresampler.cc: Trimmed default output of "filter-impl"
test. Verbose output can be enabled using --filter-impl-verbose.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-27 20:01:46 UTC (rev 3913)
+++ trunk/ChangeLog 2006-09-27 20:08:22 UTC (rev 3914)
@@ -1,3 +1,8 @@
+Wed Sep 27 21:33:48 2006 Stefan Westerfeld <stefan space twc de>
+
+ * slowtests/testresampler.cc: Trimmed default output of "filter-impl"
+ test. Verbose output can be enabled using --filter-impl-verbose.
+
Wed Sep 27 20:02:00 2006 Tim Janik <timj gtk org>
* slowtests/Makefile.am: build and check ./ before subdirs.
Modified: trunk/slowtests/testresampler.cc
===================================================================
--- trunk/slowtests/testresampler.cc 2006-09-27 20:01:46 UTC (rev 3913)
+++ trunk/slowtests/testresampler.cc 2006-09-27 20:08:22 UTC (rev 3914)
@@ -65,6 +65,7 @@
bool freq_scan_verbose;
double max_threshold_db;
BseResampler2Precision precision;
+ bool filter_impl_verbose;
string program_name;
Options() :
@@ -76,6 +77,7 @@
freq_scan_verbose (false),
max_threshold_db (0),
precision (BSE_RESAMPLER2_PREC_96DB),
+ filter_impl_verbose (false),
program_name ("testresampler")
{
}
@@ -109,6 +111,7 @@
printf ("Options:\n");
printf (" --frequency=<freq> use <freq> as sine test frequency [%f]\n", options.frequency);
printf (" --block-size=<bs> use <bs> as resampler block size [%d]\n", options.block_size);
+ printf (" --filter-impl-verbose print reordered coefficients (debugging only)\n");
printf ("\n");
printf ("Accuracy test options:\n");
printf (" --freq-scan=<fmin>,<fmax>,<finc>\n");
@@ -276,6 +279,8 @@
if (max_threshold_db > 0)
max_threshold_db = -max_threshold_db;
}
+ else if (check_arg (argc, argv, &i, "--filter-impl-verbose"))
+ filter_impl_verbose = true;
else if (check_arg (argc, argv, &i, "--up"))
resample_type = RES_UPSAMPLE;
else if (check_arg (argc, argv, &i, "--down"))
@@ -301,7 +306,7 @@
int
test_filter_impl()
{
- return Bse::Block::test_resampler2() ? 0 : 1;
+ return Bse::Block::test_resampler2 (options.filter_impl_verbose) ? 0 : 1;
}
double
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]