| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Increases the report interval counter with |num_samples| at a sample rate | 66 // Increases the report interval counter with |num_samples| at a sample rate |
| 67 // of |fs_hz|. | 67 // of |fs_hz|. |
| 68 void IncreaseCounter(int num_samples, int fs_hz); | 68 void IncreaseCounter(int num_samples, int fs_hz); |
| 69 | 69 |
| 70 // Stores new packet waiting time in waiting time statistics. | 70 // Stores new packet waiting time in waiting time statistics. |
| 71 void StoreWaitingTime(int waiting_time_ms); | 71 void StoreWaitingTime(int waiting_time_ms); |
| 72 | 72 |
| 73 // Reports that |num_samples| samples were decoded from secondary packets. | 73 // Reports that |num_samples| samples were decoded from secondary packets. |
| 74 void SecondaryDecodedSamples(int num_samples); | 74 void SecondaryDecodedSamples(int num_samples); |
| 75 | 75 |
| 76 // Logs a delayed packet outage event of |outage_duration_ms|. A delayed |
| 77 // packet outage event is defined as an expand period caused not by an actual |
| 78 // packet loss, but by a delayed packet. |
| 79 virtual void LogDelayedPacketOutageEvent(int outage_duration_ms); |
| 80 |
| 76 // Returns the current network statistics in |stats|. The current sample rate | 81 // Returns the current network statistics in |stats|. The current sample rate |
| 77 // is |fs_hz|, the total number of samples in packet buffer and sync buffer | 82 // is |fs_hz|, the total number of samples in packet buffer and sync buffer |
| 78 // yet to play out is |num_samples_in_buffers|, and the number of samples per | 83 // yet to play out is |num_samples_in_buffers|, and the number of samples per |
| 79 // packet is |samples_per_packet|. | 84 // packet is |samples_per_packet|. |
| 80 void GetNetworkStatistics(int fs_hz, | 85 void GetNetworkStatistics(int fs_hz, |
| 81 int num_samples_in_buffers, | 86 int num_samples_in_buffers, |
| 82 int samples_per_packet, | 87 int samples_per_packet, |
| 83 const DelayManager& delay_manager, | 88 const DelayManager& delay_manager, |
| 84 const DecisionLogic& decision_logic, | 89 const DecisionLogic& decision_logic, |
| 85 NetEqNetworkStatistics *stats); | 90 NetEqNetworkStatistics *stats); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 104 int waiting_times_[kLenWaitingTimes]; // Used as a circular buffer. | 109 int waiting_times_[kLenWaitingTimes]; // Used as a circular buffer. |
| 105 int len_waiting_times_; | 110 int len_waiting_times_; |
| 106 int next_waiting_time_index_; | 111 int next_waiting_time_index_; |
| 107 uint32_t secondary_decoded_samples_; | 112 uint32_t secondary_decoded_samples_; |
| 108 | 113 |
| 109 DISALLOW_COPY_AND_ASSIGN(StatisticsCalculator); | 114 DISALLOW_COPY_AND_ASSIGN(StatisticsCalculator); |
| 110 }; | 115 }; |
| 111 | 116 |
| 112 } // namespace webrtc | 117 } // namespace webrtc |
| 113 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_STATISTICS_CALCULATOR_H_ | 118 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_STATISTICS_CALCULATOR_H_ |
| OLD | NEW |