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 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // This class collects feedback from all streams sent to a peer (via | 47 // This class collects feedback from all streams sent to a peer (via |
48 // RTCPBandwidthObservers). It does one aggregated send side bandwidth | 48 // RTCPBandwidthObservers). It does one aggregated send side bandwidth |
49 // estimation and divide the available bitrate between all its registered | 49 // estimation and divide the available bitrate between all its registered |
50 // BitrateObservers. | 50 // BitrateObservers. |
51 public: | 51 public: |
52 static const int kDefaultStartBitratebps = 300000; | 52 static const int kDefaultStartBitratebps = 300000; |
53 | 53 |
54 // Deprecated: | 54 // Deprecated: |
55 // TODO(perkj): BitrateObserver has been deprecated and is not used in WebRTC. | 55 // TODO(perkj): BitrateObserver has been deprecated and is not used in WebRTC. |
56 // Remove this method once other other projects does not use it. | 56 // Remove this method once other other projects does not use it. |
57 static BitrateController* CreateBitrateController(Clock* clock, | 57 static BitrateController* CreateBitrateController(const Clock* clock, |
58 BitrateObserver* observer, | 58 BitrateObserver* observer, |
59 RtcEventLog* event_log); | 59 RtcEventLog* event_log); |
60 | 60 |
61 static BitrateController* CreateBitrateController(Clock* clock, | 61 static BitrateController* CreateBitrateController(const Clock* clock, |
62 RtcEventLog* event_log); | 62 RtcEventLog* event_log); |
63 | 63 |
64 virtual ~BitrateController() {} | 64 virtual ~BitrateController() {} |
65 | 65 |
66 virtual RtcpBandwidthObserver* CreateRtcpBandwidthObserver() = 0; | 66 virtual RtcpBandwidthObserver* CreateRtcpBandwidthObserver() = 0; |
67 | 67 |
68 // Deprecated | 68 // Deprecated |
69 virtual void SetStartBitrate(int start_bitrate_bps) = 0; | 69 virtual void SetStartBitrate(int start_bitrate_bps) = 0; |
70 // Deprecated | 70 // Deprecated |
71 virtual void SetMinMaxBitrate(int min_bitrate_bps, int max_bitrate_bps) = 0; | 71 virtual void SetMinMaxBitrate(int min_bitrate_bps, int max_bitrate_bps) = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
84 virtual bool AvailableBandwidth(uint32_t* bandwidth) const = 0; | 84 virtual bool AvailableBandwidth(uint32_t* bandwidth) const = 0; |
85 | 85 |
86 virtual void SetReservedBitrate(uint32_t reserved_bitrate_bps) = 0; | 86 virtual void SetReservedBitrate(uint32_t reserved_bitrate_bps) = 0; |
87 | 87 |
88 virtual bool GetNetworkParameters(uint32_t* bitrate, | 88 virtual bool GetNetworkParameters(uint32_t* bitrate, |
89 uint8_t* fraction_loss, | 89 uint8_t* fraction_loss, |
90 int64_t* rtt) = 0; | 90 int64_t* rtt) = 0; |
91 }; | 91 }; |
92 } // namespace webrtc | 92 } // namespace webrtc |
93 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ | 93 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_BITRATE_CONTROLLER_H_ |
OLD | NEW |