OLD | NEW |
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 <stdio.h> | 10 #include <stdio.h> |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 bool FrameProcessed() { | 467 bool FrameProcessed() { |
468 rtc::CritScope crit(&comparison_lock_); | 468 rtc::CritScope crit(&comparison_lock_); |
469 ++frames_processed_; | 469 ++frames_processed_; |
470 assert(frames_processed_ <= frames_to_process_); | 470 assert(frames_processed_ <= frames_to_process_); |
471 return frames_processed_ == frames_to_process_; | 471 return frames_processed_ == frames_to_process_; |
472 } | 472 } |
473 | 473 |
474 void PrintResults() { | 474 void PrintResults() { |
475 rtc::CritScope crit(&comparison_lock_); | 475 rtc::CritScope crit(&comparison_lock_); |
476 PrintResult("psnr", psnr_, " dB"); | 476 PrintResult("psnr", psnr_, " dB"); |
477 PrintResult("ssim", ssim_, ""); | 477 PrintResult("ssim", ssim_, " score"); |
478 PrintResult("sender_time", sender_time_, " ms"); | 478 PrintResult("sender_time", sender_time_, " ms"); |
479 printf("RESULT dropped_frames: %s = %d frames\n", test_label_.c_str(), | 479 printf("RESULT dropped_frames: %s = %d frames\n", test_label_.c_str(), |
480 dropped_frames_); | 480 dropped_frames_); |
481 PrintResult("receiver_time", receiver_time_, " ms"); | 481 PrintResult("receiver_time", receiver_time_, " ms"); |
482 PrintResult("total_delay_incl_network", end_to_end_, " ms"); | 482 PrintResult("total_delay_incl_network", end_to_end_, " ms"); |
483 PrintResult("time_between_rendered_frames", rendered_delta_, " ms"); | 483 PrintResult("time_between_rendered_frames", rendered_delta_, " ms"); |
484 PrintResult("encoded_frame_size", encoded_frame_size_, " bytes"); | 484 PrintResult("encoded_frame_size", encoded_frame_size_, " bytes"); |
485 PrintResult("encode_frame_rate", encode_frame_rate_, " fps"); | 485 PrintResult("encode_frame_rate", encode_frame_rate_, " fps"); |
486 PrintResult("encode_time", encode_time_ms, " ms"); | 486 PrintResult("encode_time", encode_time_ms, " ms"); |
487 PrintResult("encode_usage_percent", encode_usage_percent, " percent"); | 487 PrintResult("encode_usage_percent", encode_usage_percent, " percent"); |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 video_send_stream_->Stop(); | 1087 video_send_stream_->Stop(); |
1088 receive_stream->Stop(); | 1088 receive_stream->Stop(); |
1089 | 1089 |
1090 call->DestroyVideoReceiveStream(receive_stream); | 1090 call->DestroyVideoReceiveStream(receive_stream); |
1091 call->DestroyVideoSendStream(video_send_stream_); | 1091 call->DestroyVideoSendStream(video_send_stream_); |
1092 | 1092 |
1093 transport.StopSending(); | 1093 transport.StopSending(); |
1094 } | 1094 } |
1095 | 1095 |
1096 } // namespace webrtc | 1096 } // namespace webrtc |
OLD | NEW |