| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class FileWrapper; | 46 class FileWrapper; |
| 47 class PacketRouter; | 47 class PacketRouter; |
| 48 class ProcessThread; | 48 class ProcessThread; |
| 49 class RateLimiter; | 49 class RateLimiter; |
| 50 class ReceiveStatistics; | 50 class ReceiveStatistics; |
| 51 class RemoteNtpTimeEstimator; | 51 class RemoteNtpTimeEstimator; |
| 52 class RtcEventLog; | 52 class RtcEventLog; |
| 53 class RTPPayloadRegistry; | 53 class RTPPayloadRegistry; |
| 54 class RtpReceiver; | 54 class RtpReceiver; |
| 55 class RTPReceiverAudio; | 55 class RTPReceiverAudio; |
| 56 class RtpPacketReceived; |
| 56 class RtpRtcp; | 57 class RtpRtcp; |
| 57 class TelephoneEventHandler; | 58 class TelephoneEventHandler; |
| 58 class VoERTPObserver; | 59 class VoERTPObserver; |
| 59 class VoiceEngineObserver; | 60 class VoiceEngineObserver; |
| 60 | 61 |
| 61 struct CallStatistics; | 62 struct CallStatistics; |
| 62 struct ReportBlock; | 63 struct ReportBlock; |
| 63 struct SenderInfo; | 64 struct SenderInfo; |
| 64 | 65 |
| 65 namespace voe { | 66 namespace voe { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void DisableAudioNetworkAdaptor(); | 198 void DisableAudioNetworkAdaptor(); |
| 198 void SetReceiverFrameLengthRange(int min_frame_length_ms, | 199 void SetReceiverFrameLengthRange(int min_frame_length_ms, |
| 199 int max_frame_length_ms); | 200 int max_frame_length_ms); |
| 200 | 201 |
| 201 // VoENetwork | 202 // VoENetwork |
| 202 int32_t RegisterExternalTransport(Transport* transport); | 203 int32_t RegisterExternalTransport(Transport* transport); |
| 203 int32_t DeRegisterExternalTransport(); | 204 int32_t DeRegisterExternalTransport(); |
| 204 int32_t ReceivedRTPPacket(const uint8_t* received_packet, | 205 int32_t ReceivedRTPPacket(const uint8_t* received_packet, |
| 205 size_t length, | 206 size_t length, |
| 206 const PacketTime& packet_time); | 207 const PacketTime& packet_time); |
| 208 // TODO(nisse, solenberg): Delete when VoENetwork is deleted. |
| 207 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length); | 209 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length); |
| 210 void OnRtpPacket(const RtpPacketReceived& packet); |
| 208 | 211 |
| 209 // VoEFile | 212 // VoEFile |
| 210 int StartPlayingFileLocally(const char* fileName, | 213 int StartPlayingFileLocally(const char* fileName, |
| 211 bool loop, | 214 bool loop, |
| 212 FileFormats format, | 215 FileFormats format, |
| 213 int startPosition, | 216 int startPosition, |
| 214 float volumeScaling, | 217 float volumeScaling, |
| 215 int stopPosition, | 218 int stopPosition, |
| 216 const CodecInst* codecInst); | 219 const CodecInst* codecInst); |
| 217 int StartPlayingFileLocally(InStream* stream, | 220 int StartPlayingFileLocally(InStream* stream, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | 394 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
| 392 void SetTransportOverhead(size_t transport_overhead_per_packet); | 395 void SetTransportOverhead(size_t transport_overhead_per_packet); |
| 393 | 396 |
| 394 // From OverheadObserver in the RTP/RTCP module | 397 // From OverheadObserver in the RTP/RTCP module |
| 395 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; | 398 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; |
| 396 | 399 |
| 397 protected: | 400 protected: |
| 398 void OnIncomingFractionLoss(int fraction_lost); | 401 void OnIncomingFractionLoss(int fraction_lost); |
| 399 | 402 |
| 400 private: | 403 private: |
| 404 bool OnRtpPacketWithHeader(const uint8_t* received_packet, |
| 405 size_t length, |
| 406 RTPHeader *header); |
| 401 bool ReceivePacket(const uint8_t* packet, | 407 bool ReceivePacket(const uint8_t* packet, |
| 402 size_t packet_length, | 408 size_t packet_length, |
| 403 const RTPHeader& header, | 409 const RTPHeader& header, |
| 404 bool in_order); | 410 bool in_order); |
| 405 bool HandleRtxPacket(const uint8_t* packet, | 411 bool HandleRtxPacket(const uint8_t* packet, |
| 406 size_t packet_length, | 412 size_t packet_length, |
| 407 const RTPHeader& header); | 413 const RTPHeader& header); |
| 408 bool IsPacketInOrder(const RTPHeader& header) const; | 414 bool IsPacketInOrder(const RTPHeader& header) const; |
| 409 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; | 415 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; |
| 410 int ResendPackets(const uint16_t* sequence_numbers, int length); | 416 int ResendPackets(const uint16_t* sequence_numbers, int length); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 526 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
| 521 | 527 |
| 522 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 528 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
| 523 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 529 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 524 }; | 530 }; |
| 525 | 531 |
| 526 } // namespace voe | 532 } // namespace voe |
| 527 } // namespace webrtc | 533 } // namespace webrtc |
| 528 | 534 |
| 529 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 535 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| OLD | NEW |