| 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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 audio_send_config_.voe_channel_id = voe.send_channel_id; | 1325 audio_send_config_.voe_channel_id = voe.send_channel_id; |
| 1326 audio_send_config_.rtp.ssrc = kAudioSendSsrc; | 1326 audio_send_config_.rtp.ssrc = kAudioSendSsrc; |
| 1327 | 1327 |
| 1328 // Add extension to enable audio send side BWE, and allow audio bit rate | 1328 // Add extension to enable audio send side BWE, and allow audio bit rate |
| 1329 // adaptation. | 1329 // adaptation. |
| 1330 audio_send_config_.rtp.extensions.clear(); | 1330 audio_send_config_.rtp.extensions.clear(); |
| 1331 if (params_.call.send_side_bwe) { | 1331 if (params_.call.send_side_bwe) { |
| 1332 audio_send_config_.rtp.extensions.push_back(webrtc::RtpExtension( | 1332 audio_send_config_.rtp.extensions.push_back(webrtc::RtpExtension( |
| 1333 webrtc::RtpExtension::kTransportSequenceNumberUri, | 1333 webrtc::RtpExtension::kTransportSequenceNumberUri, |
| 1334 test::kTransportSequenceNumberExtensionId)); | 1334 test::kTransportSequenceNumberExtensionId)); |
| 1335 audio_send_config_.min_bitrate_kbps = kOpusMinBitrate / 1000; | 1335 audio_send_config_.min_bitrate_bps = kOpusMinBitrate; |
| 1336 audio_send_config_.max_bitrate_kbps = kOpusBitrateFb / 1000; | 1336 audio_send_config_.max_bitrate_bps = kOpusBitrateFb; |
| 1337 } | 1337 } |
| 1338 audio_send_config_.send_codec_spec.codec_inst = | 1338 audio_send_config_.send_codec_spec.codec_inst = |
| 1339 CodecInst{120, "OPUS", 48000, 960, 2, 64000}; | 1339 CodecInst{120, "OPUS", 48000, 960, 2, 64000}; |
| 1340 | 1340 |
| 1341 audio_send_stream_ = call->CreateAudioSendStream(audio_send_config_); | 1341 audio_send_stream_ = call->CreateAudioSendStream(audio_send_config_); |
| 1342 | 1342 |
| 1343 AudioReceiveStream::Config audio_config; | 1343 AudioReceiveStream::Config audio_config; |
| 1344 audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc; | 1344 audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc; |
| 1345 audio_config.rtcp_send_transport = &transport; | 1345 audio_config.rtcp_send_transport = &transport; |
| 1346 audio_config.voe_channel_id = voe.receive_channel_id; | 1346 audio_config.voe_channel_id = voe.receive_channel_id; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 std::ostringstream str; | 1423 std::ostringstream str; |
| 1424 str << receive_logs_++; | 1424 str << receive_logs_++; |
| 1425 std::string path = | 1425 std::string path = |
| 1426 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 1426 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
| 1427 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 1427 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
| 1428 10000000); | 1428 10000000); |
| 1429 } | 1429 } |
| 1430 } | 1430 } |
| 1431 | 1431 |
| 1432 } // namespace webrtc | 1432 } // namespace webrtc |
| OLD | NEW |