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

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h

Issue 2112643005: Remove audio/video distinction for probe packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@52
Patch Set: rebase errors Created 4 years, 5 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 /* 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 virtual void OnReceivedRtcpReceiverReport( 238 virtual void OnReceivedRtcpReceiverReport(
239 const ReportBlockList& report_blocks, 239 const ReportBlockList& report_blocks,
240 int64_t rtt, 240 int64_t rtt,
241 int64_t now_ms) = 0; 241 int64_t now_ms) = 0;
242 242
243 virtual ~RtcpBandwidthObserver() {} 243 virtual ~RtcpBandwidthObserver() {}
244 }; 244 };
245 245
246 struct PacketInfo { 246 struct PacketInfo {
247 PacketInfo(int64_t arrival_time_ms, uint16_t sequence_number) 247 PacketInfo(int64_t arrival_time_ms, uint16_t sequence_number)
248 : PacketInfo(-1, arrival_time_ms, -1, sequence_number, 0, false) {} 248 : PacketInfo(-1, arrival_time_ms, -1, sequence_number, 0) {}
249 249
250 PacketInfo(int64_t arrival_time_ms, 250 PacketInfo(int64_t arrival_time_ms,
251 int64_t send_time_ms, 251 int64_t send_time_ms,
252 uint16_t sequence_number, 252 uint16_t sequence_number,
253 size_t payload_size, 253 size_t payload_size)
254 bool was_paced)
255 : PacketInfo(-1, 254 : PacketInfo(-1,
256 arrival_time_ms, 255 arrival_time_ms,
257 send_time_ms, 256 send_time_ms,
258 sequence_number, 257 sequence_number,
259 payload_size, 258 payload_size) {}
260 was_paced) {}
261 259
262 PacketInfo(int64_t creation_time_ms, 260 PacketInfo(int64_t creation_time_ms,
263 int64_t arrival_time_ms, 261 int64_t arrival_time_ms,
264 int64_t send_time_ms, 262 int64_t send_time_ms,
265 uint16_t sequence_number, 263 uint16_t sequence_number,
266 size_t payload_size, 264 size_t payload_size)
267 bool was_paced)
268 : creation_time_ms(creation_time_ms), 265 : creation_time_ms(creation_time_ms),
269 arrival_time_ms(arrival_time_ms), 266 arrival_time_ms(arrival_time_ms),
270 send_time_ms(send_time_ms), 267 send_time_ms(send_time_ms),
271 sequence_number(sequence_number), 268 sequence_number(sequence_number),
272 payload_size(payload_size), 269 payload_size(payload_size) {}
273 was_paced(was_paced) {}
274 270
275 // Time corresponding to when this object was created. 271 // Time corresponding to when this object was created.
276 int64_t creation_time_ms; 272 int64_t creation_time_ms;
277 // Time corresponding to when the packet was received. Timestamped with the 273 // Time corresponding to when the packet was received. Timestamped with the
278 // receiver's clock. 274 // receiver's clock.
279 int64_t arrival_time_ms; 275 int64_t arrival_time_ms;
280 // Time corresponding to when the packet was sent, timestamped with the 276 // Time corresponding to when the packet was sent, timestamped with the
281 // sender's clock. 277 // sender's clock.
282 int64_t send_time_ms; 278 int64_t send_time_ms;
283 // Packet identifier, incremented with 1 for every packet generated by the 279 // Packet identifier, incremented with 1 for every packet generated by the
284 // sender. 280 // sender.
285 uint16_t sequence_number; 281 uint16_t sequence_number;
286 // Size of the packet excluding RTP headers. 282 // Size of the packet excluding RTP headers.
287 size_t payload_size; 283 size_t payload_size;
288 // True if the packet was paced out by the pacer.
289 bool was_paced;
290 }; 284 };
291 285
292 class TransportFeedbackObserver { 286 class TransportFeedbackObserver {
293 public: 287 public:
294 TransportFeedbackObserver() {} 288 TransportFeedbackObserver() {}
295 virtual ~TransportFeedbackObserver() {} 289 virtual ~TransportFeedbackObserver() {}
296 290
297 // Note: Transport-wide sequence number as sequence number. Arrival time 291 // Note: Transport-wide sequence number as sequence number. Arrival time
298 // must be set to 0. 292 // must be set to 0.
299 virtual void AddPacket(uint16_t sequence_number, 293 virtual void AddPacket(uint16_t sequence_number, size_t length) = 0;
300 size_t length,
301 bool was_paced) = 0;
302 294
303 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; 295 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0;
304 }; 296 };
305 297
306 class RtcpRttStats { 298 class RtcpRttStats {
307 public: 299 public:
308 virtual void OnRttUpdate(int64_t rtt) = 0; 300 virtual void OnRttUpdate(int64_t rtt) = 0;
309 301
310 virtual int64_t LastProcessedRtt() const = 0; 302 virtual int64_t LastProcessedRtt() const = 0;
311 303
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 class TransportSequenceNumberAllocator { 376 class TransportSequenceNumberAllocator {
385 public: 377 public:
386 TransportSequenceNumberAllocator() {} 378 TransportSequenceNumberAllocator() {}
387 virtual ~TransportSequenceNumberAllocator() {} 379 virtual ~TransportSequenceNumberAllocator() {}
388 380
389 virtual uint16_t AllocateSequenceNumber() = 0; 381 virtual uint16_t AllocateSequenceNumber() = 0;
390 }; 382 };
391 383
392 } // namespace webrtc 384 } // namespace webrtc
393 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ 385 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698