Commit 949730e2 authored by Andrew Lewis's avatar Andrew Lewis

Comma-separate VP9 encoder tmp.stt output

Also add column headings so that the output can still be parsed if the
set of headers changes later.

Change-Id: I4beaf266521e093db4acf5f715b18fdfb7e3d1cd
parent ed3a80cb
......@@ -3129,15 +3129,37 @@ static void output_frame_level_debug_stats(VP9_COMP *cpi) {
dc_quant_devisor = 4.0;
#endif
fprintf(f, "%10u %dx%d %d %d %10d %10d %10d %10d"
"%10"PRId64" %10"PRId64" %5d %5d %10"PRId64" "
"%10"PRId64" %10"PRId64" %10d "
"%7.2lf %7.2lf %7.2lf %7.2lf %7.2lf"
"%6d %6d %5d %5d %5d "
"%10"PRId64" %10.3lf"
"%10lf %8u %10"PRId64" %10d %10d %10d %10d %10d\n",
if (!cm->current_video_frame) {
fprintf(f, "frame, width, height, last ts, last end ts, "
"source_alt_ref_pending, source_alt_ref_active, "
"this_frame_target, projected_frame_size, "
"projected_frame_size / MBs, "
"projected_frame_size - this_frame_target, "
"vbr_bits_off_target, vbr_bits_off_target_fast, "
"twopass.extend_minq, twopass.extend_minq_fast, "
"total_target_vs_actual, "
"starting_buffer_level - bits_off_target, "
"total_actual_bits, base_qindex, q for base_qindex, "
"dc quant, q for active_worst_quality, avg_q, q for oxcf.cq_level, "
"refresh_last_frame, refresh_golden_frame, refresh_alt_ref_frame, "
"frame_type, gfu_boost, "
"twopass.bits_left, "
"twopass.total_left_stats.coded_error, "
"twopass.bits_left / (1 + twopass.total_left_stats.coded_error), "
"tot_recode_hits, recon_err, kf_boost, "
"twopass.kf_zeromotion_pct, twopass.fr_content_type, "
"filter_level, seg.aq_av_offset\n");
}
fprintf(f, "%10u, %d, %d, %10"PRId64", %10"PRId64", %d, %d, %10d, %10d, "
"%10d, %10d, %10"PRId64", %10"PRId64", %5d, %5d, %10"PRId64", "
"%10"PRId64", %10"PRId64", %10d, %7.2lf, %7.2lf, %7.2lf, %7.2lf, "
"%7.2lf, %6d, %6d, %5d, %5d, %5d, %10"PRId64", %10.3lf, %10lf, %8u, "
"%10"PRId64", %10d, %10d, %10d, %10d, %10d\n",
cpi->common.current_video_frame,
cm->width, cm->height,
cpi->last_time_stamp_seen,
cpi->last_end_time_stamp_seen,
cpi->rc.source_alt_ref_pending,
cpi->rc.source_alt_ref_active,
cpi->rc.this_frame_target,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment