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

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

Issue 2347023002: BitrateProber: Support higher probing bitrates (Closed)
Patch Set: Rebased Created 4 years, 2 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
« no previous file with comments | « webrtc/modules/pacing/bitrate_prober_unittest.cc ('k') | webrtc/modules/pacing/paced_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Process any pending packets in the queue(s). 130 // Process any pending packets in the queue(s).
131 void Process() override; 131 void Process() override;
132 132
133 private: 133 private:
134 // Updates the number of bytes that can be sent for the next time interval. 134 // Updates the number of bytes that can be sent for the next time interval.
135 void UpdateBytesPerInterval(int64_t delta_time_in_ms) 135 void UpdateBytesPerInterval(int64_t delta_time_in_ms)
136 EXCLUSIVE_LOCKS_REQUIRED(critsect_); 136 EXCLUSIVE_LOCKS_REQUIRED(critsect_);
137 137
138 bool SendPacket(const paced_sender::Packet& packet, int probe_cluster_id) 138 bool SendPacket(const paced_sender::Packet& packet, int probe_cluster_id)
139 EXCLUSIVE_LOCKS_REQUIRED(critsect_); 139 EXCLUSIVE_LOCKS_REQUIRED(critsect_);
140 void SendPadding(size_t padding_needed, int probe_cluster_id) 140 size_t SendPadding(size_t padding_needed, int probe_cluster_id)
141 EXCLUSIVE_LOCKS_REQUIRED(critsect_); 141 EXCLUSIVE_LOCKS_REQUIRED(critsect_);
142 142
143 Clock* const clock_; 143 Clock* const clock_;
144 PacketSender* const packet_sender_; 144 PacketSender* const packet_sender_;
145 145
146 std::unique_ptr<CriticalSectionWrapper> critsect_; 146 std::unique_ptr<CriticalSectionWrapper> critsect_;
147 bool paused_ GUARDED_BY(critsect_); 147 bool paused_ GUARDED_BY(critsect_);
148 // This is the media budget, keeping track of how many bits of media 148 // This is the media budget, keeping track of how many bits of media
149 // we can pace out during the current interval. 149 // we can pace out during the current interval.
150 std::unique_ptr<paced_sender::IntervalBudget> media_budget_ 150 std::unique_ptr<paced_sender::IntervalBudget> media_budget_
(...skipping 12 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/bitrate_prober_unittest.cc ('k') | webrtc/modules/pacing/paced_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698