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/modules/remote_bitrate_estimator/include/bwe_defines.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" |
22 #include "webrtc/video_receive_stream.h" | 21 #include "webrtc/video_receive_stream.h" |
23 #include "webrtc/video_send_stream.h" | 22 #include "webrtc/video_send_stream.h" |
24 | 23 |
25 namespace webrtc { | 24 namespace webrtc { |
26 | 25 |
27 // Forward declaration of storage class that is automatically generated from | 26 // Forward declaration of storage class that is automatically generated from |
28 // the protobuf file. | 27 // the protobuf file. |
29 namespace rtclog { | 28 namespace rtclog { |
30 class EventStream; | 29 class EventStream; |
31 } // namespace rtclog | 30 } // namespace rtclog |
32 | 31 |
33 class Clock; | 32 class Clock; |
34 class RtcEventLogImpl; | 33 class RtcEventLogImpl; |
| 34 struct AudioEncoderRuntimeConfig; |
35 | 35 |
36 enum class MediaType; | 36 enum class MediaType; |
37 | 37 |
38 enum PacketDirection { kIncomingPacket = 0, kOutgoingPacket }; | 38 enum PacketDirection { kIncomingPacket = 0, kOutgoingPacket }; |
39 enum ProbeFailureReason { | 39 enum ProbeFailureReason { |
40 kInvalidSendReceiveInterval, | 40 kInvalidSendReceiveInterval, |
41 kInvalidSendReceiveRatio, | 41 kInvalidSendReceiveRatio, |
42 kTimeout | 42 kTimeout |
43 }; | 43 }; |
44 | 44 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual void LogLossBasedBweUpdate(int32_t bitrate_bps, | 128 virtual void LogLossBasedBweUpdate(int32_t bitrate_bps, |
129 uint8_t fraction_loss, | 129 uint8_t fraction_loss, |
130 int32_t total_packets) = 0; | 130 int32_t total_packets) = 0; |
131 | 131 |
132 // Logs a bitrate update from the bandwidth estimator based on delay changes. | 132 // Logs a bitrate update from the bandwidth estimator based on delay changes. |
133 virtual void LogDelayBasedBweUpdate(int32_t bitrate_bps, | 133 virtual void LogDelayBasedBweUpdate(int32_t bitrate_bps, |
134 BandwidthUsage detector_state) = 0; | 134 BandwidthUsage detector_state) = 0; |
135 | 135 |
136 // Logs audio encoder re-configuration driven by audio network adaptor. | 136 // Logs audio encoder re-configuration driven by audio network adaptor. |
137 virtual void LogAudioNetworkAdaptation( | 137 virtual void LogAudioNetworkAdaptation( |
138 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) = 0; | 138 const AudioEncoderRuntimeConfig& config) = 0; |
139 | 139 |
140 // Logs when a probe cluster is created. | 140 // Logs when a probe cluster is created. |
141 virtual void LogProbeClusterCreated(int id, | 141 virtual void LogProbeClusterCreated(int id, |
142 int bitrate_bps, | 142 int bitrate_bps, |
143 int min_probes, | 143 int min_probes, |
144 int min_bytes) = 0; | 144 int min_bytes) = 0; |
145 | 145 |
146 // Logs the result of a successful probing attempt. | 146 // Logs the result of a successful probing attempt. |
147 virtual void LogProbeResultSuccess(int id, int bitrate_bps) = 0; | 147 virtual void LogProbeResultSuccess(int id, int bitrate_bps) = 0; |
148 | 148 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 MediaType media_type, | 192 MediaType media_type, |
193 const uint8_t* packet, | 193 const uint8_t* packet, |
194 size_t length) override {} | 194 size_t length) override {} |
195 void LogAudioPlayout(uint32_t ssrc) override {} | 195 void LogAudioPlayout(uint32_t ssrc) override {} |
196 void LogLossBasedBweUpdate(int32_t bitrate_bps, | 196 void LogLossBasedBweUpdate(int32_t bitrate_bps, |
197 uint8_t fraction_loss, | 197 uint8_t fraction_loss, |
198 int32_t total_packets) override {} | 198 int32_t total_packets) override {} |
199 void LogDelayBasedBweUpdate(int32_t bitrate_bps, | 199 void LogDelayBasedBweUpdate(int32_t bitrate_bps, |
200 BandwidthUsage detector_state) override {} | 200 BandwidthUsage detector_state) override {} |
201 void LogAudioNetworkAdaptation( | 201 void LogAudioNetworkAdaptation( |
202 const AudioNetworkAdaptor::EncoderRuntimeConfig& config) override {} | 202 const AudioEncoderRuntimeConfig& config) override {} |
203 void LogProbeClusterCreated(int id, | 203 void LogProbeClusterCreated(int id, |
204 int bitrate_bps, | 204 int bitrate_bps, |
205 int min_probes, | 205 int min_probes, |
206 int min_bytes) override{}; | 206 int min_bytes) override{}; |
207 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; | 207 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; |
208 void LogProbeResultFailure(int id, | 208 void LogProbeResultFailure(int id, |
209 ProbeFailureReason failure_reason) override{}; | 209 ProbeFailureReason failure_reason) override{}; |
210 }; | 210 }; |
211 | 211 |
212 } // namespace webrtc | 212 } // namespace webrtc |
213 | 213 |
214 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 214 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
OLD | NEW |