OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 * Usage: this class will register multiple RtcpBitrateObserver's one at each | 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each |
11 * RTCP module. It will aggregate the results and run one bandwidth estimation | 11 * RTCP module. It will aggregate the results and run one bandwidth estimation |
12 * and push the result to the encoders via BitrateObserver(s). | 12 * and push the result to the encoders via BitrateObserver(s). |
13 */ | 13 */ |
14 | 14 |
15 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ | 15 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ |
16 #define WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ | 16 #define WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ |
17 | 17 |
18 #include <map> | 18 #include <map> |
19 | 19 |
20 #include "webrtc/modules/congestion_controller/delay_based_bwe.h" | 20 #include "webrtc/modules/congestion_controller/delay_based_bwe.h" |
21 #include "webrtc/modules/include/module.h" | 21 #include "webrtc/modules/include/module.h" |
22 #include "webrtc/modules/pacing/paced_sender.h" | 22 #include "webrtc/modules/pacing/paced_sender.h" |
23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 class CriticalSectionWrapper; | |
28 class RtcEventLog; | 27 class RtcEventLog; |
29 | 28 |
30 // Deprecated | 29 // Deprecated |
31 // TODO(perkj): Remove BitrateObserver when no implementations use it. | 30 // TODO(perkj): Remove BitrateObserver when no implementations use it. |
32 class BitrateObserver { | 31 class BitrateObserver { |
33 // Observer class for bitrate changes announced due to change in bandwidth | 32 // Observer class for bitrate changes announced due to change in bandwidth |
34 // estimate or due to bitrate allocation changes. Fraction loss and rtt is | 33 // estimate or due to bitrate allocation changes. Fraction loss and rtt is |
35 // also part of this callback to allow the obsevrer to optimize its settings | 34 // also part of this callback to allow the obsevrer to optimize its settings |
36 // for different types of network environments. The bitrate does not include | 35 // for different types of network environments. The bitrate does not include |
37 // packet headers and is measured in bits per second. | 36 // packet headers and is measured in bits per second. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual bool AvailableBandwidth(uint32_t* bandwidth) const = 0; | 83 virtual bool AvailableBandwidth(uint32_t* bandwidth) const = 0; |
85 | 84 |
86 virtual void SetReservedBitrate(uint32_t reserved_bitrate_bps) = 0; | 85 virtual void SetReservedBitrate(uint32_t reserved_bitrate_bps) = 0; |
87 | 86 |
88 virtual bool GetNetworkParameters(uint32_t* bitrate, | 87 virtual bool GetNetworkParameters(uint32_t* bitrate, |
89 uint8_t* fraction_loss, | 88 uint8_t* fraction_loss, |
90 int64_t* rtt) = 0; | 89 int64_t* rtt) = 0; |
91 }; | 90 }; |
92 } // namespace webrtc | 91 } // namespace webrtc |
93 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ | 92 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ |
OLD | NEW |