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

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

Issue 2661043003: Allow ANA to receive RPLR (recoverable packet loss rate) indications (Closed)
Patch Set: Uncomment thread-checker to fix UT 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
« no previous file with comments | « webrtc/test/mock_voe_channel_proxy.h ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « webrtc/test/mock_voe_channel_proxy.h ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698