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

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

Issue 1410073006: ACM: Move NACK functionality inside NetEq (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // this method to get the decoder's error code. 265 // this method to get the decoder's error code.
266 virtual int LastDecoderError() = 0; 266 virtual int LastDecoderError() = 0;
267 267
268 // Flushes both the packet buffer and the sync buffer. 268 // Flushes both the packet buffer and the sync buffer.
269 virtual void FlushBuffers() = 0; 269 virtual void FlushBuffers() = 0;
270 270
271 // Current usage of packet-buffer and it's limits. 271 // Current usage of packet-buffer and it's limits.
272 virtual void PacketBufferStatistics(int* current_num_packets, 272 virtual void PacketBufferStatistics(int* current_num_packets,
273 int* max_num_packets) const = 0; 273 int* max_num_packets) const = 0;
274 274
275 // Get sequence number and timestamp of the latest RTP. 275 // Enables NACK and sets the maximum size of the NACK list, which should be
276 // This method is to facilitate NACK. 276 // positive and no larger than Nack::kNackListSizeLimit. If NACK is already
277 virtual int DecodedRtpInfo(int* sequence_number, 277 // enabled then the maximum NACK list size is modified accordingly.
278 uint32_t* timestamp) const = 0; 278 virtual void EnableNack(size_t max_nack_list_size) = 0;
279
280 virtual void DisableNack() = 0;
281
282 // Returns a list of RTP sequence numbers corresponding to packets to be
283 // retransmitted, given an estimate of the round-trip time in milliseconds.
284 virtual std::vector<uint16_t> GetNackList(
285 int64_t round_trip_time_ms) const = 0;
279 286
280 protected: 287 protected:
281 NetEq() {} 288 NetEq() {}
282 289
283 private: 290 private:
284 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 291 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
285 }; 292 };
286 293
287 } // namespace webrtc 294 } // namespace webrtc
288 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 295 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/audio_coding_module.gypi ('k') | webrtc/modules/audio_coding/neteq/nack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698