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

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

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 Created 3 years, 5 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) 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/arraysize.h" 21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.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"
24 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" 23 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
24 #include "webrtc/rtc_base/arraysize.h"
25 25
26 namespace webrtc { 26 namespace webrtc {
27 namespace testing { 27 namespace testing {
28 namespace bwe { 28 namespace bwe {
29 29
30 namespace { 30 namespace {
31 // Used as an upper bound for calling AcceleratedRampDown. 31 // Used as an upper bound for calling AcceleratedRampDown.
32 const float kMaxCongestionSignalMs = 32 const float kMaxCongestionSignalMs =
33 40.0f + NadaBweSender::kMinNadaBitrateKbps / 15; 33 40.0f + NadaBweSender::kMinNadaBitrateKbps / 15;
34 } // namespace 34 } // namespace
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 (kTheta - (bitrate_kbps_ - kMinNadaBitrateKbps) * x_hat)) / 284 (kTheta - (bitrate_kbps_ - kMinNadaBitrateKbps) * x_hat)) /
285 (kTauOMs * kTauOMs) + 285 (kTauOMs * kTauOMs) +
286 0.5f); 286 0.5f);
287 287
288 bitrate_kbps_ = bitrate_kbps_ + smoothing_factor * original_increase; 288 bitrate_kbps_ = bitrate_kbps_ + smoothing_factor * original_increase;
289 } 289 }
290 290
291 } // namespace bwe 291 } // namespace bwe
292 } // namespace testing 292 } // namespace testing
293 } // namespace webrtc 293 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698