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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Reads packet, direction, media type and packet length from the RTCP event | 107 // Reads packet, direction, media type and packet length from the RTCP event |
108 // at |index|, and stores the values in the corresponding output parameters. | 108 // at |index|, and stores the values in the corresponding output parameters. |
109 // Each output parameter can be set to nullptr if that value isn't needed. | 109 // 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. | 110 // NB: The packet must have space for at least IP_PACKET_SIZE bytes. |
111 void GetRtcpPacket(size_t index, | 111 void GetRtcpPacket(size_t index, |
112 PacketDirection* incoming, | 112 PacketDirection* incoming, |
113 MediaType* media_type, | 113 MediaType* media_type, |
114 uint8_t* packet, | 114 uint8_t* packet, |
115 size_t* length) const; | 115 size_t* length) const; |
116 | 116 |
117 // Reads a config event to a (non-NULL) VideoReceiveStream::Config struct. | 117 // Reads a config event to a (non-NULL) StreamConfig struct. |
118 // Only the fields that are stored in the protobuf will be written. | 118 // Only the fields that are stored in the protobuf will be written. |
119 void GetVideoReceiveConfig(size_t index, | 119 void GetVideoReceiveConfig(size_t index, rtclog::StreamConfig* config) const; |
120 VideoReceiveStream::Config* config) const; | |
121 | 120 |
122 // Reads a config event to a (non-NULL) VideoSendStream::Config struct. | 121 // Reads a config event to a (non-NULL) VideoSendStream::Config struct. |
123 // Only the fields that are stored in the protobuf will be written. | 122 // Only the fields that are stored in the protobuf will be written. |
124 void GetVideoSendConfig(size_t index, VideoSendStream::Config* config) const; | 123 void GetVideoSendConfig(size_t index, VideoSendStream::Config* config) const; |
125 | 124 |
126 // Reads a config event to a (non-NULL) AudioReceiveStream::Config struct. | 125 // Reads a config event to a (non-NULL) AudioReceiveStream::Config struct. |
127 // Only the fields that are stored in the protobuf will be written. | 126 // Only the fields that are stored in the protobuf will be written. |
128 void GetAudioReceiveConfig(size_t index, | 127 void GetAudioReceiveConfig(size_t index, |
129 AudioReceiveStream::Config* config) const; | 128 AudioReceiveStream::Config* config) const; |
130 | 129 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 164 |
166 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const; | 165 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const; |
167 | 166 |
168 private: | 167 private: |
169 std::vector<rtclog::Event> events_; | 168 std::vector<rtclog::Event> events_; |
170 }; | 169 }; |
171 | 170 |
172 } // namespace webrtc | 171 } // namespace webrtc |
173 | 172 |
174 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ | 173 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ |
OLD | NEW |