Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/voice_engine/channel.h

Issue 2661043003: Allow ANA to receive RPLR (recoverable packet loss rate) indications (Closed)
Patch Set: CR respone Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698