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 * FEC and NACK added bitrate is handled outside class | 10 * FEC and NACK added bitrate is handled outside class |
11 */ | 11 */ |
12 | 12 |
13 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ | 13 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ |
14 #define WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ | 14 #define WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ |
15 | 15 |
16 #include <deque> | 16 #include <deque> |
17 | 17 |
18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 class SendSideBandwidthEstimation { | 22 class SendSideBandwidthEstimation { |
23 public: | 23 public: |
24 SendSideBandwidthEstimation(); | 24 SendSideBandwidthEstimation(); |
25 virtual ~SendSideBandwidthEstimation(); | 25 virtual ~SendSideBandwidthEstimation(); |
26 | 26 |
27 void CurrentEstimate(int* bitrate, uint8_t* loss, int64_t* rtt) const; | 27 void CurrentEstimate(int* bitrate, uint8_t* loss, int64_t* rtt) const; |
28 | 28 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 uint32_t bwe_incoming_; | 77 uint32_t bwe_incoming_; |
78 int64_t time_last_decrease_ms_; | 78 int64_t time_last_decrease_ms_; |
79 int64_t first_report_time_ms_; | 79 int64_t first_report_time_ms_; |
80 int initially_lost_packets_; | 80 int initially_lost_packets_; |
81 int bitrate_at_2_seconds_kbps_; | 81 int bitrate_at_2_seconds_kbps_; |
82 UmaState uma_update_state_; | 82 UmaState uma_update_state_; |
83 std::vector<bool> rampup_uma_stats_updated_; | 83 std::vector<bool> rampup_uma_stats_updated_; |
84 }; | 84 }; |
85 } // namespace webrtc | 85 } // namespace webrtc |
86 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ | 86 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ |
OLD | NEW |