| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 // From OverheadObserver in the RTP/RTCP module | 379 // From OverheadObserver in the RTP/RTCP module |
| 380 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; | 380 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; |
| 381 | 381 |
| 382 // Note: The existence of this function alongside OnUplinkPacketLossRate is | 382 // Note: The existence of this function alongside OnUplinkPacketLossRate is |
| 383 // a compromise. We want the encoder to be agnostic of the PLR source, but | 383 // a compromise. We want the encoder to be agnostic of the PLR source, but |
| 384 // we also don't want it to receive conflicting information from TWCC and | 384 // we also don't want it to receive conflicting information from TWCC and |
| 385 // from RTCP-XR. | 385 // from RTCP-XR. |
| 386 void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); | 386 void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); |
| 387 | 387 |
| 388 void OnRecoverableUplinkPacketLossRate(float recoverable_packet_loss_rate); |
| 389 |
| 388 protected: | 390 protected: |
| 389 void OnUplinkPacketLossRate(float packet_loss_rate); | 391 void OnUplinkPacketLossRate(float packet_loss_rate); |
| 390 | 392 |
| 391 private: | 393 private: |
| 392 bool InputMute() const; | 394 bool InputMute() const; |
| 393 bool OnRtpPacketWithHeader(const uint8_t* received_packet, | 395 bool OnRtpPacketWithHeader(const uint8_t* received_packet, |
| 394 size_t length, | 396 size_t length, |
| 395 RTPHeader *header); | 397 RTPHeader *header); |
| 396 bool ReceivePacket(const uint8_t* packet, | 398 bool ReceivePacket(const uint8_t* packet, |
| 397 size_t packet_length, | 399 size_t packet_length, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 518 |
| 517 rtc::ThreadChecker construction_thread_; | 519 rtc::ThreadChecker construction_thread_; |
| 518 | 520 |
| 519 const bool use_twcc_plr_for_ana_; | 521 const bool use_twcc_plr_for_ana_; |
| 520 }; | 522 }; |
| 521 | 523 |
| 522 } // namespace voe | 524 } // namespace voe |
| 523 } // namespace webrtc | 525 } // namespace webrtc |
| 524 | 526 |
| 525 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 527 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| OLD | NEW |