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

Side by Side Diff: webrtc/call/bitrate_allocator.h

Issue 1984243003: Set ViEEncoder sink_ on construction. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | webrtc/video/encoder_state_feedback_unittest.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) 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ObserverAllocation NormalRateAllocation(uint32_t bitrate, 105 ObserverAllocation NormalRateAllocation(uint32_t bitrate,
106 uint32_t sum_min_bitrates) 106 uint32_t sum_min_bitrates)
107 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 107 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
108 108
109 ObserverAllocation ZeroRateAllocation() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 109 ObserverAllocation ZeroRateAllocation() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
110 ObserverAllocation LowRateAllocation(uint32_t bitrate) 110 ObserverAllocation LowRateAllocation(uint32_t bitrate)
111 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 111 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
112 112
113 rtc::CriticalSection crit_sect_; 113 rtc::CriticalSection crit_sect_;
114 // Stored in a list to keep track of the insertion order. 114 // Stored in a list to keep track of the insertion order.
115 ObserverConfigList bitrate_observer_configs_; 115 ObserverConfigList bitrate_observer_configs_ GUARDED_BY(crit_sect_);
116 bool enforce_min_bitrate_ GUARDED_BY(crit_sect_); 116 bool enforce_min_bitrate_ GUARDED_BY(crit_sect_);
117 uint32_t last_bitrate_bps_ GUARDED_BY(crit_sect_); 117 uint32_t last_bitrate_bps_ GUARDED_BY(crit_sect_);
118 uint32_t last_non_zero_bitrate_bps_ GUARDED_BY(crit_sect_); 118 uint32_t last_non_zero_bitrate_bps_ GUARDED_BY(crit_sect_);
119 uint8_t last_fraction_loss_ GUARDED_BY(crit_sect_); 119 uint8_t last_fraction_loss_ GUARDED_BY(crit_sect_);
120 int64_t last_rtt_ GUARDED_BY(crit_sect_); 120 int64_t last_rtt_ GUARDED_BY(crit_sect_);
121 }; 121 };
122 } // namespace webrtc 122 } // namespace webrtc
123 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ 123 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/encoder_state_feedback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698