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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 1001 |
1002 for (const auto& kv : rtcp_packets_) { | 1002 for (const auto& kv : rtcp_packets_) { |
1003 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { | 1003 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { |
1004 for (const LoggedRtcpPacket& rtcp_packet : kv.second) | 1004 for (const LoggedRtcpPacket& rtcp_packet : kv.second) |
1005 incoming_rtcp.insert( | 1005 incoming_rtcp.insert( |
1006 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); | 1006 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); |
1007 } | 1007 } |
1008 } | 1008 } |
1009 | 1009 |
1010 SimulatedClock clock(0); | 1010 SimulatedClock clock(0); |
1011 TransportFeedbackAdapter feedback_adapter(nullptr, &clock); | 1011 TransportFeedbackAdapter feedback_adapter(&clock); |
1012 | 1012 |
1013 TimeSeries time_series; | 1013 TimeSeries time_series; |
1014 time_series.label = "Network Delay Change"; | 1014 time_series.label = "Network Delay Change"; |
1015 time_series.style = LINE_DOT_GRAPH; | 1015 time_series.style = LINE_DOT_GRAPH; |
1016 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); | 1016 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); |
1017 | 1017 |
1018 auto rtp_iterator = outgoing_rtp.begin(); | 1018 auto rtp_iterator = outgoing_rtp.begin(); |
1019 auto rtcp_iterator = incoming_rtcp.begin(); | 1019 auto rtcp_iterator = incoming_rtcp.begin(); |
1020 | 1020 |
1021 auto NextRtpTime = [&]() { | 1021 auto NextRtpTime = [&]() { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 point.y -= estimated_base_delay_ms; | 1072 point.y -= estimated_base_delay_ms; |
1073 // Add the data set to the plot. | 1073 // Add the data set to the plot. |
1074 plot->series_list_.push_back(std::move(time_series)); | 1074 plot->series_list_.push_back(std::move(time_series)); |
1075 | 1075 |
1076 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1076 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1077 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 1077 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
1078 plot->SetTitle("Network Delay Change."); | 1078 plot->SetTitle("Network Delay Change."); |
1079 } | 1079 } |
1080 } // namespace plotting | 1080 } // namespace plotting |
1081 } // namespace webrtc | 1081 } // namespace webrtc |
OLD | NEW |