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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 | 875 |
876 for (const auto& kv : rtcp_packets_) { | 876 for (const auto& kv : rtcp_packets_) { |
877 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { | 877 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { |
878 for (const LoggedRtcpPacket& rtcp_packet : kv.second) | 878 for (const LoggedRtcpPacket& rtcp_packet : kv.second) |
879 incoming_rtcp.insert( | 879 incoming_rtcp.insert( |
880 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); | 880 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); |
881 } | 881 } |
882 } | 882 } |
883 | 883 |
884 SimulatedClock clock(0); | 884 SimulatedClock clock(0); |
885 TransportFeedbackAdapter feedback_adapter(nullptr, &clock); | 885 TransportFeedbackAdapter feedback_adapter(&clock); |
886 | 886 |
887 TimeSeries time_series; | 887 TimeSeries time_series; |
888 time_series.label = "Network Delay Change"; | 888 time_series.label = "Network Delay Change"; |
889 time_series.style = LINE_DOT_GRAPH; | 889 time_series.style = LINE_DOT_GRAPH; |
890 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); | 890 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); |
891 | 891 |
892 auto rtp_iterator = outgoing_rtp.begin(); | 892 auto rtp_iterator = outgoing_rtp.begin(); |
893 auto rtcp_iterator = incoming_rtcp.begin(); | 893 auto rtcp_iterator = incoming_rtcp.begin(); |
894 | 894 |
895 auto NextRtpTime = [&]() { | 895 auto NextRtpTime = [&]() { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 point.y -= estimated_base_delay_ms; | 945 point.y -= estimated_base_delay_ms; |
946 // Add the data set to the plot. | 946 // Add the data set to the plot. |
947 plot->series_list_.push_back(std::move(time_series)); | 947 plot->series_list_.push_back(std::move(time_series)); |
948 | 948 |
949 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 949 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
950 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 950 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
951 plot->SetTitle("Network Delay Change."); | 951 plot->SetTitle("Network Delay Change."); |
952 } | 952 } |
953 } // namespace plotting | 953 } // namespace plotting |
954 } // namespace webrtc | 954 } // namespace webrtc |
OLD | NEW |