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 |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 #include <list> | 15 #include <list> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/base/deprecation.h" |
18 #include "webrtc/common_types.h" | 19 #include "webrtc/common_types.h" |
19 #include "webrtc/modules/include/module_common_types.h" | 20 #include "webrtc/modules/include/module_common_types.h" |
20 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
21 #include "webrtc/typedefs.h" | 22 #include "webrtc/typedefs.h" |
22 | 23 |
23 #define RTCP_CNAME_SIZE 256 // RFC 3550 page 44, including null termination | 24 #define RTCP_CNAME_SIZE 256 // RFC 3550 page 44, including null termination |
24 #define IP_PACKET_SIZE 1500 // we assume ethernet | 25 #define IP_PACKET_SIZE 1500 // we assume ethernet |
25 #define MAX_NUMBER_OF_PARALLEL_TELEPHONE_EVENTS 10 | 26 #define MAX_NUMBER_OF_PARALLEL_TELEPHONE_EVENTS 10 |
26 | 27 |
27 namespace webrtc { | 28 namespace webrtc { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 kRtcpSdes = 0x0008, | 89 kRtcpSdes = 0x0008, |
89 kRtcpBye = 0x0010, | 90 kRtcpBye = 0x0010, |
90 kRtcpPli = 0x0020, | 91 kRtcpPli = 0x0020, |
91 kRtcpNack = 0x0040, | 92 kRtcpNack = 0x0040, |
92 kRtcpFir = 0x0080, | 93 kRtcpFir = 0x0080, |
93 kRtcpTmmbr = 0x0100, | 94 kRtcpTmmbr = 0x0100, |
94 kRtcpTmmbn = 0x0200, | 95 kRtcpTmmbn = 0x0200, |
95 kRtcpSrReq = 0x0400, | 96 kRtcpSrReq = 0x0400, |
96 kRtcpXrVoipMetric = 0x0800, | 97 kRtcpXrVoipMetric = 0x0800, |
97 kRtcpApp = 0x1000, | 98 kRtcpApp = 0x1000, |
98 kRtcpSli = 0x4000, | |
99 kRtcpRpsi = 0x8000, | |
100 kRtcpRemb = 0x10000, | 99 kRtcpRemb = 0x10000, |
101 kRtcpTransmissionTimeOffset = 0x20000, | 100 kRtcpTransmissionTimeOffset = 0x20000, |
102 kRtcpXrReceiverReferenceTime = 0x40000, | 101 kRtcpXrReceiverReferenceTime = 0x40000, |
103 kRtcpXrDlrrReportBlock = 0x80000, | 102 kRtcpXrDlrrReportBlock = 0x80000, |
104 kRtcpTransportFeedback = 0x100000, | 103 kRtcpTransportFeedback = 0x100000, |
105 kRtcpXrTargetBitrate = 0x200000 | 104 kRtcpXrTargetBitrate = 0x200000 |
106 }; | 105 }; |
107 | 106 |
108 enum KeyFrameRequestMethod { kKeyFrameReqPliRtcp, kKeyFrameReqFirRtcp }; | 107 enum KeyFrameRequestMethod { kKeyFrameReqPliRtcp, kKeyFrameReqFirRtcp }; |
109 | 108 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 214 |
216 virtual void OnIncomingSSRCChanged(uint32_t ssrc) = 0; | 215 virtual void OnIncomingSSRCChanged(uint32_t ssrc) = 0; |
217 | 216 |
218 virtual void OnIncomingCSRCChanged(uint32_t csrc, bool added) = 0; | 217 virtual void OnIncomingCSRCChanged(uint32_t csrc, bool added) = 0; |
219 }; | 218 }; |
220 | 219 |
221 class RtcpIntraFrameObserver { | 220 class RtcpIntraFrameObserver { |
222 public: | 221 public: |
223 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; | 222 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; |
224 | 223 |
225 virtual void OnReceivedSLI(uint32_t ssrc, | 224 RTC_DEPRECATED virtual void OnReceivedSLI(uint32_t ssrc, |
226 uint8_t picture_id) = 0; | 225 uint8_t picture_id) {} |
227 | 226 |
228 virtual void OnReceivedRPSI(uint32_t ssrc, | 227 RTC_DEPRECATED virtual void OnReceivedRPSI(uint32_t ssrc, |
229 uint64_t picture_id) = 0; | 228 uint64_t picture_id) {} |
230 | 229 |
231 virtual ~RtcpIntraFrameObserver() {} | 230 virtual ~RtcpIntraFrameObserver() {} |
232 }; | 231 }; |
233 | 232 |
234 class RtcpBandwidthObserver { | 233 class RtcpBandwidthObserver { |
235 public: | 234 public: |
236 // REMB or TMMBR | 235 // REMB or TMMBR |
237 virtual void OnReceivedEstimatedBitrate(uint32_t bitrate) = 0; | 236 virtual void OnReceivedEstimatedBitrate(uint32_t bitrate) = 0; |
238 | 237 |
239 virtual void OnReceivedRtcpReceiverReport( | 238 virtual void OnReceivedRtcpReceiverReport( |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 class TransportSequenceNumberAllocator { | 432 class TransportSequenceNumberAllocator { |
434 public: | 433 public: |
435 TransportSequenceNumberAllocator() {} | 434 TransportSequenceNumberAllocator() {} |
436 virtual ~TransportSequenceNumberAllocator() {} | 435 virtual ~TransportSequenceNumberAllocator() {} |
437 | 436 |
438 virtual uint16_t AllocateSequenceNumber() = 0; | 437 virtual uint16_t AllocateSequenceNumber() = 0; |
439 }; | 438 }; |
440 | 439 |
441 } // namespace webrtc | 440 } // namespace webrtc |
442 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 441 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |