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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 | 941 |
942 for (const auto& kv : rtcp_packets_) { | 942 for (const auto& kv : rtcp_packets_) { |
943 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { | 943 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { |
944 for (const LoggedRtcpPacket& rtcp_packet : kv.second) | 944 for (const LoggedRtcpPacket& rtcp_packet : kv.second) |
945 incoming_rtcp.insert( | 945 incoming_rtcp.insert( |
946 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); | 946 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); |
947 } | 947 } |
948 } | 948 } |
949 | 949 |
950 SimulatedClock clock(0); | 950 SimulatedClock clock(0); |
951 TransportFeedbackAdapter feedback_adapter(nullptr, &clock); | 951 TransportFeedbackAdapter feedback_adapter(&clock); |
952 | 952 |
953 TimeSeries time_series; | 953 TimeSeries time_series; |
954 time_series.label = "Network Delay Change"; | 954 time_series.label = "Network Delay Change"; |
955 time_series.style = LINE_DOT_GRAPH; | 955 time_series.style = LINE_DOT_GRAPH; |
956 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); | 956 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); |
957 | 957 |
958 auto rtp_iterator = outgoing_rtp.begin(); | 958 auto rtp_iterator = outgoing_rtp.begin(); |
959 auto rtcp_iterator = incoming_rtcp.begin(); | 959 auto rtcp_iterator = incoming_rtcp.begin(); |
960 | 960 |
961 auto NextRtpTime = [&]() { | 961 auto NextRtpTime = [&]() { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 point.y -= estimated_base_delay_ms; | 1012 point.y -= estimated_base_delay_ms; |
1013 // Add the data set to the plot. | 1013 // Add the data set to the plot. |
1014 plot->series_list_.push_back(std::move(time_series)); | 1014 plot->series_list_.push_back(std::move(time_series)); |
1015 | 1015 |
1016 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1016 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1017 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 1017 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
1018 plot->SetTitle("Network Delay Change."); | 1018 plot->SetTitle("Network Delay Change."); |
1019 } | 1019 } |
1020 } // namespace plotting | 1020 } // namespace plotting |
1021 } // namespace webrtc | 1021 } // namespace webrtc |
OLD | NEW |