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

Side by Side Diff: webrtc/modules/audio_coding/neteq/delay_manager.h

Issue 2408653002: NetEq: Convert AverageIAT from int to float calculations (Closed)
Patch Set: Taking care of review comments Created 4 years, 2 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
« no previous file with comments | « tools/ubsan/blacklist.txt ('k') | webrtc/modules/audio_coding/neteq/delay_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Resets the DelayManager and the associated DelayPeakDetector. 66 // Resets the DelayManager and the associated DelayPeakDetector.
67 virtual void Reset(); 67 virtual void Reset();
68 68
69 // Calculates the average inter-arrival time deviation from the histogram. 69 // Calculates the average inter-arrival time deviation from the histogram.
70 // The result is returned as parts-per-million deviation from the nominal 70 // The result is returned as parts-per-million deviation from the nominal
71 // inter-arrival time. That is, if the average inter-arrival time is equal to 71 // inter-arrival time. That is, if the average inter-arrival time is equal to
72 // the nominal frame time, the return value is zero. A positive value 72 // the nominal frame time, the return value is zero. A positive value
73 // corresponds to packet spacing being too large, while a negative value means 73 // corresponds to packet spacing being too large, while a negative value means
74 // that the packets arrive with less spacing than expected. 74 // that the packets arrive with less spacing than expected.
75 virtual int AverageIAT() const; 75 virtual double EstimatedClockDriftPpm() const;
76 76
77 // Returns true if peak-mode is active. That is, delay peaks were observed 77 // Returns true if peak-mode is active. That is, delay peaks were observed
78 // recently. This method simply asks for the same information from the 78 // recently. This method simply asks for the same information from the
79 // DelayPeakDetector object. 79 // DelayPeakDetector object.
80 virtual bool PeakFound() const; 80 virtual bool PeakFound() const;
81 81
82 // Reset the inter-arrival time counter to 0. 82 // Reset the inter-arrival time counter to 0.
83 virtual void ResetPacketIatCount(); 83 virtual void ResetPacketIatCount();
84 84
85 // Writes the lower and higher limits which the buffer level should stay 85 // Writes the lower and higher limits which the buffer level should stay
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Time elapsed since maximum was observed. 160 // Time elapsed since maximum was observed.
161 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_; 161 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_;
162 DelayPeakDetector& peak_detector_; 162 DelayPeakDetector& peak_detector_;
163 int last_pack_cng_or_dtmf_; 163 int last_pack_cng_or_dtmf_;
164 164
165 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager); 165 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager);
166 }; 166 };
167 167
168 } // namespace webrtc 168 } // namespace webrtc
169 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_ 169 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_
OLDNEW
« no previous file with comments | « tools/ubsan/blacklist.txt ('k') | webrtc/modules/audio_coding/neteq/delay_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698