OLD | NEW |
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 * Usage: this class will register multiple RtcpBitrateObserver's one at each | 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each |
11 * RTCP module. It will aggregate the results and run one bandwidth estimation | 11 * RTCP module. It will aggregate the results and run one bandwidth estimation |
12 * and push the result to the encoder via VideoEncoderCallback. | 12 * and push the result to the encoder via VideoEncoderCallback. |
13 */ | 13 */ |
14 | 14 |
15 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ | 15 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ |
16 #define WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ | 16 #define WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ |
17 | 17 |
18 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" | 18 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
19 | 19 |
20 #include <list> | 20 #include <list> |
21 #include <map> | 21 #include <map> |
22 #include <utility> | 22 #include <utility> |
23 #include <vector> | 23 #include <vector> |
24 | 24 |
| 25 #include "webrtc/base/constructormagic.h" |
| 26 #include "webrtc/base/criticalsection.h" |
25 #include "webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h" | 27 #include "webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h" |
26 #include "webrtc/rtc_base/constructormagic.h" | |
27 #include "webrtc/rtc_base/criticalsection.h" | |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 | 30 |
31 class BitrateControllerImpl : public BitrateController { | 31 class BitrateControllerImpl : public BitrateController { |
32 public: | 32 public: |
33 // TODO(perkj): BitrateObserver has been deprecated and is not used in WebRTC. | 33 // TODO(perkj): BitrateObserver has been deprecated and is not used in WebRTC. |
34 // |observer| is left for project that is not yet updated. | 34 // |observer| is left for project that is not yet updated. |
35 BitrateControllerImpl(const Clock* clock, | 35 BitrateControllerImpl(const Clock* clock, |
36 BitrateObserver* observer, | 36 BitrateObserver* observer, |
37 RtcEventLog* event_log); | 37 RtcEventLog* event_log); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); | 100 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); |
101 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); | 101 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); |
102 int64_t last_rtt_ms_ GUARDED_BY(critsect_); | 102 int64_t last_rtt_ms_ GUARDED_BY(critsect_); |
103 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); | 103 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); |
104 | 104 |
105 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); | 105 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); |
106 }; | 106 }; |
107 } // namespace webrtc | 107 } // namespace webrtc |
108 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ | 108 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ |
OLD | NEW |