| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 void FullBweSender::OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 104 void FullBweSender::OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
| 105 uint32_t bitrate) { | 105 uint32_t bitrate) { |
| 106 feedback_observer_->OnReceivedEstimatedBitrate(bitrate); | 106 feedback_observer_->OnReceivedEstimatedBitrate(bitrate); |
| 107 } | 107 } |
| 108 | 108 |
| 109 int64_t FullBweSender::TimeUntilNextProcess() { | 109 int64_t FullBweSender::TimeUntilNextProcess() { |
| 110 return bitrate_controller_->TimeUntilNextProcess(); | 110 return bitrate_controller_->TimeUntilNextProcess(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 int FullBweSender::Process() { | 113 void FullBweSender::Process() { |
| 114 rbe_->Process(); | 114 rbe_->Process(); |
| 115 return bitrate_controller_->Process(); | 115 bitrate_controller_->Process(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 SendSideBweReceiver::SendSideBweReceiver(int flow_id) | 118 SendSideBweReceiver::SendSideBweReceiver(int flow_id) |
| 119 : BweReceiver(flow_id), last_feedback_ms_(0) { | 119 : BweReceiver(flow_id), last_feedback_ms_(0) { |
| 120 } | 120 } |
| 121 | 121 |
| 122 SendSideBweReceiver::~SendSideBweReceiver() { | 122 SendSideBweReceiver::~SendSideBweReceiver() { |
| 123 } | 123 } |
| 124 | 124 |
| 125 void SendSideBweReceiver::ReceivePacket(int64_t arrival_time_ms, | 125 void SendSideBweReceiver::ReceivePacket(int64_t arrival_time_ms, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 141 packet_feedback_vector_.back().arrival_time_ms; | 141 packet_feedback_vector_.back().arrival_time_ms; |
| 142 FeedbackPacket* fb = new SendSideBweFeedback( | 142 FeedbackPacket* fb = new SendSideBweFeedback( |
| 143 flow_id_, now_ms * 1000, corrected_send_time_ms, packet_feedback_vector_); | 143 flow_id_, now_ms * 1000, corrected_send_time_ms, packet_feedback_vector_); |
| 144 packet_feedback_vector_.clear(); | 144 packet_feedback_vector_.clear(); |
| 145 return fb; | 145 return fb; |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace bwe | 148 } // namespace bwe |
| 149 } // namespace testing | 149 } // namespace testing |
| 150 } // namespace webrtc | 150 } // namespace webrtc |
| OLD | NEW |