| 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 std::set<VideoEncoder*> live_encoders_; | 1027 std::set<VideoEncoder*> live_encoders_; |
| 1028 }; | 1028 }; |
| 1029 | 1029 |
| 1030 VideoQualityTest::VideoQualityTest() | 1030 VideoQualityTest::VideoQualityTest() |
| 1031 : clock_(Clock::GetRealTimeClock()), receive_logs_(0), send_logs_(0) {} | 1031 : clock_(Clock::GetRealTimeClock()), receive_logs_(0), send_logs_(0) {} |
| 1032 | 1032 |
| 1033 VideoQualityTest::Params::Params() | 1033 VideoQualityTest::Params::Params() |
| 1034 : call({false, Call::Config::BitrateConfig()}), | 1034 : call({false, Call::Config::BitrateConfig()}), |
| 1035 video({false, 640, 480, 30, 50, 800, 800, false, "VP8", 1, -1, 0, false, | 1035 video({false, 640, 480, 30, 50, 800, 800, false, "VP8", 1, -1, 0, false, |
| 1036 false, "", ""}), | 1036 false, "", ""}), |
| 1037 audio({false, false}), | 1037 audio({false, false, false}), |
| 1038 screenshare({false, 10, 0}), | 1038 screenshare({false, 10, 0}), |
| 1039 analyzer({"", 0.0, 0.0, 0, "", ""}), | 1039 analyzer({"", 0.0, 0.0, 0, "", ""}), |
| 1040 pipe(), | 1040 pipe(), |
| 1041 logs(false), | 1041 logs(false), |
| 1042 ss({std::vector<VideoStream>(), 0, 0, -1, std::vector<SpatialLayer>()}), | 1042 ss({std::vector<VideoStream>(), 0, 0, -1, std::vector<SpatialLayer>()}), |
| 1043 num_thumbnails(0) {} | 1043 num_thumbnails(0) {} |
| 1044 | 1044 |
| 1045 VideoQualityTest::Params::~Params() = default; | 1045 VideoQualityTest::Params::~Params() = default; |
| 1046 | 1046 |
| 1047 void VideoQualityTest::TestBody() {} | 1047 void VideoQualityTest::TestBody() {} |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1703 audio_send_config_.rtp.extensions.clear(); | 1703 audio_send_config_.rtp.extensions.clear(); |
| 1704 if (params_.call.send_side_bwe) { | 1704 if (params_.call.send_side_bwe) { |
| 1705 audio_send_config_.rtp.extensions.push_back( | 1705 audio_send_config_.rtp.extensions.push_back( |
| 1706 webrtc::RtpExtension(webrtc::RtpExtension::kTransportSequenceNumberUri, | 1706 webrtc::RtpExtension(webrtc::RtpExtension::kTransportSequenceNumberUri, |
| 1707 test::kTransportSequenceNumberExtensionId)); | 1707 test::kTransportSequenceNumberExtensionId)); |
| 1708 audio_send_config_.min_bitrate_bps = kOpusMinBitrateBps; | 1708 audio_send_config_.min_bitrate_bps = kOpusMinBitrateBps; |
| 1709 audio_send_config_.max_bitrate_bps = kOpusBitrateFbBps; | 1709 audio_send_config_.max_bitrate_bps = kOpusBitrateFbBps; |
| 1710 } | 1710 } |
| 1711 audio_send_config_.send_codec_spec.codec_inst = | 1711 audio_send_config_.send_codec_spec.codec_inst = |
| 1712 CodecInst{120, "OPUS", 48000, 960, 2, 64000}; | 1712 CodecInst{120, "OPUS", 48000, 960, 2, 64000}; |
| 1713 | 1713 audio_send_config_.send_codec_spec.enable_opus_dtx = params_.audio.dtx; |
| 1714 audio_send_stream_ = call->CreateAudioSendStream(audio_send_config_); | 1714 audio_send_stream_ = call->CreateAudioSendStream(audio_send_config_); |
| 1715 | 1715 |
| 1716 AudioReceiveStream::Config audio_config; | 1716 AudioReceiveStream::Config audio_config; |
| 1717 audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc; | 1717 audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc; |
| 1718 audio_config.rtcp_send_transport = transport; | 1718 audio_config.rtcp_send_transport = transport; |
| 1719 audio_config.voe_channel_id = receive_channel_id; | 1719 audio_config.voe_channel_id = receive_channel_id; |
| 1720 audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc; | 1720 audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc; |
| 1721 audio_config.rtp.transport_cc = params_.call.send_side_bwe; | 1721 audio_config.rtp.transport_cc = params_.call.send_side_bwe; |
| 1722 audio_config.rtp.extensions = audio_send_config_.rtp.extensions; | 1722 audio_config.rtp.extensions = audio_send_config_.rtp.extensions; |
| 1723 audio_config.decoder_factory = decoder_factory_; | 1723 audio_config.decoder_factory = decoder_factory_; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 if (!params_.video.encoded_frame_base_path.empty()) { | 1881 if (!params_.video.encoded_frame_base_path.empty()) { |
| 1882 std::ostringstream str; | 1882 std::ostringstream str; |
| 1883 str << receive_logs_++; | 1883 str << receive_logs_++; |
| 1884 std::string path = | 1884 std::string path = |
| 1885 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 1885 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
| 1886 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 1886 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
| 1887 10000000); | 1887 10000000); |
| 1888 } | 1888 } |
| 1889 } | 1889 } |
| 1890 } // namespace webrtc | 1890 } // namespace webrtc |
| OLD | NEW |