Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: webrtc/call/rtc_event_log_parser.h

Issue 2353543003: Added logging for audio send/receive stream configs. (Closed)
Patch Set: Refactored setting of header extensions into separate function. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CALL_RTC_EVENT_LOG_PARSER_H_ 10 #ifndef WEBRTC_CALL_RTC_EVENT_LOG_PARSER_H_
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Reads a config event to a (non-NULL) VideoReceiveStream::Config struct. 90 // Reads a config event to a (non-NULL) VideoReceiveStream::Config struct.
91 // Only the fields that are stored in the protobuf will be written. 91 // Only the fields that are stored in the protobuf will be written.
92 void GetVideoReceiveConfig(size_t index, 92 void GetVideoReceiveConfig(size_t index,
93 VideoReceiveStream::Config* config) const; 93 VideoReceiveStream::Config* config) const;
94 94
95 // Reads a config event to a (non-NULL) VideoSendStream::Config struct. 95 // Reads a config event to a (non-NULL) VideoSendStream::Config struct.
96 // Only the fields that are stored in the protobuf will be written. 96 // Only the fields that are stored in the protobuf will be written.
97 void GetVideoSendConfig(size_t index, VideoSendStream::Config* config) const; 97 void GetVideoSendConfig(size_t index, VideoSendStream::Config* config) const;
98 98
99 // Reads a config event to a (non-NULL) AudioReceiveStream::Config struct.
100 // Only the fields that are stored in the protobuf will be written.
101 void GetAudioReceiveConfig(size_t index,
102 AudioReceiveStream::Config* config) const;
103
104 // Reads a config event to a (non-NULL) AudioSendStream::Config struct.
105 // Only the fields that are stored in the protobuf will be written.
106 void GetAudioSendConfig(size_t index, AudioSendStream::Config* config) const;
107
99 // Reads the SSRC from the audio playout event at |index|. The SSRC is stored 108 // Reads the SSRC from the audio playout event at |index|. The SSRC is stored
100 // in the output parameter ssrc. The output parameter can be set to nullptr 109 // in the output parameter ssrc. The output parameter can be set to nullptr
101 // and in that case the function only asserts that the event is well formed. 110 // and in that case the function only asserts that the event is well formed.
102 void GetAudioPlayout(size_t index, uint32_t* ssrc) const; 111 void GetAudioPlayout(size_t index, uint32_t* ssrc) const;
103 112
104 // Reads bitrate, fraction loss (as defined in RFC 1889) and total number of 113 // Reads bitrate, fraction loss (as defined in RFC 1889) and total number of
105 // expected packets from the BWE event at |index| and stores the values in 114 // expected packets from the BWE event at |index| and stores the values in
106 // the corresponding output parameters. The output parameters can be set to 115 // the corresponding output parameters. The output parameters can be set to
107 // nullptr if those values aren't needed. 116 // nullptr if those values aren't needed.
108 // NB: The packet must have space for at least IP_PACKET_SIZE bytes. 117 // NB: The packet must have space for at least IP_PACKET_SIZE bytes.
109 void GetBwePacketLossEvent(size_t index, 118 void GetBwePacketLossEvent(size_t index,
110 int32_t* bitrate, 119 int32_t* bitrate,
111 uint8_t* fraction_loss, 120 uint8_t* fraction_loss,
112 int32_t* total_packets) const; 121 int32_t* total_packets) const;
113 122
114 private: 123 private:
115 std::vector<rtclog::Event> events_; 124 std::vector<rtclog::Event> events_;
116 }; 125 };
117 126
118 } // namespace webrtc 127 } // namespace webrtc
119 128
120 #endif // WEBRTC_CALL_RTC_EVENT_LOG_PARSER_H_ 129 #endif // WEBRTC_CALL_RTC_EVENT_LOG_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698