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

Unified Diff: webrtc/voice_engine/network_predictor.h

Issue 2390883004: Hooking up audio network adaptor to VoE. (Closed)
Patch Set: adding a comment Created 4 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/voice_engine/channel.cc ('k') | webrtc/voice_engine/network_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/network_predictor.h
diff --git a/webrtc/voice_engine/network_predictor.h b/webrtc/voice_engine/network_predictor.h
deleted file mode 100644
index bf08fe98ce2dbd000734310aa10b6cc05d506aa5..0000000000000000000000000000000000000000
--- a/webrtc/voice_engine/network_predictor.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_VOICE_ENGINE_NETWORK_PREDICTOR_H_
-#define WEBRTC_VOICE_ENGINE_NETWORK_PREDICTOR_H_
-
-#include <memory>
-
-#include "webrtc/base/exp_filter.h"
-#include "webrtc/system_wrappers/include/clock.h"
-
-namespace webrtc {
-
-namespace voe {
-
-// NetworkPredictor is to predict network conditions e.g., packet loss rate, for
-// sender and/or receiver to cope with changes in the network condition.
-class NetworkPredictor {
- public:
- explicit NetworkPredictor(Clock* clock);
- ~NetworkPredictor() {}
-
- // Gets the predicted packet loss rate.
- uint8_t GetLossRate();
-
- // Updates the packet loss rate predictor, on receiving a new observation of
- // packet loss rate from past. Input packet loss rate should be in the
- // interval [0, 255].
- void UpdatePacketLossRate(uint8_t loss_rate);
-
- private:
- Clock* clock_;
- int64_t last_loss_rate_update_time_ms_;
-
- // An exponential filter is used to predict packet loss rate.
- std::unique_ptr<rtc::ExpFilter> loss_rate_filter_;
-};
-
-} // namespace voe
-} // namespace webrtc
-#endif // WEBRTC_VOICE_ENGINE_NETWORK_PREDICTOR_H_
« no previous file with comments | « webrtc/voice_engine/channel.cc ('k') | webrtc/voice_engine/network_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698