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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void CreateFractionLossGraph(Plot* plot); | 79 void CreateFractionLossGraph(Plot* plot); |
80 | 80 |
81 void CreateTotalBitrateGraph(PacketDirection desired_direction, Plot* plot); | 81 void CreateTotalBitrateGraph(PacketDirection desired_direction, Plot* plot); |
82 | 82 |
83 void CreateStreamBitrateGraph(PacketDirection desired_direction, Plot* plot); | 83 void CreateStreamBitrateGraph(PacketDirection desired_direction, Plot* plot); |
84 | 84 |
85 void CreateBweSimulationGraph(Plot* plot); | 85 void CreateBweSimulationGraph(Plot* plot); |
86 | 86 |
87 void CreateNetworkDelayFeedbackGraph(Plot* plot); | 87 void CreateNetworkDelayFeedbackGraph(Plot* plot); |
88 | 88 |
| 89 // Returns a vector of capture and arrival timestamps for the video frames |
| 90 // of the stream with the most number of frames. |
| 91 std::vector<std::pair<int64_t, int64_t>> GetFrameTimestamps() const; |
| 92 |
89 private: | 93 private: |
90 class StreamId { | 94 class StreamId { |
91 public: | 95 public: |
92 StreamId(uint32_t ssrc, webrtc::PacketDirection direction) | 96 StreamId(uint32_t ssrc, webrtc::PacketDirection direction) |
93 : ssrc_(ssrc), direction_(direction) {} | 97 : ssrc_(ssrc), direction_(direction) {} |
94 bool operator<(const StreamId& other) const { | 98 bool operator<(const StreamId& other) const { |
95 return std::tie(ssrc_, direction_) < | 99 return std::tie(ssrc_, direction_) < |
96 std::tie(other.ssrc_, other.direction_); | 100 std::tie(other.ssrc_, other.direction_); |
97 } | 101 } |
98 bool operator==(const StreamId& other) const { | 102 bool operator==(const StreamId& other) const { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 uint64_t end_time_; | 163 uint64_t end_time_; |
160 | 164 |
161 // Duration (in seconds) of log file. | 165 // Duration (in seconds) of log file. |
162 float call_duration_s_; | 166 float call_duration_s_; |
163 }; | 167 }; |
164 | 168 |
165 } // namespace plotting | 169 } // namespace plotting |
166 } // namespace webrtc | 170 } // namespace webrtc |
167 | 171 |
168 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ | 172 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ |
OLD | NEW |