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

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

Issue 2886813002: Delete RtpData::OnRecoveredPacket, use RecoveredPacketReceiver instead. (Closed)
Patch Set: Comment nit. Created 3 years, 6 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/video/rtp_stream_receiver.cc ('k') | no next file » | 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 uint8_t payloadType, 309 uint8_t payloadType,
310 uint32_t timeStamp, 310 uint32_t timeStamp,
311 const uint8_t* payloadData, 311 const uint8_t* payloadData,
312 size_t payloadSize, 312 size_t payloadSize,
313 const RTPFragmentationHeader* fragmentation) override; 313 const RTPFragmentationHeader* fragmentation) override;
314 314
315 // From RtpData in the RTP/RTCP module 315 // From RtpData in the RTP/RTCP module
316 int32_t OnReceivedPayloadData(const uint8_t* payloadData, 316 int32_t OnReceivedPayloadData(const uint8_t* payloadData,
317 size_t payloadSize, 317 size_t payloadSize,
318 const WebRtcRTPHeader* rtpHeader) override; 318 const WebRtcRTPHeader* rtpHeader) override;
319 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override;
320 319
321 // From RtpFeedback in the RTP/RTCP module 320 // From RtpFeedback in the RTP/RTCP module
322 int32_t OnInitializeDecoder(int8_t payloadType, 321 int32_t OnInitializeDecoder(int8_t payloadType,
323 const char payloadName[RTP_PAYLOAD_NAME_SIZE], 322 const char payloadName[RTP_PAYLOAD_NAME_SIZE],
324 int frequency, 323 int frequency,
325 size_t channels, 324 size_t channels,
326 uint32_t rate) override; 325 uint32_t rate) override;
327 void OnIncomingSSRCChanged(uint32_t ssrc) override; 326 void OnIncomingSSRCChanged(uint32_t ssrc) override;
328 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override; 327 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override;
329 328
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 } 409 }
411 410
412 private: 411 private:
413 class ProcessAndEncodeAudioTask; 412 class ProcessAndEncodeAudioTask;
414 413
415 void OnUplinkPacketLossRate(float packet_loss_rate); 414 void OnUplinkPacketLossRate(float packet_loss_rate);
416 bool InputMute() const; 415 bool InputMute() const;
417 bool OnRtpPacketWithHeader(const uint8_t* received_packet, 416 bool OnRtpPacketWithHeader(const uint8_t* received_packet,
418 size_t length, 417 size_t length,
419 RTPHeader *header); 418 RTPHeader *header);
419 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length);
420
420 bool ReceivePacket(const uint8_t* packet, 421 bool ReceivePacket(const uint8_t* packet,
421 size_t packet_length, 422 size_t packet_length,
422 const RTPHeader& header, 423 const RTPHeader& header,
423 bool in_order); 424 bool in_order);
424 bool HandleRtxPacket(const uint8_t* packet, 425 bool HandleRtxPacket(const uint8_t* packet,
425 size_t packet_length, 426 size_t packet_length,
426 const RTPHeader& header); 427 const RTPHeader& header);
427 bool IsPacketInOrder(const RTPHeader& header) const; 428 bool IsPacketInOrder(const RTPHeader& header) const;
428 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; 429 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const;
429 int ResendPackets(const uint16_t* sequence_numbers, int length); 430 int ResendPackets(const uint16_t* sequence_numbers, int length);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 551
551 bool encoder_queue_is_active_ GUARDED_BY(encoder_queue_lock_) = false; 552 bool encoder_queue_is_active_ GUARDED_BY(encoder_queue_lock_) = false;
552 553
553 rtc::TaskQueue* encoder_queue_ = nullptr; 554 rtc::TaskQueue* encoder_queue_ = nullptr;
554 }; 555 };
555 556
556 } // namespace voe 557 } // namespace voe
557 } // namespace webrtc 558 } // namespace webrtc
558 559
559 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ 560 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/video/rtp_stream_receiver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698