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 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 class Clock; | 27 class Clock; |
28 | 28 |
29 // RemoteBitrateObserver is used to signal changes in bitrate estimates for | 29 // RemoteBitrateObserver is used to signal changes in bitrate estimates for |
30 // the incoming streams. | 30 // the incoming streams. |
31 class RemoteBitrateObserver { | 31 class RemoteBitrateObserver { |
32 public: | 32 public: |
33 // Called when a receive channel group has a new bitrate estimate for the | 33 // Called when a receive channel group has a new bitrate estimate for the |
34 // incoming streams. | 34 // incoming streams. |
35 virtual void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 35 virtual void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
36 uint32_t bitrate) = 0; | 36 uint32_t bitrate) = 0; |
37 virtual void OnProbeBitrate(uint32_t bitrate) {} | |
38 | 37 |
39 virtual ~RemoteBitrateObserver() {} | 38 virtual ~RemoteBitrateObserver() {} |
40 }; | 39 }; |
41 | 40 |
42 // TODO(holmer): Remove when all implementations have been updated. | 41 // TODO(holmer): Remove when all implementations have been updated. |
43 struct ReceiveBandwidthEstimatorStats {}; | 42 struct ReceiveBandwidthEstimatorStats {}; |
44 | 43 |
45 class RemoteBitrateEstimator : public CallStatsObserver, public Module { | 44 class RemoteBitrateEstimator : public CallStatsObserver, public Module { |
46 public: | 45 public: |
47 virtual ~RemoteBitrateEstimator() {} | 46 virtual ~RemoteBitrateEstimator() {} |
(...skipping 24 matching lines...) Expand all Loading... |
72 virtual void SetMinBitrate(int min_bitrate_bps) = 0; | 71 virtual void SetMinBitrate(int min_bitrate_bps) = 0; |
73 | 72 |
74 protected: | 73 protected: |
75 static const int64_t kProcessIntervalMs = 500; | 74 static const int64_t kProcessIntervalMs = 500; |
76 static const int64_t kStreamTimeOutMs = 2000; | 75 static const int64_t kStreamTimeOutMs = 2000; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace webrtc | 78 } // namespace webrtc |
80 | 79 |
81 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA
TOR_H_ | 80 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA
TOR_H_ |
OLD | NEW |