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

Side by Side Diff: webrtc/modules/congestion_controller/transport_feedback_adapter.cc

Issue 2635893002: Fix for bwe with overhead on audio only calls. (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
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | no next file » | 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 25 matching lines...) Expand all
36 return lhs.arrival_time_ms < rhs.arrival_time_ms; 36 return lhs.arrival_time_ms < rhs.arrival_time_ms;
37 if (lhs.send_time_ms != rhs.send_time_ms) 37 if (lhs.send_time_ms != rhs.send_time_ms)
38 return lhs.send_time_ms < rhs.send_time_ms; 38 return lhs.send_time_ms < rhs.send_time_ms;
39 return lhs.sequence_number < rhs.sequence_number; 39 return lhs.sequence_number < rhs.sequence_number;
40 } 40 }
41 }; 41 };
42 42
43 TransportFeedbackAdapter::TransportFeedbackAdapter( 43 TransportFeedbackAdapter::TransportFeedbackAdapter(
44 Clock* clock, 44 Clock* clock,
45 BitrateController* bitrate_controller) 45 BitrateController* bitrate_controller)
46 : send_time_history_(clock, kSendTimeHistoryWindowMs), 46 : transport_overhead_bytes_per_packet_(0),
47 send_time_history_(clock, kSendTimeHistoryWindowMs),
47 clock_(clock), 48 clock_(clock),
48 current_offset_ms_(kNoTimestamp), 49 current_offset_ms_(kNoTimestamp),
49 last_timestamp_us_(kNoTimestamp), 50 last_timestamp_us_(kNoTimestamp),
50 bitrate_controller_(bitrate_controller) {} 51 bitrate_controller_(bitrate_controller) {}
51 52
52 TransportFeedbackAdapter::~TransportFeedbackAdapter() {} 53 TransportFeedbackAdapter::~TransportFeedbackAdapter() {}
53 54
54 void TransportFeedbackAdapter::InitBwe() { 55 void TransportFeedbackAdapter::InitBwe() {
55 rtc::CritScope cs(&bwe_lock_); 56 rtc::CritScope cs(&bwe_lock_);
56 delay_based_bwe_.reset(new DelayBasedBwe(clock_)); 57 delay_based_bwe_.reset(new DelayBasedBwe(clock_));
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return last_packet_feedback_vector_; 166 return last_packet_feedback_vector_;
166 } 167 }
167 168
168 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, 169 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms,
169 int64_t max_rtt_ms) { 170 int64_t max_rtt_ms) {
170 rtc::CritScope cs(&bwe_lock_); 171 rtc::CritScope cs(&bwe_lock_);
171 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); 172 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms);
172 } 173 }
173 174
174 } // namespace webrtc 175 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698