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 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 | 1577 |
1578 FILE* graph_data_output_file = nullptr; | 1578 FILE* graph_data_output_file = nullptr; |
1579 if (!params_.analyzer.graph_data_output_filename.empty()) { | 1579 if (!params_.analyzer.graph_data_output_filename.empty()) { |
1580 graph_data_output_file = | 1580 graph_data_output_file = |
1581 fopen(params_.analyzer.graph_data_output_filename.c_str(), "w"); | 1581 fopen(params_.analyzer.graph_data_output_filename.c_str(), "w"); |
1582 RTC_CHECK(graph_data_output_file) | 1582 RTC_CHECK(graph_data_output_file) |
1583 << "Can't open the file " << params_.analyzer.graph_data_output_filename | 1583 << "Can't open the file " << params_.analyzer.graph_data_output_filename |
1584 << "!"; | 1584 << "!"; |
1585 } | 1585 } |
1586 | 1586 |
1587 webrtc::RtcEventLogNullImpl event_log; | 1587 Call::Config call_config(event_log_.get()); |
1588 Call::Config call_config(&event_log_); | |
1589 call_config.bitrate_config = params.call.call_bitrate_config; | 1588 call_config.bitrate_config = params.call.call_bitrate_config; |
1590 CreateCalls(call_config, call_config); | 1589 CreateCalls(call_config, call_config); |
1591 | 1590 |
1592 test::LayerFilteringTransport send_transport( | 1591 test::LayerFilteringTransport send_transport( |
1593 params_.pipe, sender_call_.get(), kPayloadTypeVP8, kPayloadTypeVP9, | 1592 params_.pipe, sender_call_.get(), kPayloadTypeVP8, kPayloadTypeVP9, |
1594 params_.video.selected_tl, params_.ss.selected_sl); | 1593 params_.video.selected_tl, params_.ss.selected_sl); |
1595 test::DirectTransport recv_transport( | 1594 test::DirectTransport recv_transport( |
1596 params_.pipe, receiver_call_.get(), MediaType::VIDEO); | 1595 params_.pipe, receiver_call_.get(), MediaType::VIDEO); |
1597 | 1596 |
1598 std::string graph_title = params_.analyzer.graph_title; | 1597 std::string graph_title = params_.analyzer.graph_title; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1729 | 1728 |
1730 *audio_receive_stream = call->CreateAudioReceiveStream(audio_config); | 1729 *audio_receive_stream = call->CreateAudioReceiveStream(audio_config); |
1731 } | 1730 } |
1732 | 1731 |
1733 void VideoQualityTest::RunWithRenderers(const Params& params) { | 1732 void VideoQualityTest::RunWithRenderers(const Params& params) { |
1734 params_ = params; | 1733 params_ = params; |
1735 CheckParams(); | 1734 CheckParams(); |
1736 | 1735 |
1737 // TODO(ivica): Remove bitrate_config and use the default Call::Config(), to | 1736 // TODO(ivica): Remove bitrate_config and use the default Call::Config(), to |
1738 // match the full stack tests. | 1737 // match the full stack tests. |
1739 webrtc::RtcEventLogNullImpl event_log; | 1738 Call::Config call_config(event_log_.get()); |
1740 Call::Config call_config(&event_log_); | |
1741 call_config.bitrate_config = params_.call.call_bitrate_config; | 1739 call_config.bitrate_config = params_.call.call_bitrate_config; |
1742 | 1740 |
1743 ::VoiceEngineState voe; | 1741 ::VoiceEngineState voe; |
1744 if (params_.audio.enabled) { | 1742 if (params_.audio.enabled) { |
1745 CreateVoiceEngine(&voe, decoder_factory_); | 1743 CreateVoiceEngine(&voe, decoder_factory_); |
1746 AudioState::Config audio_state_config; | 1744 AudioState::Config audio_state_config; |
1747 audio_state_config.voice_engine = voe.voice_engine; | 1745 audio_state_config.voice_engine = voe.voice_engine; |
1748 audio_state_config.audio_mixer = AudioMixerImpl::Create(); | 1746 audio_state_config.audio_mixer = AudioMixerImpl::Create(); |
1749 call_config.audio_state = AudioState::Create(audio_state_config); | 1747 call_config.audio_state = AudioState::Create(audio_state_config); |
1750 } | 1748 } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 if (!params_.video.encoded_frame_base_path.empty()) { | 1882 if (!params_.video.encoded_frame_base_path.empty()) { |
1885 std::ostringstream str; | 1883 std::ostringstream str; |
1886 str << receive_logs_++; | 1884 str << receive_logs_++; |
1887 std::string path = | 1885 std::string path = |
1888 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 1886 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
1889 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 1887 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
1890 10000000); | 1888 10000000); |
1891 } | 1889 } |
1892 } | 1890 } |
1893 } // namespace webrtc | 1891 } // namespace webrtc |
OLD | NEW |