| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 media_packet->set_send_time_us(1000 * pace_out_time_ms); | 292 media_packet->set_send_time_us(1000 * pace_out_time_ms); |
| 293 media_packet->set_sender_timestamp_us(1000 * pace_out_time_ms); | 293 media_packet->set_sender_timestamp_us(1000 * pace_out_time_ms); |
| 294 queue_.push_back(media_packet); | 294 queue_.push_back(media_packet); |
| 295 pacer_queue_.erase(it); | 295 pacer_queue_.erase(it); |
| 296 return true; | 296 return true; |
| 297 } | 297 } |
| 298 } | 298 } |
| 299 return false; | 299 return false; |
| 300 } | 300 } |
| 301 | 301 |
| 302 size_t PacedVideoSender::TimeToSendPadding(size_t bytes) { | 302 size_t PacedVideoSender::TimeToSendPadding(size_t bytes, int probe_cluster_id) { |
| 303 return 0; | 303 return 0; |
| 304 } | 304 } |
| 305 | 305 |
| 306 void PacedVideoSender::OnNetworkChanged(uint32_t target_bitrate_bps, | 306 void PacedVideoSender::OnNetworkChanged(uint32_t target_bitrate_bps, |
| 307 uint8_t fraction_lost, | 307 uint8_t fraction_lost, |
| 308 int64_t rtt) { | 308 int64_t rtt) { |
| 309 VideoSender::OnNetworkChanged(target_bitrate_bps, fraction_lost, rtt); | 309 VideoSender::OnNetworkChanged(target_bitrate_bps, fraction_lost, rtt); |
| 310 pacer_.SetEstimatedBitrate(target_bitrate_bps); | 310 pacer_.SetEstimatedBitrate(target_bitrate_bps); |
| 311 } | 311 } |
| 312 | 312 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 RecordBitrate(); | 480 RecordBitrate(); |
| 481 } | 481 } |
| 482 | 482 |
| 483 uint32_t TcpSender::TargetBitrateKbps() { | 483 uint32_t TcpSender::TargetBitrateKbps() { |
| 484 return bitrate_kbps_; | 484 return bitrate_kbps_; |
| 485 } | 485 } |
| 486 | 486 |
| 487 } // namespace bwe | 487 } // namespace bwe |
| 488 } // namespace testing | 488 } // namespace testing |
| 489 } // namespace webrtc | 489 } // namespace webrtc |
| OLD | NEW |