OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #include "webrtc/modules/remote_bitrate_estimator/remote_rate_control.h" | |
12 | |
13 #include "webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h" | |
14 #include "webrtc/modules/remote_bitrate_estimator/mimd_rate_control.h" | |
15 | |
16 namespace webrtc { | |
17 | |
18 // static | |
19 const int64_t RemoteRateControl::kMaxFeedbackIntervalMs = 1000; | |
20 | |
21 RemoteRateControl* RemoteRateControl::Create(RateControlType control_type, | |
22 uint32_t min_bitrate_bps) { | |
23 if (control_type == kAimdControl) { | |
24 return new AimdRateControl(min_bitrate_bps); | |
25 } else { | |
26 return new MimdRateControl(min_bitrate_bps); | |
27 } | |
28 } | |
29 | |
30 } // namespace webrtc | |
OLD | NEW |