Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: webrtc/modules/video_coding/jitter_estimator.h

Issue 2138873003: Wire up VCMTiming in FrameBuffer2. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Protection mode unittest. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698