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