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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 latest_estimate_bps_(-1), | 70 latest_estimate_bps_(-1), |
71 last_feedback_ms_(-1), | 71 last_feedback_ms_(-1), |
72 estimator_(new RemoteBitrateEstimatorAbsSendTime( | 72 estimator_(new RemoteBitrateEstimatorAbsSendTime( |
73 this, | 73 this, |
74 &clock_, | 74 &clock_, |
75 kRemoteBitrateEstimatorMinBitrateBps)) { | 75 kRemoteBitrateEstimatorMinBitrateBps)) { |
76 std::stringstream ss; | 76 std::stringstream ss; |
77 ss << "Estimate_" << flow_id_ << "#1"; | 77 ss << "Estimate_" << flow_id_ << "#1"; |
78 estimate_log_prefix_ = ss.str(); | 78 estimate_log_prefix_ = ss.str(); |
79 // Default RTT in RemoteRateControl is 200 ms ; 50 ms is more realistic. | 79 // Default RTT in RemoteRateControl is 200 ms ; 50 ms is more realistic. |
80 estimator_->OnRttUpdate(50); | 80 estimator_->OnRttUpdate(50, 50); |
81 } | 81 } |
82 | 82 |
83 RembReceiver::~RembReceiver() { | 83 RembReceiver::~RembReceiver() { |
84 } | 84 } |
85 | 85 |
86 void RembReceiver::ReceivePacket(int64_t arrival_time_ms, | 86 void RembReceiver::ReceivePacket(int64_t arrival_time_ms, |
87 const MediaPacket& media_packet) { | 87 const MediaPacket& media_packet) { |
88 recv_stats_->IncomingPacket(media_packet.header(), | 88 recv_stats_->IncomingPacket(media_packet.header(), |
89 media_packet.payload_size(), false); | 89 media_packet.payload_size(), false); |
90 | 90 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 157 } |
158 latest_estimate_bps_ = bps; | 158 latest_estimate_bps_ = bps; |
159 } | 159 } |
160 *estimate_bps = latest_estimate_bps_; | 160 *estimate_bps = latest_estimate_bps_; |
161 return true; | 161 return true; |
162 } | 162 } |
163 | 163 |
164 } // namespace bwe | 164 } // namespace bwe |
165 } // namespace testing | 165 } // namespace testing |
166 } // namespace webrtc | 166 } // namespace webrtc |
OLD | NEW |