OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 | 10 |
11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/base/platform_file.h" | 17 #include "webrtc/base/platform_file.h" |
18 #include "webrtc/call/audio_receive_stream.h" | 18 #include "webrtc/call/audio_receive_stream.h" |
19 #include "webrtc/call/audio_send_stream.h" | 19 #include "webrtc/call/audio_send_stream.h" |
20 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" | |
21 #include "webrtc/video_receive_stream.h" | 20 #include "webrtc/video_receive_stream.h" |
22 #include "webrtc/video_send_stream.h" | 21 #include "webrtc/video_send_stream.h" |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 | 24 |
26 // Forward declaration of storage class that is automatically generated from | 25 // Forward declaration of storage class that is automatically generated from |
27 // the protobuf file. | 26 // the protobuf file. |
28 namespace rtclog { | 27 namespace rtclog { |
29 class EventStream; | 28 class EventStream; |
30 } // namespace rtclog | 29 } // namespace rtclog |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 size_t length) = 0; | 107 size_t length) = 0; |
109 | 108 |
110 // Logs an audio playout event. | 109 // Logs an audio playout event. |
111 virtual void LogAudioPlayout(uint32_t ssrc) = 0; | 110 virtual void LogAudioPlayout(uint32_t ssrc) = 0; |
112 | 111 |
113 // Logs a bitrate update from the bandwidth estimator based on packet loss. | 112 // Logs a bitrate update from the bandwidth estimator based on packet loss. |
114 virtual void LogBwePacketLossEvent(int32_t bitrate, | 113 virtual void LogBwePacketLossEvent(int32_t bitrate, |
115 uint8_t fraction_loss, | 114 uint8_t fraction_loss, |
116 int32_t total_packets) = 0; | 115 int32_t total_packets) = 0; |
117 | 116 |
118 // Logs audio encoder re-configuration driven by audio network adaptor. | |
119 virtual void LogAudioNetworkAdaptation( | |
120 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) = 0; | |
121 | |
122 // Reads an RtcEventLog file and returns true when reading was successful. | 117 // Reads an RtcEventLog file and returns true when reading was successful. |
123 // The result is stored in the given EventStream object. | 118 // The result is stored in the given EventStream object. |
124 // The order of the events in the EventStream is implementation defined. | 119 // The order of the events in the EventStream is implementation defined. |
125 // The current implementation writes a LOG_START event, then the old | 120 // The current implementation writes a LOG_START event, then the old |
126 // configurations, then the remaining events in timestamp order and finally | 121 // configurations, then the remaining events in timestamp order and finally |
127 // a LOG_END event. However, this might change without further notice. | 122 // a LOG_END event. However, this might change without further notice. |
128 // TODO(terelius): Change result type to a vector? | 123 // TODO(terelius): Change result type to a vector? |
129 static bool ParseRtcEventLog(const std::string& file_name, | 124 static bool ParseRtcEventLog(const std::string& file_name, |
130 rtclog::EventStream* result); | 125 rtclog::EventStream* result); |
131 }; | 126 }; |
(...skipping 21 matching lines...) Expand all Loading... |
153 const uint8_t* header, | 148 const uint8_t* header, |
154 size_t packet_length) override {} | 149 size_t packet_length) override {} |
155 void LogRtcpPacket(PacketDirection direction, | 150 void LogRtcpPacket(PacketDirection direction, |
156 MediaType media_type, | 151 MediaType media_type, |
157 const uint8_t* packet, | 152 const uint8_t* packet, |
158 size_t length) override {} | 153 size_t length) override {} |
159 void LogAudioPlayout(uint32_t ssrc) override {} | 154 void LogAudioPlayout(uint32_t ssrc) override {} |
160 void LogBwePacketLossEvent(int32_t bitrate, | 155 void LogBwePacketLossEvent(int32_t bitrate, |
161 uint8_t fraction_loss, | 156 uint8_t fraction_loss, |
162 int32_t total_packets) override {} | 157 int32_t total_packets) override {} |
163 void LogAudioNetworkAdaptation( | |
164 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) override{}; | |
165 }; | 158 }; |
166 | 159 |
167 } // namespace webrtc | 160 } // namespace webrtc |
168 | 161 |
169 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 162 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
OLD | NEW |