| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual ~SendSideBandwidthEstimation(); | 28 virtual ~SendSideBandwidthEstimation(); |
| 29 | 29 |
| 30 void CurrentEstimate(int* bitrate, uint8_t* loss, int64_t* rtt) const; | 30 void CurrentEstimate(int* bitrate, uint8_t* loss, int64_t* rtt) const; |
| 31 | 31 |
| 32 // Call periodically to update estimate. | 32 // Call periodically to update estimate. |
| 33 void UpdateEstimate(int64_t now_ms); | 33 void UpdateEstimate(int64_t now_ms); |
| 34 | 34 |
| 35 // Call when we receive a RTCP message with TMMBR or REMB. | 35 // Call when we receive a RTCP message with TMMBR or REMB. |
| 36 void UpdateReceiverEstimate(int64_t now_ms, uint32_t bandwidth); | 36 void UpdateReceiverEstimate(int64_t now_ms, uint32_t bandwidth); |
| 37 | 37 |
| 38 // Call when a new delay-based estimate is available. |
| 39 void UpdateDelayBasedEstimate(int64_t now_ms, uint32_t bitrate_bps); |
| 40 |
| 38 // Call when we receive a RTCP message with a ReceiveBlock. | 41 // Call when we receive a RTCP message with a ReceiveBlock. |
| 39 void UpdateReceiverBlock(uint8_t fraction_loss, | 42 void UpdateReceiverBlock(uint8_t fraction_loss, |
| 40 int64_t rtt, | 43 int64_t rtt, |
| 41 int number_of_packets, | 44 int number_of_packets, |
| 42 int64_t now_ms); | 45 int64_t now_ms); |
| 43 | 46 |
| 44 void SetSendBitrate(int bitrate); | 47 void SetSendBitrate(int bitrate); |
| 45 void SetMinMaxBitrate(int min_bitrate, int max_bitrate); | 48 void SetMinMaxBitrate(int min_bitrate, int max_bitrate); |
| 46 int GetMinBitrate() const; | 49 int GetMinBitrate() const; |
| 47 | 50 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 73 uint32_t min_bitrate_configured_; | 76 uint32_t min_bitrate_configured_; |
| 74 uint32_t max_bitrate_configured_; | 77 uint32_t max_bitrate_configured_; |
| 75 int64_t last_low_bitrate_log_ms_; | 78 int64_t last_low_bitrate_log_ms_; |
| 76 | 79 |
| 77 bool has_decreased_since_last_fraction_loss_; | 80 bool has_decreased_since_last_fraction_loss_; |
| 78 int64_t time_last_receiver_block_ms_; | 81 int64_t time_last_receiver_block_ms_; |
| 79 uint8_t last_fraction_loss_; | 82 uint8_t last_fraction_loss_; |
| 80 int64_t last_round_trip_time_ms_; | 83 int64_t last_round_trip_time_ms_; |
| 81 | 84 |
| 82 uint32_t bwe_incoming_; | 85 uint32_t bwe_incoming_; |
| 86 uint32_t delay_based_bitrate_bps_; |
| 83 int64_t time_last_decrease_ms_; | 87 int64_t time_last_decrease_ms_; |
| 84 int64_t first_report_time_ms_; | 88 int64_t first_report_time_ms_; |
| 85 int initially_lost_packets_; | 89 int initially_lost_packets_; |
| 86 int bitrate_at_2_seconds_kbps_; | 90 int bitrate_at_2_seconds_kbps_; |
| 87 UmaState uma_update_state_; | 91 UmaState uma_update_state_; |
| 88 std::vector<bool> rampup_uma_stats_updated_; | 92 std::vector<bool> rampup_uma_stats_updated_; |
| 89 RtcEventLog* event_log_; | 93 RtcEventLog* event_log_; |
| 90 }; | 94 }; |
| 91 } // namespace webrtc | 95 } // namespace webrtc |
| 92 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ | 96 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_ |
| OLD | NEW |