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 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 video_send_config_.rtp.flexfec.protected_media_ssrcs = { | 1112 video_send_config_.rtp.flexfec.protected_media_ssrcs = { |
1113 kVideoSendSsrcs[params_.ss.selected_stream]}; | 1113 kVideoSendSsrcs[params_.ss.selected_stream]}; |
1114 | 1114 |
1115 FlexfecReceiveStream::Config flexfec_receive_config; | 1115 FlexfecReceiveStream::Config flexfec_receive_config; |
1116 flexfec_receive_config.payload_type = | 1116 flexfec_receive_config.payload_type = |
1117 video_send_config_.rtp.flexfec.flexfec_payload_type; | 1117 video_send_config_.rtp.flexfec.flexfec_payload_type; |
1118 flexfec_receive_config.remote_ssrc = | 1118 flexfec_receive_config.remote_ssrc = |
1119 video_send_config_.rtp.flexfec.flexfec_ssrc; | 1119 video_send_config_.rtp.flexfec.flexfec_ssrc; |
1120 flexfec_receive_config.protected_media_ssrcs = | 1120 flexfec_receive_config.protected_media_ssrcs = |
1121 video_send_config_.rtp.flexfec.protected_media_ssrcs; | 1121 video_send_config_.rtp.flexfec.protected_media_ssrcs; |
| 1122 flexfec_receive_config.transport_cc = params_.call.send_side_bwe; |
| 1123 if (params_.call.send_side_bwe) { |
| 1124 flexfec_receive_config.rtp_header_extensions.push_back( |
| 1125 RtpExtension(RtpExtension::kTransportSequenceNumberUri, |
| 1126 test::kTransportSequenceNumberExtensionId)); |
| 1127 } else { |
| 1128 flexfec_receive_config.rtp_header_extensions.push_back(RtpExtension( |
| 1129 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId)); |
| 1130 } |
1122 flexfec_receive_configs_.push_back(flexfec_receive_config); | 1131 flexfec_receive_configs_.push_back(flexfec_receive_config); |
1123 } | 1132 } |
1124 | 1133 |
1125 if (params_.video.ulpfec) { | 1134 if (params_.video.ulpfec) { |
1126 video_send_config_.rtp.ulpfec.red_payload_type = kRedPayloadType; | 1135 video_send_config_.rtp.ulpfec.red_payload_type = kRedPayloadType; |
1127 video_send_config_.rtp.ulpfec.ulpfec_payload_type = kUlpfecPayloadType; | 1136 video_send_config_.rtp.ulpfec.ulpfec_payload_type = kUlpfecPayloadType; |
1128 video_send_config_.rtp.ulpfec.red_rtx_payload_type = kRtxRedPayloadType; | 1137 video_send_config_.rtp.ulpfec.red_rtx_payload_type = kRtxRedPayloadType; |
1129 | 1138 |
1130 video_receive_configs_[params_.ss.selected_stream] | 1139 video_receive_configs_[params_.ss.selected_stream] |
1131 .rtp.ulpfec.red_payload_type = | 1140 .rtp.ulpfec.red_payload_type = |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1525 std::ostringstream str; | 1534 std::ostringstream str; |
1526 str << receive_logs_++; | 1535 str << receive_logs_++; |
1527 std::string path = | 1536 std::string path = |
1528 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 1537 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
1529 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 1538 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
1530 10000000); | 1539 10000000); |
1531 } | 1540 } |
1532 } | 1541 } |
1533 | 1542 |
1534 } // namespace webrtc | 1543 } // namespace webrtc |
OLD | NEW |