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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 const int kFeedbackIntervalMs = 50; | 23 const int kFeedbackIntervalMs = 50; |
24 | 24 |
25 SendSideBweSender::SendSideBweSender(int kbps, | 25 SendSideBweSender::SendSideBweSender(int kbps, |
26 BitrateObserver* observer, | 26 BitrateObserver* observer, |
27 Clock* clock) | 27 Clock* clock) |
28 : bitrate_controller_( | 28 : bitrate_controller_( |
29 BitrateController::CreateBitrateController(clock, | 29 BitrateController::CreateBitrateController(clock, |
30 observer, | 30 observer, |
31 &event_log_)), | 31 &event_log_)), |
32 bwe_(new DelayBasedBwe(clock)), | 32 bwe_(new DelayBasedBwe(nullptr, clock)), |
33 feedback_observer_(bitrate_controller_->CreateRtcpBandwidthObserver()), | 33 feedback_observer_(bitrate_controller_->CreateRtcpBandwidthObserver()), |
34 clock_(clock), | 34 clock_(clock), |
35 send_time_history_(clock_, 10000), | 35 send_time_history_(clock_, 10000), |
36 has_received_ack_(false), | 36 has_received_ack_(false), |
37 last_acked_seq_num_(0), | 37 last_acked_seq_num_(0), |
38 last_log_time_ms_(0) { | 38 last_log_time_ms_(0) { |
39 assert(kbps >= kMinBitrateKbps); | 39 assert(kbps >= kMinBitrateKbps); |
40 assert(kbps <= kMaxBitrateKbps); | 40 assert(kbps <= kMaxBitrateKbps); |
41 bitrate_controller_->SetStartBitrate(1000 * kbps); | 41 bitrate_controller_->SetStartBitrate(1000 * kbps); |
42 bitrate_controller_->SetMinMaxBitrate(1000 * kMinBitrateKbps, | 42 bitrate_controller_->SetMinMaxBitrate(1000 * kMinBitrateKbps, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 packet_feedback_vector_.back().arrival_time_ms; | 159 packet_feedback_vector_.back().arrival_time_ms; |
160 FeedbackPacket* fb = new SendSideBweFeedback( | 160 FeedbackPacket* fb = new SendSideBweFeedback( |
161 flow_id_, now_ms * 1000, corrected_send_time_ms, packet_feedback_vector_); | 161 flow_id_, now_ms * 1000, corrected_send_time_ms, packet_feedback_vector_); |
162 packet_feedback_vector_.clear(); | 162 packet_feedback_vector_.clear(); |
163 return fb; | 163 return fb; |
164 } | 164 } |
165 | 165 |
166 } // namespace bwe | 166 } // namespace bwe |
167 } // namespace testing | 167 } // namespace testing |
168 } // namespace webrtc | 168 } // namespace webrtc |
OLD | NEW |