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: media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h

Issue 248493002: Cast: Deduplicate packets in paced sender and always send older packets first (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upping to trick build system Created 6 years, 8 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 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
6 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ 6 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 int send_packets_count() { return send_packets_count_; } 78 int send_packets_count() { return send_packets_count_; }
79 79
80 size_t send_octet_count() { return send_octet_count_; } 80 size_t send_octet_count() { return send_octet_count_; }
81 81
82 private: 82 private:
83 void Cast(bool is_key, 83 void Cast(bool is_key,
84 uint32 frame_id, 84 uint32 frame_id,
85 uint32 reference_frame_id, 85 uint32 reference_frame_id,
86 uint32 timestamp, 86 uint32 timestamp,
87 const std::string& data); 87 const std::string& data,
88 const base::TimeTicks& capture_time);
88 89
89 void BuildCommonRTPheader(Packet* packet, bool marker_bit, uint32 time_stamp); 90 void BuildCommonRTPheader(Packet* packet, bool marker_bit, uint32 time_stamp);
90 91
91 RtpPacketizerConfig config_; 92 RtpPacketizerConfig config_;
92 PacedSender* const transport_; // Not owned by this class. 93 PacedSender* const transport_; // Not owned by this class.
93 PacketStorage* packet_storage_; 94 PacketStorage* packet_storage_;
94 base::TickClock* const clock_; // Not owned by this class. 95 base::TickClock* const clock_; // Not owned by this class.
95 LoggingImpl* const logging_; // Not owned by this class. 96 LoggingImpl* const logging_; // Not owned by this class.
96 97
97 base::TimeTicks time_last_sent_rtp_timestamp_; 98 base::TimeTicks time_last_sent_rtp_timestamp_;
98 uint16 sequence_number_; 99 uint16 sequence_number_;
99 uint32 rtp_timestamp_; 100 uint32 rtp_timestamp_;
100 uint16 packet_id_; 101 uint16 packet_id_;
101 102
102 int send_packets_count_; 103 int send_packets_count_;
103 size_t send_octet_count_; 104 size_t send_octet_count_;
104 }; 105 };
105 106
106 } // namespace transport 107 } // namespace transport
107 } // namespace cast 108 } // namespace cast
108 } // namespace media 109 } // namespace media
109 110
110 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_ 111 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698