| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // Returns the time since the oldest queued packet was enqueued. | 114 // Returns the time since the oldest queued packet was enqueued. |
| 115 virtual int64_t QueueInMs() const; | 115 virtual int64_t QueueInMs() const; |
| 116 | 116 |
| 117 virtual size_t QueueSizePackets() const; | 117 virtual size_t QueueSizePackets() const; |
| 118 | 118 |
| 119 // Returns the number of milliseconds it will take to send the current | 119 // Returns the number of milliseconds it will take to send the current |
| 120 // packets in the queue, given the current size and bitrate, ignoring prio. | 120 // packets in the queue, given the current size and bitrate, ignoring prio. |
| 121 virtual int64_t ExpectedQueueTimeMs() const; | 121 virtual int64_t ExpectedQueueTimeMs() const; |
| 122 | 122 |
| 123 // Application Limited Region refers to operating in a state where the | 123 // Returns time in milliseconds when application-limited regions started or |
| 124 // zero if the sender is currently not application-limited. |
| 125 // |
| 126 // Application Limited Region (ALR) refers to operating in a state where the |
| 124 // traffic on network is limited due to application not having enough | 127 // traffic on network is limited due to application not having enough |
| 125 // traffic to meet the current channel capacity. | 128 // traffic to meet the current channel capacity. |
| 126 // | 129 virtual int64_t GetApplicationLimitedRegionStartTime() const; |
| 127 // Returns true if network is currently application-limited. | |
| 128 bool InApplicationLimitedRegion() const; | |
| 129 | 130 |
| 130 // Returns the average time since being enqueued, in milliseconds, for all | 131 // Returns the average time since being enqueued, in milliseconds, for all |
| 131 // packets currently in the pacer queue, or 0 if queue is empty. | 132 // packets currently in the pacer queue, or 0 if queue is empty. |
| 132 virtual int64_t AverageQueueTimeMs(); | 133 virtual int64_t AverageQueueTimeMs(); |
| 133 | 134 |
| 134 // Returns the number of milliseconds until the module want a worker thread | 135 // Returns the number of milliseconds until the module want a worker thread |
| 135 // to call Process. | 136 // to call Process. |
| 136 int64_t TimeUntilNextProcess() override; | 137 int64_t TimeUntilNextProcess() override; |
| 137 | 138 |
| 138 // Process any pending packets in the queue(s). | 139 // Process any pending packets in the queue(s). |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); | 175 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); |
| 175 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); | 176 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); |
| 176 | 177 |
| 177 int64_t time_last_update_us_ GUARDED_BY(critsect_); | 178 int64_t time_last_update_us_ GUARDED_BY(critsect_); |
| 178 | 179 |
| 179 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); | 180 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); |
| 180 uint64_t packet_counter_; | 181 uint64_t packet_counter_; |
| 181 }; | 182 }; |
| 182 } // namespace webrtc | 183 } // namespace webrtc |
| 183 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ | 184 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ |
| OLD | NEW |