| 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 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ | 10 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // Returns the number of events in an EventStream. | 86 // Returns the number of events in an EventStream. |
| 87 size_t GetNumberOfEvents() const; | 87 size_t GetNumberOfEvents() const; |
| 88 | 88 |
| 89 // Reads the arrival timestamp (in microseconds) from a rtclog::Event. | 89 // Reads the arrival timestamp (in microseconds) from a rtclog::Event. |
| 90 int64_t GetTimestamp(size_t index) const; | 90 int64_t GetTimestamp(size_t index) const; |
| 91 | 91 |
| 92 // Reads the event type of the rtclog::Event at |index|. | 92 // Reads the event type of the rtclog::Event at |index|. |
| 93 EventType GetEventType(size_t index) const; | 93 EventType GetEventType(size_t index) const; |
| 94 | 94 |
| 95 // Reads the header, direction, media type, header length and packet length | 95 // Reads the header, direction, header length and packet length from the RTP |
| 96 // from the RTP event at |index|, and stores the values in the corresponding | 96 // event at |index|, and stores the values in the corresponding output |
| 97 // output parameters. Each output parameter can be set to nullptr if that | 97 // parameters. Each output parameter can be set to nullptr if that value |
| 98 // value isn't needed. | 98 // isn't needed. |
| 99 // NB: The header must have space for at least IP_PACKET_SIZE bytes. | 99 // NB: The header must have space for at least IP_PACKET_SIZE bytes. |
| 100 void GetRtpHeader(size_t index, | 100 void GetRtpHeader(size_t index, |
| 101 PacketDirection* incoming, | 101 PacketDirection* incoming, |
| 102 MediaType* media_type, | |
| 103 uint8_t* header, | 102 uint8_t* header, |
| 104 size_t* header_length, | 103 size_t* header_length, |
| 105 size_t* total_length) const; | 104 size_t* total_length) const; |
| 106 | 105 |
| 107 // Reads packet, direction, media type and packet length from the RTCP event | 106 // Reads packet, direction and packet length from the RTCP event at |index|, |
| 108 // at |index|, and stores the values in the corresponding output parameters. | 107 // and stores the values in the corresponding output parameters. |
| 109 // Each output parameter can be set to nullptr if that value isn't needed. | 108 // Each output parameter can be set to nullptr if that value isn't needed. |
| 110 // NB: The packet must have space for at least IP_PACKET_SIZE bytes. | 109 // NB: The packet must have space for at least IP_PACKET_SIZE bytes. |
| 111 void GetRtcpPacket(size_t index, | 110 void GetRtcpPacket(size_t index, |
| 112 PacketDirection* incoming, | 111 PacketDirection* incoming, |
| 113 MediaType* media_type, | |
| 114 uint8_t* packet, | 112 uint8_t* packet, |
| 115 size_t* length) const; | 113 size_t* length) const; |
| 116 | 114 |
| 117 // Reads a config event to a (non-NULL) StreamConfig struct. | 115 // Reads a config event to a (non-NULL) StreamConfig struct. |
| 118 // Only the fields that are stored in the protobuf will be written. | 116 // Only the fields that are stored in the protobuf will be written. |
| 119 void GetVideoReceiveConfig(size_t index, rtclog::StreamConfig* config) const; | 117 void GetVideoReceiveConfig(size_t index, rtclog::StreamConfig* config) const; |
| 120 | 118 |
| 121 // Reads a config event to a (non-NULL) StreamConfig struct. | 119 // Reads a config event to a (non-NULL) StreamConfig struct. |
| 122 // Only the fields that are stored in the protobuf will be written. | 120 // Only the fields that are stored in the protobuf will be written. |
| 123 void GetVideoSendConfig(size_t index, rtclog::StreamConfig* config) const; | 121 void GetVideoSendConfig(size_t index, rtclog::StreamConfig* config) const; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 161 |
| 164 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const; | 162 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const; |
| 165 | 163 |
| 166 private: | 164 private: |
| 167 std::vector<rtclog::Event> events_; | 165 std::vector<rtclog::Event> events_; |
| 168 }; | 166 }; |
| 169 | 167 |
| 170 } // namespace webrtc | 168 } // namespace webrtc |
| 171 | 169 |
| 172 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ | 170 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ |
| OLD | NEW |