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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 kRtpNoRtp = 1, | 58 kRtpNoRtp = 1, |
59 kRtpAlive = 2 | 59 kRtpAlive = 2 |
60 }; | 60 }; |
61 | 61 |
62 enum ProtectionType { | 62 enum ProtectionType { |
63 kUnprotectedPacket, | 63 kUnprotectedPacket, |
64 kProtectedPacket | 64 kProtectedPacket |
65 }; | 65 }; |
66 | 66 |
67 enum StorageType { | 67 enum StorageType { |
68 kDontStore, | |
69 kDontRetransmit, | 68 kDontRetransmit, |
70 kAllowRetransmission | 69 kAllowRetransmission |
71 }; | 70 }; |
72 | 71 |
73 enum RTPExtensionType { | 72 enum RTPExtensionType { |
74 kRtpExtensionNone, | 73 kRtpExtensionNone, |
75 kRtpExtensionTransmissionTimeOffset, | 74 kRtpExtensionTransmissionTimeOffset, |
76 kRtpExtensionAudioLevel, | 75 kRtpExtensionAudioLevel, |
77 kRtpExtensionAbsoluteSendTime, | 76 kRtpExtensionAbsoluteSendTime, |
78 kRtpExtensionVideoRotation, | 77 kRtpExtensionVideoRotation, |
(...skipping 22 matching lines...) Expand all Loading... |
101 kRtcpApp = 0x1000, | 100 kRtcpApp = 0x1000, |
102 kRtcpSli = 0x4000, | 101 kRtcpSli = 0x4000, |
103 kRtcpRpsi = 0x8000, | 102 kRtcpRpsi = 0x8000, |
104 kRtcpRemb = 0x10000, | 103 kRtcpRemb = 0x10000, |
105 kRtcpTransmissionTimeOffset = 0x20000, | 104 kRtcpTransmissionTimeOffset = 0x20000, |
106 kRtcpXrReceiverReferenceTime = 0x40000, | 105 kRtcpXrReceiverReferenceTime = 0x40000, |
107 kRtcpXrDlrrReportBlock = 0x80000, | 106 kRtcpXrDlrrReportBlock = 0x80000, |
108 kRtcpTransportFeedback = 0x100000, | 107 kRtcpTransportFeedback = 0x100000, |
109 }; | 108 }; |
110 | 109 |
111 enum KeyFrameRequestMethod | 110 enum KeyFrameRequestMethod { kKeyFrameReqPliRtcp, kKeyFrameReqFirRtcp }; |
112 { | |
113 kKeyFrameReqFirRtp = 1, | |
114 kKeyFrameReqPliRtcp = 2, | |
115 kKeyFrameReqFirRtcp = 3 | |
116 }; | |
117 | 111 |
118 enum RtpRtcpPacketType | 112 enum RtpRtcpPacketType |
119 { | 113 { |
120 kPacketRtp = 0, | 114 kPacketRtp = 0, |
121 kPacketKeepAlive = 1 | 115 kPacketKeepAlive = 1 |
122 }; | 116 }; |
123 | 117 |
124 enum NACKMethod | 118 enum NACKMethod |
125 { | 119 { |
126 kNackOff = 0, | 120 kNackOff = 0, |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 enum Priority { | 391 enum Priority { |
398 kHighPriority = 0, // Pass through; will be sent immediately. | 392 kHighPriority = 0, // Pass through; will be sent immediately. |
399 kNormalPriority = 2, // Put in back of the line. | 393 kNormalPriority = 2, // Put in back of the line. |
400 kLowPriority = 3, // Put in back of the low priority line. | 394 kLowPriority = 3, // Put in back of the low priority line. |
401 }; | 395 }; |
402 // Low priority packets are mixed with the normal priority packets | 396 // Low priority packets are mixed with the normal priority packets |
403 // while we are paused. | 397 // while we are paused. |
404 | 398 |
405 // Returns true if we send the packet now, else it will add the packet | 399 // Returns true if we send the packet now, else it will add the packet |
406 // information to the queue and call TimeToSendPacket when it's time to send. | 400 // information to the queue and call TimeToSendPacket when it's time to send. |
407 virtual bool SendPacket(Priority priority, | 401 virtual void InsertPacket(Priority priority, |
408 uint32_t ssrc, | 402 uint32_t ssrc, |
409 uint16_t sequence_number, | 403 uint16_t sequence_number, |
410 int64_t capture_time_ms, | 404 int64_t capture_time_ms, |
411 size_t bytes, | 405 size_t bytes, |
412 bool retransmission) = 0; | 406 bool retransmission) = 0; |
413 }; | 407 }; |
414 | 408 |
415 class TransportSequenceNumberAllocator { | 409 class TransportSequenceNumberAllocator { |
416 public: | 410 public: |
417 TransportSequenceNumberAllocator() {} | 411 TransportSequenceNumberAllocator() {} |
418 virtual ~TransportSequenceNumberAllocator() {} | 412 virtual ~TransportSequenceNumberAllocator() {} |
419 | 413 |
420 virtual uint16_t AllocateSequenceNumber() = 0; | 414 virtual uint16_t AllocateSequenceNumber() = 0; |
421 }; | 415 }; |
422 | 416 |
423 } // namespace webrtc | 417 } // namespace webrtc |
424 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ | 418 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |