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

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

Issue 1168753002: Match existing type usage better. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const DecisionLogic& decision_logic, 84 const DecisionLogic& decision_logic,
85 NetEqNetworkStatistics *stats); 85 NetEqNetworkStatistics *stats);
86 86
87 void WaitingTimes(std::vector<int>* waiting_times); 87 void WaitingTimes(std::vector<int>* waiting_times);
88 88
89 private: 89 private:
90 static const int kMaxReportPeriod = 60; // Seconds before auto-reset. 90 static const int kMaxReportPeriod = 60; // Seconds before auto-reset.
91 static const int kLenWaitingTimes = 100; 91 static const int kLenWaitingTimes = 100;
92 92
93 // Calculates numerator / denominator, and returns the value in Q14. 93 // Calculates numerator / denominator, and returns the value in Q14.
94 static int CalculateQ14Ratio(uint32_t numerator, uint32_t denominator); 94 static uint16_t CalculateQ14Ratio(uint32_t numerator, uint32_t denominator);
95 95
96 uint32_t preemptive_samples_; 96 uint32_t preemptive_samples_;
97 uint32_t accelerate_samples_; 97 uint32_t accelerate_samples_;
98 int added_zero_samples_; 98 int added_zero_samples_;
99 uint32_t expanded_speech_samples_; 99 uint32_t expanded_speech_samples_;
100 uint32_t expanded_noise_samples_; 100 uint32_t expanded_noise_samples_;
101 int discarded_packets_; 101 int discarded_packets_;
102 uint32_t lost_timestamps_; 102 uint32_t lost_timestamps_;
103 uint32_t timestamps_since_last_report_; 103 uint32_t timestamps_since_last_report_;
104 int waiting_times_[kLenWaitingTimes]; // Used as a circular buffer. 104 int waiting_times_[kLenWaitingTimes]; // Used as a circular buffer.
105 int len_waiting_times_; 105 int len_waiting_times_;
106 int next_waiting_time_index_; 106 int next_waiting_time_index_;
107 uint32_t secondary_decoded_samples_; 107 uint32_t secondary_decoded_samples_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(StatisticsCalculator); 109 DISALLOW_COPY_AND_ASSIGN(StatisticsCalculator);
110 }; 110 };
111 111
112 } // namespace webrtc 112 } // namespace webrtc
113 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_STATISTICS_CALCULATOR_H_ 113 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_STATISTICS_CALCULATOR_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/normal.cc ('k') | webrtc/modules/audio_coding/neteq/statistics_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698