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

Unified Diff: webrtc/modules/audio_coding/neteq/nack.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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_coding/neteq/include/neteq.h ('k') | webrtc/modules/audio_coding/neteq/nack.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/nack.h
diff --git a/webrtc/modules/audio_coding/main/acm2/nack.h b/webrtc/modules/audio_coding/neteq/nack.h
similarity index 95%
rename from webrtc/modules/audio_coding/main/acm2/nack.h
rename to webrtc/modules/audio_coding/neteq/nack.h
index 4b22fa123b04769c8370ea77c587c107e34de78f..116b7e21928be5f8047b462530fd0d82dbc8aa71 100644
--- a/webrtc/modules/audio_coding/main/acm2/nack.h
+++ b/webrtc/modules/audio_coding/neteq/nack.h
@@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_
-#define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_
+#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_
+#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_
#include <vector>
#include <map>
@@ -49,8 +49,6 @@
//
namespace webrtc {
-namespace acm2 {
-
class Nack {
public:
// A limit for the size of the NACK list.
@@ -66,7 +64,7 @@ class Nack {
// with sequence number earlier than N - |max_nack_list_size|.
//
// The largest maximum size is defined by |kNackListSizeLimit|
- int SetMaxNackListSize(size_t max_nack_list_size);
+ void SetMaxNackListSize(size_t max_nack_list_size);
// Set the sampling rate.
//
@@ -124,8 +122,8 @@ class Nack {
class NackListCompare {
public:
- bool operator() (uint16_t sequence_number_old,
- uint16_t sequence_number_new) const {
+ bool operator()(uint16_t sequence_number_old,
+ uint16_t sequence_number_new) const {
return IsNewerSequenceNumber(sequence_number_new, sequence_number_old);
}
};
@@ -206,8 +204,6 @@ class Nack {
size_t max_nack_list_size_;
};
-} // namespace acm2
-
} // namespace webrtc
-#endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_NACK_H_
+#endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NACK_H_
« no previous file with comments | « webrtc/modules/audio_coding/neteq/include/neteq.h ('k') | webrtc/modules/audio_coding/neteq/nack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698