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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 int64_t capture_time_ms; | 182 int64_t capture_time_ms; |
183 int64_t last_timestamp_time_ms; | 183 int64_t last_timestamp_time_ms; |
184 bool media_has_been_sent; | 184 bool media_has_been_sent; |
185 }; | 185 }; |
186 | 186 |
187 class RtpData { | 187 class RtpData { |
188 public: | 188 public: |
189 virtual ~RtpData() {} | 189 virtual ~RtpData() {} |
190 | 190 |
191 virtual int32_t OnReceivedPayloadData(const uint8_t* payloadData, | 191 virtual int32_t OnReceivedPayloadData(const uint8_t* payloadData, |
192 const size_t payloadSize, | 192 size_t payloadSize, |
193 const WebRtcRTPHeader* rtpHeader) = 0; | 193 const WebRtcRTPHeader* rtpHeader) = 0; |
194 | 194 |
195 virtual bool OnRecoveredPacket(const uint8_t* packet, | 195 virtual bool OnRecoveredPacket(const uint8_t* packet, |
196 size_t packet_length) = 0; | 196 size_t packet_length) = 0; |
197 }; | 197 }; |
198 | 198 |
199 class RtpFeedback { | 199 class RtpFeedback { |
200 public: | 200 public: |
201 virtual ~RtpFeedback() {} | 201 virtual ~RtpFeedback() {} |
202 | 202 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 void OnIncomingSSRCChanged(const uint32_t ssrc) override {} | 344 void OnIncomingSSRCChanged(const uint32_t ssrc) override {} |
345 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {} | 345 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {} |
346 }; | 346 }; |
347 | 347 |
348 // Null object version of RtpData. | 348 // Null object version of RtpData. |
349 class NullRtpData : public RtpData { | 349 class NullRtpData : public RtpData { |
350 public: | 350 public: |
351 virtual ~NullRtpData() {} | 351 virtual ~NullRtpData() {} |
352 | 352 |
353 int32_t OnReceivedPayloadData(const uint8_t* payloadData, | 353 int32_t OnReceivedPayloadData(const uint8_t* payloadData, |
354 const size_t payloadSize, | 354 size_t payloadSize, |
355 const WebRtcRTPHeader* rtpHeader) override { | 355 const WebRtcRTPHeader* rtpHeader) override { |
356 return 0; | 356 return 0; |
357 } | 357 } |
358 | 358 |
359 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { | 359 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { |
360 return true; | 360 return true; |
361 } | 361 } |
362 }; | 362 }; |
363 | 363 |
364 // Statistics about packet loss for a single directional connection. All values | 364 // Statistics about packet loss for a single directional connection. All values |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 class TransportSequenceNumberAllocator { | 400 class TransportSequenceNumberAllocator { |
401 public: | 401 public: |
402 TransportSequenceNumberAllocator() {} | 402 TransportSequenceNumberAllocator() {} |
403 virtual ~TransportSequenceNumberAllocator() {} | 403 virtual ~TransportSequenceNumberAllocator() {} |
404 | 404 |
405 virtual uint16_t AllocateSequenceNumber() = 0; | 405 virtual uint16_t AllocateSequenceNumber() = 0; |
406 }; | 406 }; |
407 | 407 |
408 } // namespace webrtc | 408 } // namespace webrtc |
409 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 409 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |