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 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 for (const LoggedRtcpPacket& rtcp_packet : kv.second) | 1123 for (const LoggedRtcpPacket& rtcp_packet : kv.second) |
1124 incoming_rtcp.insert( | 1124 incoming_rtcp.insert( |
1125 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); | 1125 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); |
1126 } | 1126 } |
1127 } | 1127 } |
1128 | 1128 |
1129 SimulatedClock clock(0); | 1129 SimulatedClock clock(0); |
1130 BitrateObserver observer; | 1130 BitrateObserver observer; |
1131 RtcEventLogNullImpl null_event_log; | 1131 RtcEventLogNullImpl null_event_log; |
1132 PacketRouter packet_router; | 1132 PacketRouter packet_router; |
1133 CongestionController cc(&clock, &observer, &observer, &null_event_log, | 1133 PacedSender pacer(&clock, &packet_router, &null_event_log); |
1134 &packet_router); | 1134 SendSideCongestionController cc(&clock, &observer, &null_event_log, &pacer); |
1135 // TODO(holmer): Log the call config and use that here instead. | 1135 // TODO(holmer): Log the call config and use that here instead. |
1136 static const uint32_t kDefaultStartBitrateBps = 300000; | 1136 static const uint32_t kDefaultStartBitrateBps = 300000; |
1137 cc.SetBweBitrates(0, kDefaultStartBitrateBps, -1); | 1137 cc.SetBweBitrates(0, kDefaultStartBitrateBps, -1); |
1138 | 1138 |
1139 TimeSeries time_series("Delay-based estimate", LINE_DOT_GRAPH); | 1139 TimeSeries time_series("Delay-based estimate", LINE_DOT_GRAPH); |
1140 TimeSeries acked_time_series("Acked bitrate", LINE_DOT_GRAPH); | 1140 TimeSeries acked_time_series("Acked bitrate", LINE_DOT_GRAPH); |
1141 | 1141 |
1142 auto rtp_iterator = outgoing_rtp.begin(); | 1142 auto rtp_iterator = outgoing_rtp.begin(); |
1143 auto rtcp_iterator = incoming_rtcp.begin(); | 1143 auto rtcp_iterator = incoming_rtcp.begin(); |
1144 | 1144 |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 plot->AppendTimeSeries(std::move(series.second)); | 1723 plot->AppendTimeSeries(std::move(series.second)); |
1724 } | 1724 } |
1725 | 1725 |
1726 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1726 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1727 plot->SetYAxis(min_y_axis, max_y_axis, "Relative delay (ms)", kBottomMargin, | 1727 plot->SetYAxis(min_y_axis, max_y_axis, "Relative delay (ms)", kBottomMargin, |
1728 kTopMargin); | 1728 kTopMargin); |
1729 plot->SetTitle("NetEq timing"); | 1729 plot->SetTitle("NetEq timing"); |
1730 } | 1730 } |
1731 } // namespace plotting | 1731 } // namespace plotting |
1732 } // namespace webrtc | 1732 } // namespace webrtc |
OLD | NEW |