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 |
11 #include "webrtc/rtc_tools/event_log_visualizer/analyzer.h" | 11 #include "webrtc/rtc_tools/event_log_visualizer/analyzer.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <limits> | 14 #include <limits> |
15 #include <map> | 15 #include <map> |
16 #include <sstream> | 16 #include <sstream> |
17 #include <string> | 17 #include <string> |
18 #include <utility> | 18 #include <utility> |
19 | 19 |
20 #include "webrtc/base/checks.h" | |
21 #include "webrtc/base/format_macros.h" | |
22 #include "webrtc/base/logging.h" | |
23 #include "webrtc/base/ptr_util.h" | |
24 #include "webrtc/base/rate_statistics.h" | |
25 #include "webrtc/call/audio_receive_stream.h" | 20 #include "webrtc/call/audio_receive_stream.h" |
26 #include "webrtc/call/audio_send_stream.h" | 21 #include "webrtc/call/audio_send_stream.h" |
27 #include "webrtc/call/call.h" | 22 #include "webrtc/call/call.h" |
28 #include "webrtc/common_types.h" | 23 #include "webrtc/common_types.h" |
29 #include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h" | 24 #include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h" |
30 #include "webrtc/modules/audio_coding/neteq/tools/fake_decode_from_file.h" | 25 #include "webrtc/modules/audio_coding/neteq/tools/fake_decode_from_file.h" |
31 #include "webrtc/modules/audio_coding/neteq/tools/neteq_delay_analyzer.h" | 26 #include "webrtc/modules/audio_coding/neteq/tools/neteq_delay_analyzer.h" |
32 #include "webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.h" | 27 #include "webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.h" |
33 #include "webrtc/modules/audio_coding/neteq/tools/neteq_test.h" | 28 #include "webrtc/modules/audio_coding/neteq/tools/neteq_test.h" |
34 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" | 29 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" |
35 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | 30 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
36 #include "webrtc/modules/include/module_common_types.h" | 31 #include "webrtc/modules/include/module_common_types.h" |
37 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 32 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
38 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 33 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
39 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" | 34 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" |
40 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" | 35 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" |
41 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/remb.h" | 36 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/remb.h" |
42 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.h" | 37 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.h" |
43 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 38 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
44 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 39 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
45 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 40 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
| 41 #include "webrtc/rtc_base/checks.h" |
| 42 #include "webrtc/rtc_base/format_macros.h" |
| 43 #include "webrtc/rtc_base/logging.h" |
| 44 #include "webrtc/rtc_base/ptr_util.h" |
| 45 #include "webrtc/rtc_base/rate_statistics.h" |
46 #include "webrtc/video_receive_stream.h" | 46 #include "webrtc/video_receive_stream.h" |
47 #include "webrtc/video_send_stream.h" | 47 #include "webrtc/video_send_stream.h" |
48 | 48 |
49 namespace webrtc { | 49 namespace webrtc { |
50 namespace plotting { | 50 namespace plotting { |
51 | 51 |
52 namespace { | 52 namespace { |
53 | 53 |
54 void SortPacketFeedbackVector(std::vector<PacketFeedback>* vec) { | 54 void SortPacketFeedbackVector(std::vector<PacketFeedback>* vec) { |
55 auto pred = [](const PacketFeedback& packet_feedback) { | 55 auto pred = [](const PacketFeedback& packet_feedback) { |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 plot->AppendTimeSeries(std::move(series.second)); | 1669 plot->AppendTimeSeries(std::move(series.second)); |
1670 } | 1670 } |
1671 | 1671 |
1672 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1672 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1673 plot->SetYAxis(min_y_axis, max_y_axis, "Relative delay (ms)", kBottomMargin, | 1673 plot->SetYAxis(min_y_axis, max_y_axis, "Relative delay (ms)", kBottomMargin, |
1674 kTopMargin); | 1674 kTopMargin); |
1675 plot->SetTitle("NetEq timing"); | 1675 plot->SetTitle("NetEq timing"); |
1676 } | 1676 } |
1677 } // namespace plotting | 1677 } // namespace plotting |
1678 } // namespace webrtc | 1678 } // namespace webrtc |
OLD | NEW |