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 "webrtc/video/video_quality_test.h" | 10 #include "webrtc/video/video_quality_test.h" |
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 } | 1583 } |
1584 | 1584 |
1585 webrtc::RtcEventLogNullImpl event_log; | 1585 webrtc::RtcEventLogNullImpl event_log; |
1586 Call::Config call_config(&event_log_); | 1586 Call::Config call_config(&event_log_); |
1587 call_config.bitrate_config = params.call.call_bitrate_config; | 1587 call_config.bitrate_config = params.call.call_bitrate_config; |
1588 CreateCalls(call_config, call_config); | 1588 CreateCalls(call_config, call_config); |
1589 | 1589 |
1590 test::LayerFilteringTransport send_transport( | 1590 test::LayerFilteringTransport send_transport( |
1591 params_.pipe, sender_call_.get(), kPayloadTypeVP8, kPayloadTypeVP9, | 1591 params_.pipe, sender_call_.get(), kPayloadTypeVP8, kPayloadTypeVP9, |
1592 params_.video.selected_tl, params_.ss.selected_sl); | 1592 params_.video.selected_tl, params_.ss.selected_sl); |
1593 test::DirectTransport recv_transport( | 1593 test::DirectTransport recv_transport(params_.pipe, receiver_call_.get()); |
1594 params_.pipe, receiver_call_.get(), MediaType::VIDEO); | |
1595 | 1594 |
1596 std::string graph_title = params_.analyzer.graph_title; | 1595 std::string graph_title = params_.analyzer.graph_title; |
1597 if (graph_title.empty()) | 1596 if (graph_title.empty()) |
1598 graph_title = VideoQualityTest::GenerateGraphTitle(); | 1597 graph_title = VideoQualityTest::GenerateGraphTitle(); |
1599 | 1598 |
1600 bool is_quick_test_enabled = field_trial::IsEnabled("WebRTC-QuickPerfTest"); | 1599 bool is_quick_test_enabled = field_trial::IsEnabled("WebRTC-QuickPerfTest"); |
1601 VideoAnalyzer analyzer( | 1600 VideoAnalyzer analyzer( |
1602 &send_transport, params_.analyzer.test_label, | 1601 &send_transport, params_.analyzer.test_label, |
1603 params_.analyzer.avg_psnr_threshold, params_.analyzer.avg_ssim_threshold, | 1602 params_.analyzer.avg_psnr_threshold, params_.analyzer.avg_ssim_threshold, |
1604 is_quick_test_enabled | 1603 is_quick_test_enabled |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 if (!params_.video.encoded_frame_base_path.empty()) { | 1881 if (!params_.video.encoded_frame_base_path.empty()) { |
1883 std::ostringstream str; | 1882 std::ostringstream str; |
1884 str << receive_logs_++; | 1883 str << receive_logs_++; |
1885 std::string path = | 1884 std::string path = |
1886 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 1885 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
1887 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 1886 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
1888 10000000); | 1887 10000000); |
1889 } | 1888 } |
1890 } | 1889 } |
1891 } // namespace webrtc | 1890 } // namespace webrtc |
OLD | NEW |