Index: webrtc/tools/event_log_visualizer/analyzer.h |
diff --git a/webrtc/tools/event_log_visualizer/analyzer.h b/webrtc/tools/event_log_visualizer/analyzer.h |
index ce2179f5fb60030c35b8e9f493fb9e133a65d9d3..4a1a2d60194c83b2fbf15305124501cb7af3cd69 100644 |
--- a/webrtc/tools/event_log_visualizer/analyzer.h |
+++ b/webrtc/tools/event_log_visualizer/analyzer.h |
@@ -25,6 +25,31 @@ |
namespace webrtc { |
namespace plotting { |
+struct LoggedRtpPacket { |
+ LoggedRtpPacket(uint64_t timestamp, RTPHeader header, size_t total_length) |
+ : timestamp(timestamp), header(header), total_length(total_length) {} |
+ uint64_t timestamp; |
+ RTPHeader header; |
+ size_t total_length; |
+}; |
+ |
+struct LoggedRtcpPacket { |
+ LoggedRtcpPacket(uint64_t timestamp, |
+ RTCPPacketType rtcp_type, |
+ std::unique_ptr<rtcp::RtcpPacket> rtcp_packet) |
+ : timestamp(timestamp), type(rtcp_type), packet(std::move(rtcp_packet)) {} |
+ uint64_t timestamp; |
+ RTCPPacketType type; |
+ std::unique_ptr<rtcp::RtcpPacket> packet; |
+}; |
+ |
+struct BwePacketLossEvent { |
+ uint64_t timestamp; |
+ int32_t new_bitrate; |
+ uint8_t fraction_loss; |
+ int32_t expected_packets; |
+}; |
+ |
class EventLogAnalyzer { |
public: |
// The EventLogAnalyzer keeps a reference to the ParsedRtcEventLog for the |
@@ -73,33 +98,6 @@ class EventLogAnalyzer { |
webrtc::PacketDirection direction_; |
}; |
- struct LoggedRtpPacket { |
- LoggedRtpPacket(uint64_t timestamp, RTPHeader header, size_t total_length) |
- : timestamp(timestamp), header(header), total_length(total_length) {} |
- uint64_t timestamp; |
- RTPHeader header; |
- size_t total_length; |
- }; |
- |
- struct LoggedRtcpPacket { |
- LoggedRtcpPacket(uint64_t timestamp, |
- RTCPPacketType rtcp_type, |
- std::unique_ptr<rtcp::RtcpPacket> rtcp_packet) |
- : timestamp(timestamp), |
- type(rtcp_type), |
- packet(std::move(rtcp_packet)) {} |
- uint64_t timestamp; |
- RTCPPacketType type; |
- std::unique_ptr<rtcp::RtcpPacket> packet; |
- }; |
- |
- struct BwePacketLossEvent { |
- uint64_t timestamp; |
- int32_t new_bitrate; |
- uint8_t fraction_loss; |
- int32_t expected_packets; |
- }; |
- |
bool IsRtxSsrc(StreamId stream_id); |
bool IsVideoSsrc(StreamId stream_id); |