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

Side by Side Diff: media/cast/transport/rtp_sender/rtp_sender.h

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the interface to the cast RTP sender. 5 // This file contains the interface to the cast RTP sender.
6 6
7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // audio frames. Returns false if configuration is invalid. 44 // audio frames. Returns false if configuration is invalid.
45 bool InitializeAudio(const CastTransportAudioConfig& config); 45 bool InitializeAudio(const CastTransportAudioConfig& config);
46 46
47 // Initialize video stack. Video must be initialized prior to sending encoded 47 // Initialize video stack. Video must be initialized prior to sending encoded
48 // video frames. Returns false if configuration is invalid. 48 // video frames. Returns false if configuration is invalid.
49 bool InitializeVideo(const CastTransportVideoConfig& config); 49 bool InitializeVideo(const CastTransportVideoConfig& config);
50 50
51 void SendFrame(const EncodedFrame& frame); 51 void SendFrame(const EncodedFrame& frame);
52 52
53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets, 53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets,
54 bool cancel_rtx_if_not_in_list); 54 bool cancel_rtx_if_not_in_list,
55 base::TimeDelta dedupe_window);
55 56
56 size_t send_packet_count() const { 57 size_t send_packet_count() const {
57 return packetizer_ ? packetizer_->send_packet_count() : 0; 58 return packetizer_ ? packetizer_->send_packet_count() : 0;
58 } 59 }
59 size_t send_octet_count() const { 60 size_t send_octet_count() const {
60 return packetizer_ ? packetizer_->send_octet_count() : 0; 61 return packetizer_ ? packetizer_->send_octet_count() : 0;
61 } 62 }
62 uint32 ssrc() const { return config_.ssrc; } 63 uint32 ssrc() const { return config_.ssrc; }
63 64
64 private: 65 private:
(...skipping 10 matching lines...) Expand all
75 base::WeakPtrFactory<RtpSender> weak_factory_; 76 base::WeakPtrFactory<RtpSender> weak_factory_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(RtpSender); 78 DISALLOW_COPY_AND_ASSIGN(RtpSender);
78 }; 79 };
79 80
80 } // namespace transport 81 } // namespace transport
81 } // namespace cast 82 } // namespace cast
82 } // namespace media 83 } // namespace media
83 84
84 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 85 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/pacing/paced_sender_unittest.cc ('k') | media/cast/transport/rtp_sender/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698