OLD | NEW |
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 |
11 #ifndef WEBRTC_CALL_BITRATE_ALLOCATOR_H_ | 11 #ifndef WEBRTC_CALL_BITRATE_ALLOCATOR_H_ |
12 #define WEBRTC_CALL_BITRATE_ALLOCATOR_H_ | 12 #define WEBRTC_CALL_BITRATE_ALLOCATOR_H_ |
13 | 13 |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include <map> | 16 #include <map> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "webrtc/rtc_base/sequenced_task_checker.h" | 20 #include "webrtc/base/sequenced_task_checker.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 class Clock; | 24 class Clock; |
25 | 25 |
26 // Used by all send streams with adaptive bitrate, to get the currently | 26 // Used by all send streams with adaptive bitrate, to get the currently |
27 // allocated bitrate for the send stream. The current network properties are | 27 // allocated bitrate for the send stream. The current network properties are |
28 // given at the same time, to let the send stream decide about possible loss | 28 // given at the same time, to let the send stream decide about possible loss |
29 // protection. | 29 // protection. |
30 class BitrateAllocatorObserver { | 30 class BitrateAllocatorObserver { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int64_t last_bwe_period_ms_ GUARDED_BY(&sequenced_checker_); | 163 int64_t last_bwe_period_ms_ GUARDED_BY(&sequenced_checker_); |
164 // Number of mute events based on too low BWE, not network up/down. | 164 // Number of mute events based on too low BWE, not network up/down. |
165 int num_pause_events_ GUARDED_BY(&sequenced_checker_); | 165 int num_pause_events_ GUARDED_BY(&sequenced_checker_); |
166 Clock* const clock_ GUARDED_BY(&sequenced_checker_); | 166 Clock* const clock_ GUARDED_BY(&sequenced_checker_); |
167 int64_t last_bwe_log_time_ GUARDED_BY(&sequenced_checker_); | 167 int64_t last_bwe_log_time_ GUARDED_BY(&sequenced_checker_); |
168 uint32_t total_requested_padding_bitrate_ GUARDED_BY(&sequenced_checker_); | 168 uint32_t total_requested_padding_bitrate_ GUARDED_BY(&sequenced_checker_); |
169 uint32_t total_requested_min_bitrate_ GUARDED_BY(&sequenced_checker_); | 169 uint32_t total_requested_min_bitrate_ GUARDED_BY(&sequenced_checker_); |
170 }; | 170 }; |
171 } // namespace webrtc | 171 } // namespace webrtc |
172 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ | 172 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ |
OLD | NEW |