| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 uint32_t timestamp; | 181 uint32_t timestamp; |
| 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* payload_data, |
| 192 size_t payloadSize, | 192 size_t payload_size, |
| 193 const WebRtcRTPHeader* rtpHeader) = 0; | 193 const WebRtcRTPHeader* rtp_header) = 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 |
| 203 // Receiving payload change or SSRC change. (return success!) | 203 // Receiving payload change or SSRC change. (return success!) |
| 204 /* | 204 /* |
| 205 * channels - number of channels in codec (1 = mono, 2 = stereo) | 205 * channels - number of channels in codec (1 = mono, 2 = stereo) |
| 206 */ | 206 */ |
| 207 virtual int32_t OnInitializeDecoder( | 207 virtual int32_t OnInitializeDecoder( |
| 208 const int8_t payloadType, | 208 int8_t payload_type, |
| 209 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 209 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
| 210 const int frequency, | 210 int frequency, |
| 211 const size_t channels, | 211 size_t channels, |
| 212 const uint32_t rate) = 0; | 212 uint32_t rate) = 0; |
| 213 | 213 |
| 214 virtual void OnIncomingSSRCChanged(const uint32_t ssrc) = 0; | 214 virtual void OnIncomingSSRCChanged(const uint32_t ssrc) = 0; |
| 215 | 215 |
| 216 virtual void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) = 0; | 216 virtual void OnIncomingCSRCChanged(const uint32_t csrc, const bool added) = 0; |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 class RtcpIntraFrameObserver { | 219 class RtcpIntraFrameObserver { |
| 220 public: | 220 public: |
| 221 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; | 221 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; |
| 222 | 222 |
| 223 virtual void OnReceivedSLI(uint32_t ssrc, | 223 virtual void OnReceivedSLI(uint32_t ssrc, |
| 224 uint8_t picture_id) = 0; | 224 uint8_t picture_id) = 0; |
| 225 | 225 |
| 226 virtual void OnReceivedRPSI(uint32_t ssrc, | 226 virtual void OnReceivedRPSI(uint32_t ssrc, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 virtual int64_t LastProcessedRtt() const = 0; | 326 virtual int64_t LastProcessedRtt() const = 0; |
| 327 | 327 |
| 328 virtual ~RtcpRttStats() {} | 328 virtual ~RtcpRttStats() {} |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 // Null object version of RtpFeedback. | 331 // Null object version of RtpFeedback. |
| 332 class NullRtpFeedback : public RtpFeedback { | 332 class NullRtpFeedback : public RtpFeedback { |
| 333 public: | 333 public: |
| 334 virtual ~NullRtpFeedback() {} | 334 virtual ~NullRtpFeedback() {} |
| 335 | 335 |
| 336 int32_t OnInitializeDecoder(const int8_t payloadType, | 336 int32_t OnInitializeDecoder(int8_t payload_type, |
| 337 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 337 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
| 338 const int frequency, | 338 int frequency, |
| 339 const size_t channels, | 339 size_t channels, |
| 340 const uint32_t rate) override { | 340 uint32_t rate) override { |
| 341 return 0; | 341 return 0; |
| 342 } | 342 } |
| 343 | 343 |
| 344 void OnIncomingSSRCChanged(const uint32_t ssrc) override {} | 344 void OnIncomingSSRCChanged(uint32_t ssrc) override {} |
| 345 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {} | 345 void OnIncomingCSRCChanged(uint32_t csrc, 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* payload_data, |
| 354 size_t payloadSize, | 354 size_t payload_size, |
| 355 const WebRtcRTPHeader* rtpHeader) override { | 355 const WebRtcRTPHeader* rtp_header) 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 |
| 365 // are totals since the connection initiated. | 365 // are totals since the connection initiated. |
| (...skipping 34 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 |