OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 RTC_CHECK(sender_config.encoder().has_name()); | 410 RTC_CHECK(sender_config.encoder().has_name()); |
411 RTC_CHECK(sender_config.encoder().has_payload_type()); | 411 RTC_CHECK(sender_config.encoder().has_payload_type()); |
412 config->codecs.emplace_back( | 412 config->codecs.emplace_back( |
413 sender_config.encoder().name(), sender_config.encoder().payload_type(), | 413 sender_config.encoder().name(), sender_config.encoder().payload_type(), |
414 sender_config.has_rtx_payload_type() ? sender_config.rtx_payload_type() | 414 sender_config.has_rtx_payload_type() ? sender_config.rtx_payload_type() |
415 : 0); | 415 : 0); |
416 } | 416 } |
417 | 417 |
418 void ParsedRtcEventLog::GetAudioReceiveConfig( | 418 void ParsedRtcEventLog::GetAudioReceiveConfig( |
419 size_t index, | 419 size_t index, |
420 AudioReceiveStream::Config* config) const { | 420 rtclog::StreamConfig* config) const { |
421 RTC_CHECK_LT(index, GetNumberOfEvents()); | 421 RTC_CHECK_LT(index, GetNumberOfEvents()); |
422 const rtclog::Event& event = events_[index]; | 422 const rtclog::Event& event = events_[index]; |
423 RTC_CHECK(config != nullptr); | 423 RTC_CHECK(config != nullptr); |
424 RTC_CHECK(event.has_type()); | 424 RTC_CHECK(event.has_type()); |
425 RTC_CHECK_EQ(event.type(), rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT); | 425 RTC_CHECK_EQ(event.type(), rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT); |
426 RTC_CHECK(event.has_audio_receiver_config()); | 426 RTC_CHECK(event.has_audio_receiver_config()); |
427 const rtclog::AudioReceiveConfig& receiver_config = | 427 const rtclog::AudioReceiveConfig& receiver_config = |
428 event.audio_receiver_config(); | 428 event.audio_receiver_config(); |
429 // Get SSRCs. | 429 // Get SSRCs. |
430 RTC_CHECK(receiver_config.has_remote_ssrc()); | 430 RTC_CHECK(receiver_config.has_remote_ssrc()); |
431 config->rtp.remote_ssrc = receiver_config.remote_ssrc(); | 431 config->remote_ssrc = receiver_config.remote_ssrc(); |
432 RTC_CHECK(receiver_config.has_local_ssrc()); | 432 RTC_CHECK(receiver_config.has_local_ssrc()); |
433 config->rtp.local_ssrc = receiver_config.local_ssrc(); | 433 config->local_ssrc = receiver_config.local_ssrc(); |
434 // Get header extensions. | 434 // Get header extensions. |
435 GetHeaderExtensions(&config->rtp.extensions, | 435 GetHeaderExtensions(&config->rtp_extensions, |
436 receiver_config.header_extensions()); | 436 receiver_config.header_extensions()); |
437 } | 437 } |
438 | 438 |
439 void ParsedRtcEventLog::GetAudioSendConfig( | 439 void ParsedRtcEventLog::GetAudioSendConfig( |
440 size_t index, | 440 size_t index, |
441 AudioSendStream::Config* config) const { | 441 AudioSendStream::Config* config) const { |
442 RTC_CHECK_LT(index, GetNumberOfEvents()); | 442 RTC_CHECK_LT(index, GetNumberOfEvents()); |
443 const rtclog::Event& event = events_[index]; | 443 const rtclog::Event& event = events_[index]; |
444 RTC_CHECK(config != nullptr); | 444 RTC_CHECK(config != nullptr); |
445 RTC_CHECK(event.has_type()); | 445 RTC_CHECK(event.has_type()); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 rtc::Optional<ProbeFailureReason>(kInvalidSendReceiveRatio); | 583 rtc::Optional<ProbeFailureReason>(kInvalidSendReceiveRatio); |
584 } else if (pr_event.result() == rtclog::BweProbeResult::TIMEOUT) { | 584 } else if (pr_event.result() == rtclog::BweProbeResult::TIMEOUT) { |
585 res.failure_reason = rtc::Optional<ProbeFailureReason>(kTimeout); | 585 res.failure_reason = rtc::Optional<ProbeFailureReason>(kTimeout); |
586 } else { | 586 } else { |
587 RTC_NOTREACHED(); | 587 RTC_NOTREACHED(); |
588 } | 588 } |
589 | 589 |
590 return res; | 590 return res; |
591 } | 591 } |
592 } // namespace webrtc | 592 } // namespace webrtc |
OLD | NEW |