Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: webrtc/modules/pacing/paced_sender.h

Issue 2628563003: Propagate packet pacing information to SenTimeHistory (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Pacing-rate relative to our target send rate. 63 // Pacing-rate relative to our target send rate.
64 // Multiplicative factor that is applied to the target bitrate to calculate 64 // Multiplicative factor that is applied to the target bitrate to calculate
65 // the number of bytes that can be transmitted per interval. 65 // the number of bytes that can be transmitted per interval.
66 // Increasing this factor will result in lower delays in cases of bitrate 66 // Increasing this factor will result in lower delays in cases of bitrate
67 // overshoots from the encoder. 67 // overshoots from the encoder.
68 static const float kDefaultPaceMultiplier; 68 static const float kDefaultPaceMultiplier;
69 69
70 static const size_t kMinProbePacketSize = 200; 70 static const size_t kMinProbePacketSize = 200;
71 71
72 PacedSender(Clock* clock, PacketSender* packet_sender); 72 PacedSender(Clock* clock, PacketSender* packet_sender);
73 PacedSender(Clock* clock,
74 PacketSender* packet_sender,
75 ProbeClusterCreatedObserver* cluster_created_observer);
73 76
74 virtual ~PacedSender(); 77 virtual ~PacedSender();
75 78
76 virtual void CreateProbeCluster(int bitrate_bps); 79 virtual void CreateProbeCluster(int bitrate_bps);
77 80
78 // Temporarily pause all sending. 81 // Temporarily pause all sending.
79 void Pause(); 82 void Pause();
80 83
81 // Resume sending packets. 84 // Resume sending packets.
82 void Resume(); 85 void Resume();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_); 179 uint32_t max_padding_bitrate_kbps_ GUARDED_BY(critsect_);
177 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_); 180 uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_);
178 181
179 int64_t time_last_update_us_ GUARDED_BY(critsect_); 182 int64_t time_last_update_us_ GUARDED_BY(critsect_);
180 183
181 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); 184 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_);
182 uint64_t packet_counter_; 185 uint64_t packet_counter_;
183 }; 186 };
184 } // namespace webrtc 187 } // namespace webrtc
185 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ 188 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698