OLD | NEW |
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 virtual ~RtcpBandwidthObserver() {} | 244 virtual ~RtcpBandwidthObserver() {} |
245 }; | 245 }; |
246 | 246 |
247 struct PacketInfo { | 247 struct PacketInfo { |
248 PacketInfo(int64_t arrival_time_ms, uint16_t sequence_number) | 248 PacketInfo(int64_t arrival_time_ms, uint16_t sequence_number) |
249 : PacketInfo(-1, | 249 : PacketInfo(-1, |
250 arrival_time_ms, | 250 arrival_time_ms, |
251 -1, | 251 -1, |
252 sequence_number, | 252 sequence_number, |
253 0, | 253 0, |
254 kNotAProbe) {} | 254 PacedPacketInfo::kNotAProbe) {} |
255 | 255 |
256 PacketInfo(int64_t arrival_time_ms, | 256 PacketInfo(int64_t arrival_time_ms, |
257 int64_t send_time_ms, | 257 int64_t send_time_ms, |
258 uint16_t sequence_number, | 258 uint16_t sequence_number, |
259 size_t payload_size, | 259 size_t payload_size, |
260 int probe_cluster_id) | 260 int probe_cluster_id) |
261 : PacketInfo(-1, | 261 : PacketInfo(-1, |
262 arrival_time_ms, | 262 arrival_time_ms, |
263 send_time_ms, | 263 send_time_ms, |
264 sequence_number, | 264 sequence_number, |
265 payload_size, | 265 payload_size, |
266 probe_cluster_id) {} | 266 probe_cluster_id) {} |
267 | 267 |
268 PacketInfo(int64_t creation_time_ms, | 268 PacketInfo(int64_t creation_time_ms, |
269 int64_t arrival_time_ms, | 269 int64_t arrival_time_ms, |
270 int64_t send_time_ms, | 270 int64_t send_time_ms, |
271 uint16_t sequence_number, | 271 uint16_t sequence_number, |
272 size_t payload_size, | 272 size_t payload_size, |
273 int probe_cluster_id) | 273 int probe_cluster_id) |
274 : creation_time_ms(creation_time_ms), | 274 : creation_time_ms(creation_time_ms), |
275 arrival_time_ms(arrival_time_ms), | 275 arrival_time_ms(arrival_time_ms), |
276 send_time_ms(send_time_ms), | 276 send_time_ms(send_time_ms), |
277 sequence_number(sequence_number), | 277 sequence_number(sequence_number), |
278 payload_size(payload_size), | 278 payload_size(payload_size), |
279 probe_cluster_id(probe_cluster_id) {} | 279 probe_cluster_id(probe_cluster_id) {} |
280 | 280 |
281 static constexpr int kNotAProbe = -1; | |
282 | |
283 // Time corresponding to when this object was created. | 281 // Time corresponding to when this object was created. |
284 int64_t creation_time_ms; | 282 int64_t creation_time_ms; |
285 // Time corresponding to when the packet was received. Timestamped with the | 283 // Time corresponding to when the packet was received. Timestamped with the |
286 // receiver's clock. | 284 // receiver's clock. |
287 int64_t arrival_time_ms; | 285 int64_t arrival_time_ms; |
288 // Time corresponding to when the packet was sent, timestamped with the | 286 // Time corresponding to when the packet was sent, timestamped with the |
289 // sender's clock. | 287 // sender's clock. |
290 int64_t send_time_ms; | 288 int64_t send_time_ms; |
291 // Packet identifier, incremented with 1 for every packet generated by the | 289 // Packet identifier, incremented with 1 for every packet generated by the |
292 // sender. | 290 // sender. |
293 uint16_t sequence_number; | 291 uint16_t sequence_number; |
294 // Size of the packet excluding RTP headers. | 292 // Size of the packet excluding RTP headers. |
295 size_t payload_size; | 293 size_t payload_size; |
296 // Which probing cluster this packets belongs to. | 294 // Which probing cluster this packets belongs to. |
| 295 // TODO(philipel): replace this with pacing information when it is available. |
297 int probe_cluster_id; | 296 int probe_cluster_id; |
298 }; | 297 }; |
299 | 298 |
300 class TransportFeedbackObserver { | 299 class TransportFeedbackObserver { |
301 public: | 300 public: |
302 TransportFeedbackObserver() {} | 301 TransportFeedbackObserver() {} |
303 virtual ~TransportFeedbackObserver() {} | 302 virtual ~TransportFeedbackObserver() {} |
304 | 303 |
305 // Note: Transport-wide sequence number as sequence number. Arrival time | 304 // Note: Transport-wide sequence number as sequence number. Arrival time |
306 // must be set to 0. | 305 // must be set to 0. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 class TransportSequenceNumberAllocator { | 393 class TransportSequenceNumberAllocator { |
395 public: | 394 public: |
396 TransportSequenceNumberAllocator() {} | 395 TransportSequenceNumberAllocator() {} |
397 virtual ~TransportSequenceNumberAllocator() {} | 396 virtual ~TransportSequenceNumberAllocator() {} |
398 | 397 |
399 virtual uint16_t AllocateSequenceNumber() = 0; | 398 virtual uint16_t AllocateSequenceNumber() = 0; |
400 }; | 399 }; |
401 | 400 |
402 } // namespace webrtc | 401 } // namespace webrtc |
403 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 402 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |