OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 void ResetMcu(); | 38 void ResetMcu(); |
39 | 39 |
40 // Reports that |num_samples| samples were produced through expansion, and | 40 // Reports that |num_samples| samples were produced through expansion, and |
41 // that the expansion produced other than just noise samples. | 41 // that the expansion produced other than just noise samples. |
42 void ExpandedVoiceSamples(size_t num_samples); | 42 void ExpandedVoiceSamples(size_t num_samples); |
43 | 43 |
44 // Reports that |num_samples| samples were produced through expansion, and | 44 // Reports that |num_samples| samples were produced through expansion, and |
45 // that the expansion produced only noise samples. | 45 // that the expansion produced only noise samples. |
46 void ExpandedNoiseSamples(size_t num_samples); | 46 void ExpandedNoiseSamples(size_t num_samples); |
47 | 47 |
| 48 // Corrects the statistics for number of samples produced through non-noise |
| 49 // expansion by adding |num_samples| (negative or positive) to the current |
| 50 // value. The result is capped to zero to avoid negative values. |
| 51 void ExpandedVoiceSamplesCorrection(int num_samples); |
| 52 |
| 53 // Same as ExpandedVoiceSamplesCorrection but for noise samples. |
| 54 void ExpandedNoiseSamplesCorrection(int num_samples); |
| 55 |
48 // Reports that |num_samples| samples were produced through preemptive | 56 // Reports that |num_samples| samples were produced through preemptive |
49 // expansion. | 57 // expansion. |
50 void PreemptiveExpandedSamples(size_t num_samples); | 58 void PreemptiveExpandedSamples(size_t num_samples); |
51 | 59 |
52 // Reports that |num_samples| samples were removed through accelerate. | 60 // Reports that |num_samples| samples were removed through accelerate. |
53 void AcceleratedSamples(size_t num_samples); | 61 void AcceleratedSamples(size_t num_samples); |
54 | 62 |
55 // Reports that |num_samples| zeros were inserted into the output. | 63 // Reports that |num_samples| zeros were inserted into the output. |
56 void AddZeros(size_t num_samples); | 64 void AddZeros(size_t num_samples); |
57 | 65 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 std::deque<int> waiting_times_; | 166 std::deque<int> waiting_times_; |
159 uint32_t secondary_decoded_samples_; | 167 uint32_t secondary_decoded_samples_; |
160 PeriodicUmaCount delayed_packet_outage_counter_; | 168 PeriodicUmaCount delayed_packet_outage_counter_; |
161 PeriodicUmaAverage excess_buffer_delay_; | 169 PeriodicUmaAverage excess_buffer_delay_; |
162 | 170 |
163 RTC_DISALLOW_COPY_AND_ASSIGN(StatisticsCalculator); | 171 RTC_DISALLOW_COPY_AND_ASSIGN(StatisticsCalculator); |
164 }; | 172 }; |
165 | 173 |
166 } // namespace webrtc | 174 } // namespace webrtc |
167 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_STATISTICS_CALCULATOR_H_ | 175 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_STATISTICS_CALCULATOR_H_ |
OLD | NEW |