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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc

Issue 1219303002: Fix issue where the first audio packets significantly impacts initial BWE negatively. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments addressed. Created 5 years, 5 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 29 matching lines...) Expand all
40 InterArrival inter_arrival; 40 InterArrival inter_arrival;
41 OveruseEstimator estimator; 41 OveruseEstimator estimator;
42 OveruseDetector detector; 42 OveruseDetector detector;
43 }; 43 };
44 44
45 RemoteBitrateEstimatorSingleStream::RemoteBitrateEstimatorSingleStream( 45 RemoteBitrateEstimatorSingleStream::RemoteBitrateEstimatorSingleStream(
46 RemoteBitrateObserver* observer, 46 RemoteBitrateObserver* observer,
47 Clock* clock, 47 Clock* clock,
48 uint32_t min_bitrate_bps) 48 uint32_t min_bitrate_bps)
49 : clock_(clock), 49 : clock_(clock),
50 incoming_bitrate_(1000, 8000), 50 incoming_bitrate_(kBitrateWindowMs, 8000),
51 remote_rate_(new AimdRateControl(min_bitrate_bps)), 51 remote_rate_(new AimdRateControl(min_bitrate_bps)),
52 observer_(observer), 52 observer_(observer),
53 crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), 53 crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
54 last_process_time_(-1), 54 last_process_time_(-1),
55 process_interval_ms_(kProcessIntervalMs) { 55 process_interval_ms_(kProcessIntervalMs) {
56 assert(observer_); 56 assert(observer_);
57 LOG(LS_INFO) << "RemoteBitrateEstimatorSingleStream: Instantiating."; 57 LOG(LS_INFO) << "RemoteBitrateEstimatorSingleStream: Instantiating.";
58 } 58 }
59 59
60 RemoteBitrateEstimatorSingleStream::~RemoteBitrateEstimatorSingleStream() { 60 RemoteBitrateEstimatorSingleStream::~RemoteBitrateEstimatorSingleStream() {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 assert(ssrcs); 223 assert(ssrcs);
224 ssrcs->resize(overuse_detectors_.size()); 224 ssrcs->resize(overuse_detectors_.size());
225 int i = 0; 225 int i = 0;
226 for (SsrcOveruseEstimatorMap::const_iterator it = overuse_detectors_.begin(); 226 for (SsrcOveruseEstimatorMap::const_iterator it = overuse_detectors_.begin();
227 it != overuse_detectors_.end(); ++it, ++i) { 227 it != overuse_detectors_.end(); ++it, ++i) {
228 (*ssrcs)[i] = it->first; 228 (*ssrcs)[i] = it->first;
229 } 229 }
230 } 230 }
231 231
232 } // namespace webrtc 232 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698