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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc

Issue 1417683006: modules: more interface -> include renames (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix last incorrectly wrapped pragma message 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 11
12 // Implementation of Network-Assisted Dynamic Adaptation's (NADA's) proposal. 12 // Implementation of Network-Assisted Dynamic Adaptation's (NADA's) proposal.
13 // Version according to Draft Document (mentioned in references) 13 // Version according to Draft Document (mentioned in references)
14 // http://tools.ietf.org/html/draft-zhu-rmcat-nada-06 14 // http://tools.ietf.org/html/draft-zhu-rmcat-nada-06
15 // From March 26, 2015. 15 // From March 26, 2015.
16 16
17 #include <math.h> 17 #include <math.h>
18 #include <algorithm> 18 #include <algorithm>
19 #include <vector> 19 #include <vector>
20 20
21 #include "webrtc/base/common.h" 21 #include "webrtc/base/common.h"
22 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/nada.h" 22 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/nada.h"
23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" 23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
24 #include "webrtc/modules/rtp_rtcp/interface/receive_statistics.h" 24 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
25 25
26 namespace webrtc { 26 namespace webrtc {
27 namespace testing { 27 namespace testing {
28 namespace bwe { 28 namespace bwe {
29 29
30 const int64_t NadaBweReceiver::kReceivingRateTimeWindowMs = 500; 30 const int64_t NadaBweReceiver::kReceivingRateTimeWindowMs = 500;
31 31
32 NadaBweReceiver::NadaBweReceiver(int flow_id) 32 NadaBweReceiver::NadaBweReceiver(int flow_id)
33 : BweReceiver(flow_id, kReceivingRateTimeWindowMs), 33 : BweReceiver(flow_id, kReceivingRateTimeWindowMs),
34 clock_(0), 34 clock_(0),
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 (kTheta - (bitrate_kbps_ - kMinBitrateKbps) * x_hat)) / 278 (kTheta - (bitrate_kbps_ - kMinBitrateKbps) * x_hat)) /
279 (kTauOMs * kTauOMs) + 279 (kTauOMs * kTauOMs) +
280 0.5f); 280 0.5f);
281 281
282 bitrate_kbps_ = bitrate_kbps_ + smoothing_factor * original_increase; 282 bitrate_kbps_ = bitrate_kbps_ + smoothing_factor * original_increase;
283 } 283 }
284 284
285 } // namespace bwe 285 } // namespace bwe
286 } // namespace testing 286 } // namespace testing
287 } // namespace webrtc 287 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698