OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void UpdateEstimate(int64_t frameDelayMS, | 43 void UpdateEstimate(int64_t frameDelayMS, |
44 uint32_t frameSizeBytes, | 44 uint32_t frameSizeBytes, |
45 bool incompleteFrame = false); | 45 bool incompleteFrame = false); |
46 | 46 |
47 // Returns the current jitter estimate in milliseconds and adds | 47 // Returns the current jitter estimate in milliseconds and adds |
48 // also adds an RTT dependent term in cases of retransmission. | 48 // also adds an RTT dependent term in cases of retransmission. |
49 // Input: | 49 // Input: |
50 // - rttMultiplier : RTT param multiplier (when applicable). | 50 // - rttMultiplier : RTT param multiplier (when applicable). |
51 // | 51 // |
52 // Return value : Jitter estimate in milliseconds | 52 // Return value : Jitter estimate in milliseconds |
53 int GetJitterEstimate(double rttMultiplier); | 53 virtual int GetJitterEstimate(double rttMultiplier); |
54 | 54 |
55 // Updates the nack counter. | 55 // Updates the nack counter. |
56 void FrameNacked(); | 56 void FrameNacked(); |
57 | 57 |
58 // Updates the RTT filter. | 58 // Updates the RTT filter. |
59 // | 59 // |
60 // Input: | 60 // Input: |
61 // - rttMs : RTT in ms | 61 // - rttMs : RTT in ms |
62 void UpdateRtt(int64_t rttMs); | 62 void UpdateRtt(int64_t rttMs); |
63 | 63 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 rtc::RollingAccumulator<uint64_t> fps_counter_; | 162 rtc::RollingAccumulator<uint64_t> fps_counter_; |
163 enum ExperimentFlag { kInit, kEnabled, kDisabled }; | 163 enum ExperimentFlag { kInit, kEnabled, kDisabled }; |
164 ExperimentFlag low_rate_experiment_; | 164 ExperimentFlag low_rate_experiment_; |
165 const Clock* clock_; | 165 const Clock* clock_; |
166 }; | 166 }; |
167 | 167 |
168 } // namespace webrtc | 168 } // namespace webrtc |
169 | 169 |
170 #endif // WEBRTC_MODULES_VIDEO_CODING_JITTER_ESTIMATOR_H_ | 170 #endif // WEBRTC_MODULES_VIDEO_CODING_JITTER_ESTIMATOR_H_ |
OLD | NEW |