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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // overshoots from the encoder. | 64 // overshoots from the encoder. |
65 static const float kDefaultPaceMultiplier; | 65 static const float kDefaultPaceMultiplier; |
66 | 66 |
67 static const size_t kMinProbePacketSize = 200; | 67 static const size_t kMinProbePacketSize = 200; |
68 | 68 |
69 PacedSender(Clock* clock, | 69 PacedSender(Clock* clock, |
70 PacketSender* packet_sender); | 70 PacketSender* packet_sender); |
71 | 71 |
72 virtual ~PacedSender(); | 72 virtual ~PacedSender(); |
73 | 73 |
74 void CreateProbeCluster(int bitrate_bps, int num_packets); | 74 virtual void CreateProbeCluster(int bitrate_bps, int num_packets); |
75 | 75 |
76 // Temporarily pause all sending. | 76 // Temporarily pause all sending. |
77 void Pause(); | 77 void Pause(); |
78 | 78 |
79 // Resume sending packets. | 79 // Resume sending packets. |
80 void Resume(); | 80 void Resume(); |
81 | 81 |
82 // Enable bitrate probing. Enabled by default, mostly here to simplify | 82 // Enable bitrate probing. Enabled by default, mostly here to simplify |
83 // testing. Must be called before any packets are being sent to have an | 83 // testing. Must be called before any packets are being sent to have an |
84 // effect. | 84 // effect. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); | 163 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); |
164 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); | 164 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); |
165 | 165 |
166 int64_t time_last_update_us_ GUARDED_BY(critsect_); | 166 int64_t time_last_update_us_ GUARDED_BY(critsect_); |
167 | 167 |
168 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); | 168 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); |
169 uint64_t packet_counter_; | 169 uint64_t packet_counter_; |
170 }; | 170 }; |
171 } // namespace webrtc | 171 } // namespace webrtc |
172 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ | 172 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ |
OLD | NEW |