Chromium Code Reviews| 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 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 // Time limit in milliseconds between packet bursts. | 30 // Time limit in milliseconds between packet bursts. |
| 31 const int64_t kMinPacketLimitMs = 5; | 31 const int64_t kMinPacketLimitMs = 5; |
| 32 const int64_t kPausedPacketIntervalMs = 500; | 32 const int64_t kPausedPacketIntervalMs = 500; |
| 33 | 33 |
| 34 // Upper cap on process interval, in case process has not been called in a long | 34 // Upper cap on process interval, in case process has not been called in a long |
| 35 // time. | 35 // time. |
| 36 const int64_t kMaxIntervalTimeMs = 30; | 36 const int64_t kMaxIntervalTimeMs = 30; |
| 37 | 37 |
| 38 } // namespace | 38 } // namespace |
| 39 | 39 |
| 40 // TODO(sprang): Move at least PacketQueue out to separate | 40 // TODO(sprang): Move at least PacketQueue and MediaBudget out to separate |
|
philipel
2017/08/17 12:52:26
revert
gnish1
2017/08/17 15:37:48
Done.
| |
| 41 // files, so that we can more easily test them. | 41 // files, so that we can more easily test them. |
| 42 | 42 |
| 43 namespace webrtc { | 43 namespace webrtc { |
| 44 namespace paced_sender { | 44 namespace paced_sender { |
| 45 struct Packet { | 45 struct Packet { |
| 46 Packet(RtpPacketSender::Priority priority, | 46 Packet(RtpPacketSender::Priority priority, |
| 47 uint32_t ssrc, | 47 uint32_t ssrc, |
| 48 uint16_t seq_number, | 48 uint16_t seq_number, |
| 49 int64_t capture_time_ms, | 49 int64_t capture_time_ms, |
| 50 int64_t enqueue_time_ms, | 50 int64_t enqueue_time_ms, |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 555 rtc::CritScope cs(&critsect_); | 555 rtc::CritScope cs(&critsect_); |
| 556 pacing_factor_ = pacing_factor; | 556 pacing_factor_ = pacing_factor; |
| 557 } | 557 } |
| 558 | 558 |
| 559 void PacedSender::SetQueueTimeLimit(int limit_ms) { | 559 void PacedSender::SetQueueTimeLimit(int limit_ms) { |
| 560 rtc::CritScope cs(&critsect_); | 560 rtc::CritScope cs(&critsect_); |
| 561 queue_time_limit = limit_ms; | 561 queue_time_limit = limit_ms; |
| 562 } | 562 } |
| 563 | 563 |
| 564 } // namespace webrtc | 564 } // namespace webrtc |
| OLD | NEW |