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

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

Issue 1697823002: Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/neteq/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up-codecs
Patch Set: Created 4 years, 10 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
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_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/base/gtest_prod_util.h"
18 #include "webrtc/base/scoped_ptr.h"
19 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h" 18 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h"
20 19
21 // 20 //
22 // The Nack class keeps track of the lost packets, an estimate of time-to-play 21 // The Nack class keeps track of the lost packets, an estimate of time-to-play
23 // for each packet is also given. 22 // for each packet is also given.
24 // 23 //
25 // 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
26 // called to update the NACK list. 25 // called to update the NACK list.
27 // 26 //
28 // Every time 10ms audio is pulled from NetEq LastDecodedPacket() should be 27 // Every time 10ms audio is pulled from NetEq LastDecodedPacket() should be
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 NackList nack_list_; 199 NackList nack_list_;
201 200
202 // NACK list will not keep track of missing packets prior to 201 // NACK list will not keep track of missing packets prior to
203 // |sequence_num_last_received_rtp_| - |max_nack_list_size_|. 202 // |sequence_num_last_received_rtp_| - |max_nack_list_size_|.
204 size_t max_nack_list_size_; 203 size_t max_nack_list_size_;
205 }; 204 };
206 205
207 } // namespace webrtc 206 } // namespace webrtc
208 207
209 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_ 208 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/merge.cc ('k') | webrtc/modules/audio_coding/neteq/nack_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698