validate:ssim: Make position reporting parseable by the launcher

This commit is contained in:
Thibault Saunier 2015-06-12 12:10:55 +02:00
parent 3a1facdb45
commit 06cca8a5b3
2 changed files with 9 additions and 7 deletions

View file

@ -774,9 +774,11 @@ _check_directory (GstValidateSsim * self, const gchar * ref_dir,
}
gst_validate_printf (NULL,
"<position: %s avg: %f min: %f (Passed: %d failed: %d, %d not found)>\r",
g_file_info_get_display_name (info), *mean, *lowest,
nfiles, nfailures, nnotfound);
"<position: %s duration: %" GST_TIME_FORMAT
" avg: %f min: %f (Passed: %d failed: %d, %d not found)/>\r",
g_file_info_get_display_name (info),
GST_TIME_ARGS (GST_CLOCK_TIME_NONE),
*mean, *lowest, nfiles, nfailures, nnotfound);
g_free (compared_file);
g_free (ref_file);

View file

@ -247,10 +247,10 @@ runner_stopping (GstValidateRunner * runner, ValidateSsimOverride * self)
total_avg += mssim;
gst_validate_printf (NULL,
"<position: %" GST_TIME_FORMAT
" %d / %d avg: %f min: %f (Passed: %d failed: %d)>\r",
GST_TIME_ARGS (frame->position), i + 1, nfiles, mssim, lowest, npassed,
nfailures);
"<position: %" GST_TIME_FORMAT " duration: %" GST_TIME_FORMAT
" %d / %d avg: %f min: %f (Passed: %d failed: %d)/>\r",
GST_TIME_ARGS (frame->position), GST_TIME_ARGS (GST_CLOCK_TIME_NONE),
i + 1, nfiles, mssim, lowest, npassed, nfailures);
g_free (bname);
}