OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #include "webrtc/modules/pacing/paced_sender.h" | 11 #include "webrtc/modules/pacing/paced_sender.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <map> | 14 #include <map> |
15 #include <queue> | 15 #include <queue> |
16 #include <set> | 16 #include <set> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/base/checks.h" | |
20 #include "webrtc/base/logging.h" | |
21 #include "webrtc/modules/include/module_common_types.h" | 19 #include "webrtc/modules/include/module_common_types.h" |
22 #include "webrtc/modules/pacing/alr_detector.h" | 20 #include "webrtc/modules/pacing/alr_detector.h" |
23 #include "webrtc/modules/pacing/bitrate_prober.h" | 21 #include "webrtc/modules/pacing/bitrate_prober.h" |
24 #include "webrtc/modules/utility/include/process_thread.h" | 22 #include "webrtc/modules/utility/include/process_thread.h" |
| 23 #include "webrtc/rtc_base/checks.h" |
| 24 #include "webrtc/rtc_base/logging.h" |
25 #include "webrtc/system_wrappers/include/clock.h" | 25 #include "webrtc/system_wrappers/include/clock.h" |
26 #include "webrtc/system_wrappers/include/field_trial.h" | 26 #include "webrtc/system_wrappers/include/field_trial.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 // Time limit in milliseconds between packet bursts. | 29 // Time limit in milliseconds between packet bursts. |
30 const int64_t kMinPacketLimitMs = 5; | 30 const int64_t kMinPacketLimitMs = 5; |
31 | 31 |
32 // Upper cap on process interval, in case process has not been called in a long | 32 // Upper cap on process interval, in case process has not been called in a long |
33 // time. | 33 // time. |
34 const int64_t kMaxIntervalTimeMs = 30; | 34 const int64_t kMaxIntervalTimeMs = 30; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 rtc::CritScope cs(&critsect_); | 542 rtc::CritScope cs(&critsect_); |
543 pacing_factor_ = pacing_factor; | 543 pacing_factor_ = pacing_factor; |
544 } | 544 } |
545 | 545 |
546 void PacedSender::SetQueueTimeLimit(int limit_ms) { | 546 void PacedSender::SetQueueTimeLimit(int limit_ms) { |
547 rtc::CritScope cs(&critsect_); | 547 rtc::CritScope cs(&critsect_); |
548 queue_time_limit = limit_ms; | 548 queue_time_limit = limit_ms; |
549 } | 549 } |
550 | 550 |
551 } // namespace webrtc | 551 } // namespace webrtc |
OLD | NEW |