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

Side by Side Diff: webrtc/video/video_quality_test.cc

Issue 2781323002: Add back sender_time and receiver_time metrics to full stack tests. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/video/video_quality_test.h" 10 #include "webrtc/video/video_quality_test.h"
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 ++frames_processed_; 737 ++frames_processed_;
738 assert(frames_processed_ <= frames_to_process_); 738 assert(frames_processed_ <= frames_to_process_);
739 return frames_processed_ == frames_to_process_; 739 return frames_processed_ == frames_to_process_;
740 } 740 }
741 741
742 void PrintResults() { 742 void PrintResults() {
743 StopMeasuringCpuProcessTime(); 743 StopMeasuringCpuProcessTime();
744 rtc::CritScope crit(&comparison_lock_); 744 rtc::CritScope crit(&comparison_lock_);
745 PrintResult("psnr", psnr_, " dB"); 745 PrintResult("psnr", psnr_, " dB");
746 PrintResult("ssim", ssim_, " score"); 746 PrintResult("ssim", ssim_, " score");
747 PrintResult("sender_time", sender_time_, " ms");
748 PrintResult("receiver_time", receiver_time_, " ms");
747 PrintResult("total_delay_incl_network", end_to_end_, " ms"); 749 PrintResult("total_delay_incl_network", end_to_end_, " ms");
748 PrintResult("time_between_rendered_frames", rendered_delta_, " ms"); 750 PrintResult("time_between_rendered_frames", rendered_delta_, " ms");
749 PrintResult("encode_frame_rate", encode_frame_rate_, " fps"); 751 PrintResult("encode_frame_rate", encode_frame_rate_, " fps");
750 PrintResult("encode_time", encode_time_ms_, " ms"); 752 PrintResult("encode_time", encode_time_ms_, " ms");
751 PrintResult("media_bitrate", media_bitrate_bps_, " bps"); 753 PrintResult("media_bitrate", media_bitrate_bps_, " bps");
752 754
753 if (receive_stream_ != nullptr) { 755 if (receive_stream_ != nullptr) {
754 PrintResult("decode_time", decode_time_ms_, " ms"); 756 PrintResult("decode_time", decode_time_ms_, " ms");
755 } 757 }
756 758
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 if (!params_.video.encoded_frame_base_path.empty()) { 1883 if (!params_.video.encoded_frame_base_path.empty()) {
1882 std::ostringstream str; 1884 std::ostringstream str;
1883 str << receive_logs_++; 1885 str << receive_logs_++;
1884 std::string path = 1886 std::string path =
1885 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 1887 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
1886 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 1888 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
1887 10000000); 1889 10000000);
1888 } 1890 }
1889 } 1891 }
1890 } // namespace webrtc 1892 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698