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