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

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

Issue 2688473004: RtpPacketReceiver base class and OnRtpPacket, with a pre-parsed RTP packet. (Closed)
Patch Set: Rename OnRTPPacket --> OnRtpPacket. Created 3 years, 10 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 VoEMediaProcess; 59 class VoEMediaProcess;
59 class VoERTPObserver; 60 class VoERTPObserver;
60 class VoiceEngineObserver; 61 class VoiceEngineObserver;
61 62
62 struct CallStatistics; 63 struct CallStatistics;
63 struct ReportBlock; 64 struct ReportBlock;
64 struct SenderInfo; 65 struct SenderInfo;
65 66
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 int SetOpusDtx(bool enable_dtx); 204 int SetOpusDtx(bool enable_dtx);
204 int GetOpusDtx(bool* enabled); 205 int GetOpusDtx(bool* enabled);
205 bool EnableAudioNetworkAdaptor(const std::string& config_string); 206 bool EnableAudioNetworkAdaptor(const std::string& config_string);
206 void DisableAudioNetworkAdaptor(); 207 void DisableAudioNetworkAdaptor();
207 void SetReceiverFrameLengthRange(int min_frame_length_ms, 208 void SetReceiverFrameLengthRange(int min_frame_length_ms,
208 int max_frame_length_ms); 209 int max_frame_length_ms);
209 210
210 // VoENetwork 211 // VoENetwork
211 int32_t RegisterExternalTransport(Transport* transport); 212 int32_t RegisterExternalTransport(Transport* transport);
212 int32_t DeRegisterExternalTransport(); 213 int32_t DeRegisterExternalTransport();
213 int32_t ReceivedRTPPacket(const uint8_t* received_packet, 214 int32_t OnRtpPacket(const RtpPacketReceived& packet);
214 size_t length,
215 const PacketTime& packet_time);
216 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length); 215 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length);
217 216
218 // VoEFile 217 // VoEFile
219 int StartPlayingFileLocally(const char* fileName, 218 int StartPlayingFileLocally(const char* fileName,
220 bool loop, 219 bool loop,
221 FileFormats format, 220 FileFormats format,
222 int startPosition, 221 int startPosition,
223 float volumeScaling, 222 float volumeScaling,
224 int stopPosition, 223 int stopPosition,
225 const CodecInst* codecInst); 224 const CodecInst* codecInst);
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; 553 std::unique_ptr<RateLimiter> retransmission_rate_limiter_;
555 554
556 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. 555 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed.
557 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 556 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
558 }; 557 };
559 558
560 } // namespace voe 559 } // namespace voe
561 } // namespace webrtc 560 } // namespace webrtc
562 561
563 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ 562 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698