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_MAIN_ACM2_NACK_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_ |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 #include <map> | 15 #include <map> |
16 | 16 |
17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module_typedef
s.h" | 18 #include "webrtc/modules/audio_coding/main/include/audio_coding_module_typedefs.
h" |
19 #include "webrtc/test/testsupport/gtest_prod_util.h" | 19 #include "webrtc/test/testsupport/gtest_prod_util.h" |
20 | 20 |
21 // | 21 // |
22 // The Nack class keeps track of the lost packets, an estimate of time-to-play | 22 // The Nack class keeps track of the lost packets, an estimate of time-to-play |
23 // for each packet is also given. | 23 // for each packet is also given. |
24 // | 24 // |
25 // Every time a packet is pushed into NetEq, LastReceivedPacket() has to be | 25 // Every time a packet is pushed into NetEq, LastReceivedPacket() has to be |
26 // called to update the NACK list. | 26 // called to update the NACK list. |
27 // | 27 // |
28 // Every time 10ms audio is pulled from NetEq LastDecodedPacket() should be | 28 // Every time 10ms audio is pulled from NetEq LastDecodedPacket() should be |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // NACK list will not keep track of missing packets prior to | 204 // NACK list will not keep track of missing packets prior to |
205 // |sequence_num_last_received_rtp_| - |max_nack_list_size_|. | 205 // |sequence_num_last_received_rtp_| - |max_nack_list_size_|. |
206 size_t max_nack_list_size_; | 206 size_t max_nack_list_size_; |
207 }; | 207 }; |
208 | 208 |
209 } // namespace acm2 | 209 } // namespace acm2 |
210 | 210 |
211 } // namespace webrtc | 211 } // namespace webrtc |
212 | 212 |
213 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_ | 213 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_ |
OLD | NEW |