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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Returns true if a valid estimate exists and sets |bitrate_bps| to the | 109 // Returns true if a valid estimate exists and sets |bitrate_bps| to the |
110 // estimated payload bitrate in bits per second. |ssrcs| is the list of ssrcs | 110 // estimated payload bitrate in bits per second. |ssrcs| is the list of ssrcs |
111 // currently being received and of which the bitrate estimate is based upon. | 111 // currently being received and of which the bitrate estimate is based upon. |
112 virtual bool LatestEstimate(std::vector<unsigned int>* ssrcs, | 112 virtual bool LatestEstimate(std::vector<unsigned int>* ssrcs, |
113 unsigned int* bitrate_bps) const = 0; | 113 unsigned int* bitrate_bps) const = 0; |
114 | 114 |
115 // Returns true if the statistics are available. | 115 // Returns true if the statistics are available. |
116 virtual bool GetStats(ReceiveBandwidthEstimatorStats* output) const = 0; | 116 virtual bool GetStats(ReceiveBandwidthEstimatorStats* output) const = 0; |
117 | 117 |
118 protected: | 118 protected: |
119 static const int64_t kProcessIntervalMs = 1000; | 119 static const int64_t kProcessIntervalMs = 500; |
120 static const int64_t kStreamTimeOutMs = 2000; | 120 static const int64_t kStreamTimeOutMs = 2000; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace webrtc | 123 } // namespace webrtc |
124 | 124 |
125 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA
TOR_H_ | 125 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA
TOR_H_ |
OLD | NEW |