| 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 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_TRACKER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_TRACKER_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_TRACKER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_TRACKER_H_ |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 #include <map> | 15 #include <map> |
| 16 | 16 |
| 17 #include "webrtc/base/gtest_prod_util.h" |
| 17 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h" | 18 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h" |
| 18 #include "webrtc/rtc_base/gtest_prod_util.h" | |
| 19 | 19 |
| 20 // | 20 // |
| 21 // The NackTracker class keeps track of the lost packets, an estimate of | 21 // The NackTracker class keeps track of the lost packets, an estimate of |
| 22 // time-to-play for each packet is also given. | 22 // time-to-play for each packet is also given. |
| 23 // | 23 // |
| 24 // Every time a packet is pushed into NetEq, LastReceivedPacket() has to be | 24 // Every time a packet is pushed into NetEq, LastReceivedPacket() has to be |
| 25 // called to update the NACK list. | 25 // called to update the NACK list. |
| 26 // | 26 // |
| 27 // Every time 10ms audio is pulled from NetEq LastDecodedPacket() should be | 27 // Every time 10ms audio is pulled from NetEq LastDecodedPacket() should be |
| 28 // called, and time-to-play is updated at that moment. | 28 // called, and time-to-play is updated at that moment. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 NackList nack_list_; | 199 NackList nack_list_; |
| 200 | 200 |
| 201 // NACK list will not keep track of missing packets prior to | 201 // NACK list will not keep track of missing packets prior to |
| 202 // |sequence_num_last_received_rtp_| - |max_nack_list_size_|. | 202 // |sequence_num_last_received_rtp_| - |max_nack_list_size_|. |
| 203 size_t max_nack_list_size_; | 203 size_t max_nack_list_size_; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace webrtc | 206 } // namespace webrtc |
| 207 | 207 |
| 208 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_TRACKER_H_ | 208 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_TRACKER_H_ |
| OLD | NEW |