| 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 15 matching lines...) Expand all Loading... |
| 26 #include "webrtc/modules/audio_processing/rms_level.h" | 26 #include "webrtc/modules/audio_processing/rms_level.h" |
| 27 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" | 27 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" |
| 28 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 28 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| 29 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 29 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
| 30 #include "webrtc/voice_engine/audio_level.h" | 30 #include "webrtc/voice_engine/audio_level.h" |
| 31 #include "webrtc/voice_engine/file_player.h" | 31 #include "webrtc/voice_engine/file_player.h" |
| 32 #include "webrtc/voice_engine/file_recorder.h" | 32 #include "webrtc/voice_engine/file_recorder.h" |
| 33 #include "webrtc/voice_engine/include/voe_base.h" | 33 #include "webrtc/voice_engine/include/voe_base.h" |
| 34 #include "webrtc/voice_engine/include/voe_network.h" | 34 #include "webrtc/voice_engine/include/voe_network.h" |
| 35 #include "webrtc/voice_engine/shared_data.h" | 35 #include "webrtc/voice_engine/shared_data.h" |
| 36 #include "webrtc/voice_engine/transport_feedback_packet_loss_tracker.h" |
| 36 #include "webrtc/voice_engine/voice_engine_defines.h" | 37 #include "webrtc/voice_engine/voice_engine_defines.h" |
| 37 | 38 |
| 38 namespace rtc { | 39 namespace rtc { |
| 39 class TimestampWrapAroundHandler; | 40 class TimestampWrapAroundHandler; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace webrtc { | 43 namespace webrtc { |
| 43 | 44 |
| 44 class AudioDeviceModule; | 45 class AudioDeviceModule; |
| 45 class FileWrapper; | 46 class FileWrapper; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 | 370 |
| 370 // Set a RtcEventLog logging object. | 371 // Set a RtcEventLog logging object. |
| 371 void SetRtcEventLog(RtcEventLog* event_log); | 372 void SetRtcEventLog(RtcEventLog* event_log); |
| 372 | 373 |
| 373 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | 374 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
| 374 void SetTransportOverhead(size_t transport_overhead_per_packet); | 375 void SetTransportOverhead(size_t transport_overhead_per_packet); |
| 375 | 376 |
| 376 // From OverheadObserver in the RTP/RTCP module | 377 // From OverheadObserver in the RTP/RTCP module |
| 377 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; | 378 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; |
| 378 | 379 |
| 380 // Note: The existence of this function alongside OnUplinkPacketLossRate is |
| 381 // a compromise. We want the encoder to be agnostic of the PLR source, but |
| 382 // we also don't want it to receive conflicting information from TWCC and |
| 383 // from RTCP-XR. |
| 384 void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); |
| 385 |
| 379 protected: | 386 protected: |
| 380 void OnIncomingFractionLoss(int fraction_lost); | 387 void OnUplinkPacketLossRate(float packet_loss_rate); |
| 381 | 388 |
| 382 private: | 389 private: |
| 383 bool InputMute() const; | 390 bool InputMute() const; |
| 384 bool OnRtpPacketWithHeader(const uint8_t* received_packet, | 391 bool OnRtpPacketWithHeader(const uint8_t* received_packet, |
| 385 size_t length, | 392 size_t length, |
| 386 RTPHeader *header); | 393 RTPHeader *header); |
| 387 bool ReceivePacket(const uint8_t* packet, | 394 bool ReceivePacket(const uint8_t* packet, |
| 388 size_t packet_length, | 395 size_t packet_length, |
| 389 const RTPHeader& header, | 396 const RTPHeader& header, |
| 390 bool in_order); | 397 bool in_order); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 504 |
| 498 bool pacing_enabled_; | 505 bool pacing_enabled_; |
| 499 PacketRouter* packet_router_ = nullptr; | 506 PacketRouter* packet_router_ = nullptr; |
| 500 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; | 507 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; |
| 501 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; | 508 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; |
| 502 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; | 509 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; |
| 503 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 510 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
| 504 | 511 |
| 505 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 512 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
| 506 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 513 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 514 |
| 515 const bool use_twcc_plr_for_ana_; |
| 507 }; | 516 }; |
| 508 | 517 |
| 509 } // namespace voe | 518 } // namespace voe |
| 510 } // namespace webrtc | 519 } // namespace webrtc |
| 511 | 520 |
| 512 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 521 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| OLD | NEW |