| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 uint16_t sequence_number, | 112 uint16_t sequence_number, |
| 113 int64_t capture_time_ms, | 113 int64_t capture_time_ms, |
| 114 size_t bytes, | 114 size_t bytes, |
| 115 bool retransmission) override; | 115 bool retransmission) override; |
| 116 | 116 |
| 117 // Returns the time since the oldest queued packet was enqueued. | 117 // Returns the time since the oldest queued packet was enqueued. |
| 118 virtual int64_t QueueInMs() const; | 118 virtual int64_t QueueInMs() const; |
| 119 | 119 |
| 120 virtual size_t QueueSizePackets() const; | 120 virtual size_t QueueSizePackets() const; |
| 121 | 121 |
| 122 // Returns the time when the first packet was sent, or -1 if no packet is |
| 123 // sent. |
| 124 virtual int64_t FirstSentPacketTimeMs() const; |
| 125 |
| 122 // Returns the number of milliseconds it will take to send the current | 126 // Returns the number of milliseconds it will take to send the current |
| 123 // packets in the queue, given the current size and bitrate, ignoring prio. | 127 // packets in the queue, given the current size and bitrate, ignoring prio. |
| 124 virtual int64_t ExpectedQueueTimeMs() const; | 128 virtual int64_t ExpectedQueueTimeMs() const; |
| 125 | 129 |
| 126 // Returns time in milliseconds when the current application-limited region | 130 // Returns time in milliseconds when the current application-limited region |
| 127 // started or empty result if the sender is currently not application-limited. | 131 // started or empty result if the sender is currently not application-limited. |
| 128 // | 132 // |
| 129 // Application Limited Region (ALR) refers to operating in a state where the | 133 // Application Limited Region (ALR) refers to operating in a state where the |
| 130 // traffic on network is limited due to application not having enough | 134 // traffic on network is limited due to application not having enough |
| 131 // traffic to meet the current channel capacity. | 135 // traffic to meet the current channel capacity. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 std::unique_ptr<BitrateProber> prober_ GUARDED_BY(critsect_); | 181 std::unique_ptr<BitrateProber> prober_ GUARDED_BY(critsect_); |
| 178 bool probing_send_failure_; | 182 bool probing_send_failure_; |
| 179 // Actual configured bitrates (media_budget_ may temporarily be higher in | 183 // Actual configured bitrates (media_budget_ may temporarily be higher in |
| 180 // order to meet pace time constraint). | 184 // order to meet pace time constraint). |
| 181 uint32_t estimated_bitrate_bps_ GUARDED_BY(critsect_); | 185 uint32_t estimated_bitrate_bps_ GUARDED_BY(critsect_); |
| 182 uint32_t min_send_bitrate_kbps_ GUARDED_BY(critsect_); | 186 uint32_t min_send_bitrate_kbps_ GUARDED_BY(critsect_); |
| 183 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); | 187 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); |
| 184 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); | 188 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); |
| 185 | 189 |
| 186 int64_t time_last_update_us_ GUARDED_BY(critsect_); | 190 int64_t time_last_update_us_ GUARDED_BY(critsect_); |
| 191 int64_t first_sent_packet_ms_ GUARDED_BY(critsect_); |
| 187 | 192 |
| 188 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); | 193 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); |
| 189 uint64_t packet_counter_; | 194 uint64_t packet_counter_; |
| 190 ProcessThread* process_thread_ = nullptr; | 195 ProcessThread* process_thread_ = nullptr; |
| 191 }; | 196 }; |
| 192 } // namespace webrtc | 197 } // namespace webrtc |
| 193 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ | 198 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ |
| OLD | NEW |