| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void VCMReceiver::ReleaseFrame(VCMEncodedFrame* frame) { | 232 void VCMReceiver::ReleaseFrame(VCMEncodedFrame* frame) { |
| 233 jitter_buffer_.ReleaseFrame(frame); | 233 jitter_buffer_.ReleaseFrame(frame); |
| 234 } | 234 } |
| 235 | 235 |
| 236 void VCMReceiver::ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate) { | 236 void VCMReceiver::ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate) { |
| 237 assert(bitrate); | 237 assert(bitrate); |
| 238 assert(framerate); | 238 assert(framerate); |
| 239 jitter_buffer_.IncomingRateStatistics(framerate, bitrate); | 239 jitter_buffer_.IncomingRateStatistics(framerate, bitrate); |
| 240 } | 240 } |
| 241 | 241 |
| 242 uint32_t VCMReceiver::DiscardedPackets() const { | |
| 243 return jitter_buffer_.num_discarded_packets(); | |
| 244 } | |
| 245 | |
| 246 void VCMReceiver::SetNackMode(VCMNackMode nackMode, | 242 void VCMReceiver::SetNackMode(VCMNackMode nackMode, |
| 247 int64_t low_rtt_nack_threshold_ms, | 243 int64_t low_rtt_nack_threshold_ms, |
| 248 int64_t high_rtt_nack_threshold_ms) { | 244 int64_t high_rtt_nack_threshold_ms) { |
| 249 CriticalSectionScoped cs(crit_sect_); | 245 CriticalSectionScoped cs(crit_sect_); |
| 250 // Default to always having NACK enabled in hybrid mode. | 246 // Default to always having NACK enabled in hybrid mode. |
| 251 jitter_buffer_.SetNackMode(nackMode, low_rtt_nack_threshold_ms, | 247 jitter_buffer_.SetNackMode(nackMode, low_rtt_nack_threshold_ms, |
| 252 high_rtt_nack_threshold_ms); | 248 high_rtt_nack_threshold_ms); |
| 253 } | 249 } |
| 254 | 250 |
| 255 void VCMReceiver::SetNackSettings(size_t max_nack_list_size, | 251 void VCMReceiver::SetNackSettings(size_t max_nack_list_size, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 286 timing_->set_min_playout_delay(desired_delay_ms); | 282 timing_->set_min_playout_delay(desired_delay_ms); |
| 287 return 0; | 283 return 0; |
| 288 } | 284 } |
| 289 | 285 |
| 290 void VCMReceiver::RegisterStatsCallback( | 286 void VCMReceiver::RegisterStatsCallback( |
| 291 VCMReceiveStatisticsCallback* callback) { | 287 VCMReceiveStatisticsCallback* callback) { |
| 292 jitter_buffer_.RegisterStatsCallback(callback); | 288 jitter_buffer_.RegisterStatsCallback(callback); |
| 293 } | 289 } |
| 294 | 290 |
| 295 } // namespace webrtc | 291 } // namespace webrtc |
| OLD | NEW |