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

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

Issue 1329083005: Add TransportFeedback adapter, adapting remote feedback to bwe estiamtor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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
11 #ifndef WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_
12 #define WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_
13 13
14 #include <stddef.h> 14 #include <stddef.h>
15 #include <list> 15 #include <list>
16 16
17 #include "webrtc/modules/interface/module_common_types.h" 17 #include "webrtc/modules/interface/module_common_types.h"
18 #include "webrtc/system_wrappers/interface/clock.h" 18 #include "webrtc/system_wrappers/interface/clock.h"
19 #include "webrtc/typedefs.h" 19 #include "webrtc/typedefs.h"
20 20
21 #define RTCP_CNAME_SIZE 256 // RFC 3550 page 44, including null termination 21 #define RTCP_CNAME_SIZE 256 // RFC 3550 page 44, including null termination
22 #define IP_PACKET_SIZE 1500 // we assume ethernet 22 #define IP_PACKET_SIZE 1500 // we assume ethernet
23 #define MAX_NUMBER_OF_PARALLEL_TELEPHONE_EVENTS 10 23 #define MAX_NUMBER_OF_PARALLEL_TELEPHONE_EVENTS 10
24 #define TIMEOUT_SEI_MESSAGES_MS 30000 // in milliseconds 24 #define TIMEOUT_SEI_MESSAGES_MS 30000 // in milliseconds
25 25
26 namespace webrtc { 26 namespace webrtc {
27 namespace rtcp {
28 class TransportFeedback;
29 }
27 30
28 const int kVideoPayloadTypeFrequency = 90000; 31 const int kVideoPayloadTypeFrequency = 90000;
29 32
30 // Minimum RTP header size in bytes. 33 // Minimum RTP header size in bytes.
31 const uint8_t kRtpHeaderSize = 12; 34 const uint8_t kRtpHeaderSize = 12;
32 35
33 struct AudioPayload 36 struct AudioPayload
34 { 37 {
35 uint32_t frequency; 38 uint32_t frequency;
36 uint8_t channels; 39 uint8_t channels;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 virtual void OnReceivedEstimatedBitrate(uint32_t bitrate) = 0; 289 virtual void OnReceivedEstimatedBitrate(uint32_t bitrate) = 0;
287 290
288 virtual void OnReceivedRtcpReceiverReport( 291 virtual void OnReceivedRtcpReceiverReport(
289 const ReportBlockList& report_blocks, 292 const ReportBlockList& report_blocks,
290 int64_t rtt, 293 int64_t rtt,
291 int64_t now_ms) = 0; 294 int64_t now_ms) = 0;
292 295
293 virtual ~RtcpBandwidthObserver() {} 296 virtual ~RtcpBandwidthObserver() {}
294 }; 297 };
295 298
296 class SendTimeObserver { 299 class TransportFeedbackObserver {
297 public: 300 public:
298 SendTimeObserver() {} 301 TransportFeedbackObserver() {}
299 virtual ~SendTimeObserver() {} 302 virtual ~TransportFeedbackObserver() {}
300 303
301 // Transport-wide sequence number and timestamp (system time in milliseconds), 304 // Transport-wide sequence number and timestamp (system time in milliseconds),
302 // of when the packet was put on the wire. 305 // of when the packet was put on the wire, size of packet in bytes, and
306 // whether the packet was sent through the paced sender or not.
303 virtual void OnPacketSent(uint16_t transport_sequence_number, 307 virtual void OnPacketSent(uint16_t transport_sequence_number,
304 int64_t send_time) = 0; 308 int64_t send_time,
309 size_t size,
310 bool was_paced) = 0;
311
312 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0;
305 }; 313 };
306 314
307 class RtcpRttStats { 315 class RtcpRttStats {
308 public: 316 public:
309 virtual void OnRttUpdate(int64_t rtt) = 0; 317 virtual void OnRttUpdate(int64_t rtt) = 0;
310 318
311 virtual int64_t LastProcessedRtt() const = 0; 319 virtual int64_t LastProcessedRtt() const = 0;
312 320
313 virtual ~RtcpRttStats() {}; 321 virtual ~RtcpRttStats() {};
314 }; 322 };
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 uint64_t single_packet_loss_count; 377 uint64_t single_packet_loss_count;
370 // The number of events in which more than one adjacent packet was lost. 378 // The number of events in which more than one adjacent packet was lost.
371 uint64_t multiple_packet_loss_event_count; 379 uint64_t multiple_packet_loss_event_count;
372 // The number of packets lost in events where more than one adjacent packet 380 // The number of packets lost in events where more than one adjacent packet
373 // was lost. 381 // was lost.
374 uint64_t multiple_packet_loss_packet_count; 382 uint64_t multiple_packet_loss_packet_count;
375 }; 383 };
376 384
377 } // namespace webrtc 385 } // namespace webrtc
378 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ 386 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698