Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: webrtc/modules/video_coding/codecs/test/stats.cc

Issue 2995513002: Minor improvements to VideoProcessor and corresponding test. (Closed)
Patch Set: Fix compile. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/codecs/test/stats.cc
diff --git a/webrtc/modules/video_coding/codecs/test/stats.cc b/webrtc/modules/video_coding/codecs/test/stats.cc
index 173cd16fcbf09b987f59bac29923a1c8786b420c..649c0d549a80735fbdbf689b7adcfcf58608a58e 100644
--- a/webrtc/modules/video_coding/codecs/test/stats.cc
+++ b/webrtc/modules/video_coding/codecs/test/stats.cc
@@ -50,7 +50,6 @@ FrameStatistic& Stats::NewFrame(int frame_number) {
}
void Stats::PrintSummary() {
- printf("Processing summary:\n");
if (stats_.empty()) {
printf("No frame statistics have been logged yet.\n");
return;
@@ -145,22 +144,22 @@ void Stats::PrintSummary() {
}
// Bitrate stats.
- printf("Bit rates:\n");
+ printf("Bitrates:\n");
frame = std::min_element(stats_.begin(), stats_.end(), LessForBitRate);
- printf(" Min bit rate: %7d kbps (frame %d)\n", frame->bit_rate_in_kbps,
+ printf(" Min bitrate: %7d kbps (frame %d)\n", frame->bit_rate_in_kbps,
frame->frame_number);
frame = std::max_element(stats_.begin(), stats_.end(), LessForBitRate);
- printf(" Max bit rate: %7d kbps (frame %d)\n", frame->bit_rate_in_kbps,
+ printf(" Max bitrate: %7d kbps (frame %d)\n", frame->bit_rate_in_kbps,
frame->frame_number);
- int avg_qp = (total_qp_count > 0) ? (total_qp / total_qp_count) : -1;
- printf("Average QP: %d\n", avg_qp);
-
printf("\n");
printf("Total encoding time : %7d ms.\n", total_encoding_time_in_us / 1000);
printf("Total decoding time : %7d ms.\n", total_decoding_time_in_us / 1000);
printf("Total processing time: %7d ms.\n",
(total_encoding_time_in_us + total_decoding_time_in_us) / 1000);
+
+ int avg_qp = (total_qp_count > 0) ? (total_qp / total_qp_count) : -1;
+ printf("Average QP: %d\n", avg_qp);
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698