| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 } | 428 } |
| 429 } | 429 } |
| 430 break; | 430 break; |
| 431 } | 431 } |
| 432 case ParsedRtcEventLog::LOG_START: { | 432 case ParsedRtcEventLog::LOG_START: { |
| 433 break; | 433 break; |
| 434 } | 434 } |
| 435 case ParsedRtcEventLog::LOG_END: { | 435 case ParsedRtcEventLog::LOG_END: { |
| 436 break; | 436 break; |
| 437 } | 437 } |
| 438 case ParsedRtcEventLog::BWE_PACKET_LOSS_EVENT: { | 438 case ParsedRtcEventLog::AUDIO_PLAYOUT_EVENT: { |
| 439 BwePacketLossEvent bwe_update; | 439 break; |
| 440 } |
| 441 case ParsedRtcEventLog::LOSS_BASED_BWE_UPDATE: { |
| 442 LossBasedBweUpdate bwe_update; |
| 440 bwe_update.timestamp = parsed_log_.GetTimestamp(i); | 443 bwe_update.timestamp = parsed_log_.GetTimestamp(i); |
| 441 parsed_log_.GetBwePacketLossEvent(i, &bwe_update.new_bitrate, | 444 parsed_log_.GetLossBasedBweUpdate(i, &bwe_update.new_bitrate, |
| 442 &bwe_update.fraction_loss, | 445 &bwe_update.fraction_loss, |
| 443 &bwe_update.expected_packets); | 446 &bwe_update.expected_packets); |
| 444 bwe_loss_updates_.push_back(bwe_update); | 447 bwe_loss_updates_.push_back(bwe_update); |
| 445 break; | 448 break; |
| 446 } | 449 } |
| 450 case ParsedRtcEventLog::DELAY_BASED_BWE_UPDATE: { |
| 451 break; |
| 452 } |
| 447 case ParsedRtcEventLog::AUDIO_NETWORK_ADAPTATION_EVENT: { | 453 case ParsedRtcEventLog::AUDIO_NETWORK_ADAPTATION_EVENT: { |
| 448 break; | 454 break; |
| 449 } | 455 } |
| 450 case ParsedRtcEventLog::BWE_PACKET_DELAY_EVENT: { | |
| 451 break; | |
| 452 } | |
| 453 case ParsedRtcEventLog::AUDIO_PLAYOUT_EVENT: { | |
| 454 break; | |
| 455 } | |
| 456 case ParsedRtcEventLog::UNKNOWN_EVENT: { | 456 case ParsedRtcEventLog::UNKNOWN_EVENT: { |
| 457 break; | 457 break; |
| 458 } | 458 } |
| 459 } | 459 } |
| 460 } | 460 } |
| 461 | 461 |
| 462 if (last_timestamp < first_timestamp) { | 462 if (last_timestamp < first_timestamp) { |
| 463 // No useful events in the log. | 463 // No useful events in the log. |
| 464 first_timestamp = last_timestamp = 0; | 464 first_timestamp = last_timestamp = 0; |
| 465 } | 465 } |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 for (const auto& kv : rtcp_packets_) { | 1126 for (const auto& kv : rtcp_packets_) { |
| 1127 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { | 1127 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { |
| 1128 for (const LoggedRtcpPacket& rtcp_packet : kv.second) | 1128 for (const LoggedRtcpPacket& rtcp_packet : kv.second) |
| 1129 incoming_rtcp.insert( | 1129 incoming_rtcp.insert( |
| 1130 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); | 1130 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); |
| 1131 } | 1131 } |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 SimulatedClock clock(0); | 1134 SimulatedClock clock(0); |
| 1135 NullBitrateController null_controller; | 1135 NullBitrateController null_controller; |
| 1136 TransportFeedbackAdapter feedback_adapter(&clock, &null_controller); | 1136 TransportFeedbackAdapter feedback_adapter(nullptr, &clock, &null_controller); |
| 1137 feedback_adapter.InitBwe(); | 1137 feedback_adapter.InitBwe(); |
| 1138 | 1138 |
| 1139 TimeSeries time_series; | 1139 TimeSeries time_series; |
| 1140 time_series.label = "Network Delay Change"; | 1140 time_series.label = "Network Delay Change"; |
| 1141 time_series.style = LINE_DOT_GRAPH; | 1141 time_series.style = LINE_DOT_GRAPH; |
| 1142 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); | 1142 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); |
| 1143 | 1143 |
| 1144 auto rtp_iterator = outgoing_rtp.begin(); | 1144 auto rtp_iterator = outgoing_rtp.begin(); |
| 1145 auto rtcp_iterator = incoming_rtcp.begin(); | 1145 auto rtcp_iterator = incoming_rtcp.begin(); |
| 1146 | 1146 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 } | 1269 } |
| 1270 } | 1270 } |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1273 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
| 1274 plot->SetSuggestedYAxis(0, 1, "Timestamp (90khz)", kBottomMargin, kTopMargin); | 1274 plot->SetSuggestedYAxis(0, 1, "Timestamp (90khz)", kBottomMargin, kTopMargin); |
| 1275 plot->SetTitle("Timestamps"); | 1275 plot->SetTitle("Timestamps"); |
| 1276 } | 1276 } |
| 1277 } // namespace plotting | 1277 } // namespace plotting |
| 1278 } // namespace webrtc | 1278 } // namespace webrtc |
| OLD | NEW |