OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 | 10 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) { | 237 void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) { |
238 video_receive_configs_.clear(); | 238 video_receive_configs_.clear(); |
239 allocated_decoders_.clear(); | 239 allocated_decoders_.clear(); |
240 if (num_video_streams_ > 0) { | 240 if (num_video_streams_ > 0) { |
241 RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty()); | 241 RTC_DCHECK(!video_send_config_.rtp.ssrcs.empty()); |
242 VideoReceiveStream::Config video_config(rtcp_send_transport); | 242 VideoReceiveStream::Config video_config(rtcp_send_transport); |
243 video_config.rtp.remb = false; | 243 video_config.rtp.remb = false; |
244 video_config.rtp.transport_cc = true; | 244 video_config.rtp.transport_cc = true; |
245 video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc; | 245 video_config.rtp.local_ssrc = kReceiverLocalVideoSsrc; |
| 246 #if 0 |
246 for (const RtpExtension& extension : video_send_config_.rtp.extensions) | 247 for (const RtpExtension& extension : video_send_config_.rtp.extensions) |
247 video_config.rtp.extensions.push_back(extension); | 248 video_config.rtp.extensions.push_back(extension); |
| 249 #endif |
248 video_config.renderer = &fake_renderer_; | 250 video_config.renderer = &fake_renderer_; |
249 for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) { | 251 for (size_t i = 0; i < video_send_config_.rtp.ssrcs.size(); ++i) { |
250 VideoReceiveStream::Decoder decoder = | 252 VideoReceiveStream::Decoder decoder = |
251 test::CreateMatchingDecoder(video_send_config_.encoder_settings); | 253 test::CreateMatchingDecoder(video_send_config_.encoder_settings); |
252 allocated_decoders_.push_back( | 254 allocated_decoders_.push_back( |
253 std::unique_ptr<VideoDecoder>(decoder.decoder)); | 255 std::unique_ptr<VideoDecoder>(decoder.decoder)); |
254 video_config.decoders.clear(); | 256 video_config.decoders.clear(); |
255 video_config.decoders.push_back(decoder); | 257 video_config.decoders.push_back(decoder); |
256 video_config.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[i]; | 258 video_config.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[i]; |
257 video_receive_configs_.push_back(video_config.Copy()); | 259 video_receive_configs_.push_back(video_config.Copy()); |
(...skipping 16 matching lines...) Expand all Loading... |
274 } | 276 } |
275 | 277 |
276 // TODO(brandtr): Update this when we support multistream protection. | 278 // TODO(brandtr): Update this when we support multistream protection. |
277 RTC_DCHECK(num_flexfec_streams_ <= 1); | 279 RTC_DCHECK(num_flexfec_streams_ <= 1); |
278 if (num_flexfec_streams_ == 1) { | 280 if (num_flexfec_streams_ == 1) { |
279 FlexfecReceiveStream::Config config(rtcp_send_transport); | 281 FlexfecReceiveStream::Config config(rtcp_send_transport); |
280 config.payload_type = kFlexfecPayloadType; | 282 config.payload_type = kFlexfecPayloadType; |
281 config.remote_ssrc = kFlexfecSendSsrc; | 283 config.remote_ssrc = kFlexfecSendSsrc; |
282 config.protected_media_ssrcs = {kVideoSendSsrcs[0]}; | 284 config.protected_media_ssrcs = {kVideoSendSsrcs[0]}; |
283 config.local_ssrc = kReceiverLocalVideoSsrc; | 285 config.local_ssrc = kReceiverLocalVideoSsrc; |
| 286 #if 0 |
284 for (const RtpExtension& extension : video_send_config_.rtp.extensions) | 287 for (const RtpExtension& extension : video_send_config_.rtp.extensions) |
285 config.rtp_header_extensions.push_back(extension); | 288 config.rtp_header_extensions.push_back(extension); |
| 289 #endif |
286 flexfec_receive_configs_.push_back(config); | 290 flexfec_receive_configs_.push_back(config); |
287 } | 291 } |
288 } | 292 } |
289 | 293 |
290 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, | 294 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, |
291 float speed, | 295 float speed, |
292 int framerate, | 296 int framerate, |
293 int width, | 297 int width, |
294 int height) { | 298 int height) { |
295 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( | 299 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 609 |
606 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 610 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
607 } | 611 } |
608 | 612 |
609 bool EndToEndTest::ShouldCreateReceivers() const { | 613 bool EndToEndTest::ShouldCreateReceivers() const { |
610 return true; | 614 return true; |
611 } | 615 } |
612 | 616 |
613 } // namespace test | 617 } // namespace test |
614 } // namespace webrtc | 618 } // namespace webrtc |
OLD | NEW |