| 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 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int32_t Process() override { | 64 int32_t Process() override { |
| 65 CriticalSectionScoped cs(crit_sect_.get()); | 65 CriticalSectionScoped cs(crit_sect_.get()); |
| 66 return rbe_->Process(); | 66 return rbe_->Process(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 int64_t TimeUntilNextProcess() override { | 69 int64_t TimeUntilNextProcess() override { |
| 70 CriticalSectionScoped cs(crit_sect_.get()); | 70 CriticalSectionScoped cs(crit_sect_.get()); |
| 71 return rbe_->TimeUntilNextProcess(); | 71 return rbe_->TimeUntilNextProcess(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void OnRttUpdate(int64_t rtt) override { | 74 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override { |
| 75 CriticalSectionScoped cs(crit_sect_.get()); | 75 CriticalSectionScoped cs(crit_sect_.get()); |
| 76 rbe_->OnRttUpdate(rtt); | 76 rbe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void RemoveStream(unsigned int ssrc) override { | 79 void RemoveStream(unsigned int ssrc) override { |
| 80 CriticalSectionScoped cs(crit_sect_.get()); | 80 CriticalSectionScoped cs(crit_sect_.get()); |
| 81 rbe_->RemoveStream(ssrc); | 81 rbe_->RemoveStream(ssrc); |
| 82 } | 82 } |
| 83 | 83 |
| 84 bool LatestEstimate(std::vector<unsigned int>* ssrcs, | 84 bool LatestEstimate(std::vector<unsigned int>* ssrcs, |
| 85 unsigned int* bitrate_bps) const override { | 85 unsigned int* bitrate_bps) const override { |
| 86 CriticalSectionScoped cs(crit_sect_.get()); | 86 CriticalSectionScoped cs(crit_sect_.get()); |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 rtc::CritScope lock(&encoder_map_crit_); | 370 rtc::CritScope lock(&encoder_map_crit_); |
| 371 for (const auto& encoder : vie_encoder_map_) | 371 for (const auto& encoder : vie_encoder_map_) |
| 372 pad_up_to_bitrate_bps += encoder.second->GetPaddingNeededBps(); | 372 pad_up_to_bitrate_bps += encoder.second->GetPaddingNeededBps(); |
| 373 } | 373 } |
| 374 pacer_->UpdateBitrate( | 374 pacer_->UpdateBitrate( |
| 375 target_bitrate_bps / 1000, | 375 target_bitrate_bps / 1000, |
| 376 PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000, | 376 PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000, |
| 377 pad_up_to_bitrate_bps / 1000); | 377 pad_up_to_bitrate_bps / 1000); |
| 378 } | 378 } |
| 379 } // namespace webrtc | 379 } // namespace webrtc |
| OLD | NEW |