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

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log_parser.h

Issue 2353543003: Added logging for audio send/receive stream configs. (Closed)
Patch Set: Another rebase. Created 4 years, 2 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_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ 10 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Reads a config event to a (non-NULL) VideoReceiveStream::Config struct. 93 // Reads a config event to a (non-NULL) VideoReceiveStream::Config struct.
94 // Only the fields that are stored in the protobuf will be written. 94 // Only the fields that are stored in the protobuf will be written.
95 void GetVideoReceiveConfig(size_t index, 95 void GetVideoReceiveConfig(size_t index,
96 VideoReceiveStream::Config* config) const; 96 VideoReceiveStream::Config* config) const;
97 97
98 // Reads a config event to a (non-NULL) VideoSendStream::Config struct. 98 // Reads a config event to a (non-NULL) VideoSendStream::Config struct.
99 // Only the fields that are stored in the protobuf will be written. 99 // Only the fields that are stored in the protobuf will be written.
100 void GetVideoSendConfig(size_t index, VideoSendStream::Config* config) const; 100 void GetVideoSendConfig(size_t index, VideoSendStream::Config* config) const;
101 101
102 // Reads a config event to a (non-NULL) AudioReceiveStream::Config struct.
103 // Only the fields that are stored in the protobuf will be written.
104 void GetAudioReceiveConfig(size_t index,
105 AudioReceiveStream::Config* config) const;
106
107 // Reads a config event to a (non-NULL) AudioSendStream::Config struct.
108 // Only the fields that are stored in the protobuf will be written.
109 void GetAudioSendConfig(size_t index, AudioSendStream::Config* config) const;
110
102 // Reads the SSRC from the audio playout event at |index|. The SSRC is stored 111 // Reads the SSRC from the audio playout event at |index|. The SSRC is stored
103 // in the output parameter ssrc. The output parameter can be set to nullptr 112 // in the output parameter ssrc. The output parameter can be set to nullptr
104 // and in that case the function only asserts that the event is well formed. 113 // and in that case the function only asserts that the event is well formed.
105 void GetAudioPlayout(size_t index, uint32_t* ssrc) const; 114 void GetAudioPlayout(size_t index, uint32_t* ssrc) const;
106 115
107 // Reads bitrate, fraction loss (as defined in RFC 1889) and total number of 116 // Reads bitrate, fraction loss (as defined in RFC 1889) and total number of
108 // expected packets from the BWE event at |index| and stores the values in 117 // expected packets from the BWE event at |index| and stores the values in
109 // the corresponding output parameters. The output parameters can be set to 118 // the corresponding output parameters. The output parameters can be set to
110 // nullptr if those values aren't needed. 119 // nullptr if those values aren't needed.
111 // NB: The packet must have space for at least IP_PACKET_SIZE bytes. 120 // NB: The packet must have space for at least IP_PACKET_SIZE bytes.
112 void GetBwePacketLossEvent(size_t index, 121 void GetBwePacketLossEvent(size_t index,
113 int32_t* bitrate, 122 int32_t* bitrate,
114 uint8_t* fraction_loss, 123 uint8_t* fraction_loss,
115 int32_t* total_packets) const; 124 int32_t* total_packets) const;
116 125
117 private: 126 private:
118 std::vector<rtclog::Event> events_; 127 std::vector<rtclog::Event> events_;
119 }; 128 };
120 129
121 } // namespace webrtc 130 } // namespace webrtc
122 131
123 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ 132 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698