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

Side by Side Diff: media/cast/net/cast_transport_config.h

Issue 493823002: Implement adaptive target delay extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: explicit masking Created 6 years, 4 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 | « media/cast/cast_sender_impl.cc ('k') | media/cast/net/cast_transport_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NET_CAST_TRANSPORT_CONFIG_H_ 5 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // The common reference clock timestamp for this frame. This value originates 111 // The common reference clock timestamp for this frame. This value originates
112 // from a sender and is used to provide lip synchronization between streams in 112 // from a sender and is used to provide lip synchronization between streams in
113 // a receiver. Thus, in the sender context, this is set to the time at which 113 // a receiver. Thus, in the sender context, this is set to the time at which
114 // the frame was captured/recorded. In the receiver context, this is set to 114 // the frame was captured/recorded. In the receiver context, this is set to
115 // the target playout time. Over a sequence of frames, this time value is 115 // the target playout time. Over a sequence of frames, this time value is
116 // expected to drift with respect to the elapsed time implied by the RTP 116 // expected to drift with respect to the elapsed time implied by the RTP
117 // timestamps; and it may not necessarily increment with precise regularity. 117 // timestamps; and it may not necessarily increment with precise regularity.
118 base::TimeTicks reference_time; 118 base::TimeTicks reference_time;
119 119
120 // Playout delay for this and all future frames. Used by the Adaptive
121 // Playout delay extension. Zero means no change.
122 uint16 new_playout_delay_ms;
123
120 // The encoded signal data. 124 // The encoded signal data.
121 std::string data; 125 std::string data;
122 }; 126 };
123 127
124 typedef std::vector<uint8> Packet; 128 typedef std::vector<uint8> Packet;
125 typedef scoped_refptr<base::RefCountedData<Packet> > PacketRef; 129 typedef scoped_refptr<base::RefCountedData<Packet> > PacketRef;
126 typedef std::vector<PacketRef> PacketList; 130 typedef std::vector<PacketRef> PacketList;
127 131
128 typedef base::Callback<void(scoped_ptr<Packet> packet)> PacketReceiverCallback; 132 typedef base::Callback<void(scoped_ptr<Packet> packet)> PacketReceiverCallback;
129 133
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 lhs.ntp_fraction == rhs.ntp_fraction && 183 lhs.ntp_fraction == rhs.ntp_fraction &&
180 lhs.rtp_timestamp == rhs.rtp_timestamp && 184 lhs.rtp_timestamp == rhs.rtp_timestamp &&
181 lhs.send_packet_count == rhs.send_packet_count && 185 lhs.send_packet_count == rhs.send_packet_count &&
182 lhs.send_octet_count == rhs.send_octet_count; 186 lhs.send_octet_count == rhs.send_octet_count;
183 } 187 }
184 188
185 } // namespace cast 189 } // namespace cast
186 } // namespace media 190 } // namespace media
187 191
188 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 192 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
OLDNEW
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/net/cast_transport_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698