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/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.h

Issue 2029593002: Update RateStatistics to handle too-little-data case. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comment Created 4 years, 6 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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Triggers a new estimate calculation. 49 // Triggers a new estimate calculation.
50 void UpdateEstimate(int64_t time_now) 50 void UpdateEstimate(int64_t time_now)
51 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_.get()); 51 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_.get());
52 52
53 void GetSsrcs(std::vector<uint32_t>* ssrcs) const 53 void GetSsrcs(std::vector<uint32_t>* ssrcs) const
54 SHARED_LOCKS_REQUIRED(crit_sect_.get()); 54 SHARED_LOCKS_REQUIRED(crit_sect_.get());
55 55
56 Clock* clock_; 56 Clock* clock_;
57 SsrcOveruseEstimatorMap overuse_detectors_ GUARDED_BY(crit_sect_.get()); 57 SsrcOveruseEstimatorMap overuse_detectors_ GUARDED_BY(crit_sect_.get());
58 RateStatistics incoming_bitrate_ GUARDED_BY(crit_sect_.get()); 58 RateStatistics incoming_bitrate_ GUARDED_BY(crit_sect_.get());
59 uint32_t last_valid_incoming_bitrate_ GUARDED_BY(crit_sect_.get());
59 std::unique_ptr<AimdRateControl> remote_rate_ GUARDED_BY(crit_sect_.get()); 60 std::unique_ptr<AimdRateControl> remote_rate_ GUARDED_BY(crit_sect_.get());
60 RemoteBitrateObserver* observer_ GUARDED_BY(crit_sect_.get()); 61 RemoteBitrateObserver* observer_ GUARDED_BY(crit_sect_.get());
61 std::unique_ptr<CriticalSectionWrapper> crit_sect_; 62 std::unique_ptr<CriticalSectionWrapper> crit_sect_;
62 int64_t last_process_time_; 63 int64_t last_process_time_;
63 int64_t process_interval_ms_ GUARDED_BY(crit_sect_.get()); 64 int64_t process_interval_ms_ GUARDED_BY(crit_sect_.get());
64 65
65 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorSingleStream); 66 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RemoteBitrateEstimatorSingleStream);
66 }; 67 };
67 68
68 } // namespace webrtc 69 } // namespace webrtc
69 70
70 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SING LE_STREAM_H_ 71 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_SING LE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698