| 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 15 matching lines...) Expand all Loading... |
| 26 namespace webrtc { | 26 namespace webrtc { |
| 27 | 27 |
| 28 const int kVideoPayloadTypeFrequency = 90000; | 28 const int kVideoPayloadTypeFrequency = 90000; |
| 29 | 29 |
| 30 // Minimum RTP header size in bytes. | 30 // Minimum RTP header size in bytes. |
| 31 const uint8_t kRtpHeaderSize = 12; | 31 const uint8_t kRtpHeaderSize = 12; |
| 32 | 32 |
| 33 struct AudioPayload | 33 struct AudioPayload |
| 34 { | 34 { |
| 35 uint32_t frequency; | 35 uint32_t frequency; |
| 36 uint8_t channels; | 36 size_t channels; |
| 37 uint32_t rate; | 37 uint32_t rate; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 struct VideoPayload | 40 struct VideoPayload |
| 41 { | 41 { |
| 42 RtpVideoCodecTypes videoCodecType; | 42 RtpVideoCodecTypes videoCodecType; |
| 43 uint32_t maxRate; | 43 uint32_t maxRate; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 union PayloadUnion | 46 union PayloadUnion |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 // Receiving payload change or SSRC change. (return success!) | 237 // Receiving payload change or SSRC change. (return success!) |
| 238 /* | 238 /* |
| 239 * channels - number of channels in codec (1 = mono, 2 = stereo) | 239 * channels - number of channels in codec (1 = mono, 2 = stereo) |
| 240 */ | 240 */ |
| 241 virtual int32_t OnInitializeDecoder( | 241 virtual int32_t OnInitializeDecoder( |
| 242 const int32_t id, | 242 const int32_t id, |
| 243 const int8_t payloadType, | 243 const int8_t payloadType, |
| 244 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 244 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
| 245 const int frequency, | 245 const int frequency, |
| 246 const uint8_t channels, | 246 const size_t channels, |
| 247 const uint32_t rate) = 0; | 247 const uint32_t rate) = 0; |
| 248 | 248 |
| 249 virtual void OnIncomingSSRCChanged( const int32_t id, | 249 virtual void OnIncomingSSRCChanged( const int32_t id, |
| 250 const uint32_t ssrc) = 0; | 250 const uint32_t ssrc) = 0; |
| 251 | 251 |
| 252 virtual void OnIncomingCSRCChanged( const int32_t id, | 252 virtual void OnIncomingCSRCChanged( const int32_t id, |
| 253 const uint32_t CSRC, | 253 const uint32_t CSRC, |
| 254 const bool added) = 0; | 254 const bool added) = 0; |
| 255 }; | 255 }; |
| 256 | 256 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 // Null object version of RtpFeedback. | 305 // Null object version of RtpFeedback. |
| 306 class NullRtpFeedback : public RtpFeedback { | 306 class NullRtpFeedback : public RtpFeedback { |
| 307 public: | 307 public: |
| 308 virtual ~NullRtpFeedback() {} | 308 virtual ~NullRtpFeedback() {} |
| 309 | 309 |
| 310 int32_t OnInitializeDecoder(const int32_t id, | 310 int32_t OnInitializeDecoder(const int32_t id, |
| 311 const int8_t payloadType, | 311 const int8_t payloadType, |
| 312 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 312 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
| 313 const int frequency, | 313 const int frequency, |
| 314 const uint8_t channels, | 314 const size_t channels, |
| 315 const uint32_t rate) override { | 315 const uint32_t rate) override { |
| 316 return 0; | 316 return 0; |
| 317 } | 317 } |
| 318 | 318 |
| 319 void OnIncomingSSRCChanged(const int32_t id, const uint32_t ssrc) override {} | 319 void OnIncomingSSRCChanged(const int32_t id, const uint32_t ssrc) override {} |
| 320 | 320 |
| 321 void OnIncomingCSRCChanged(const int32_t id, | 321 void OnIncomingCSRCChanged(const int32_t id, |
| 322 const uint32_t CSRC, | 322 const uint32_t CSRC, |
| 323 const bool added) override {} | 323 const bool added) override {} |
| 324 }; | 324 }; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 uint64_t single_packet_loss_count; | 358 uint64_t single_packet_loss_count; |
| 359 // The number of events in which more than one adjacent packet was lost. | 359 // The number of events in which more than one adjacent packet was lost. |
| 360 uint64_t multiple_packet_loss_event_count; | 360 uint64_t multiple_packet_loss_event_count; |
| 361 // The number of packets lost in events where more than one adjacent packet | 361 // The number of packets lost in events where more than one adjacent packet |
| 362 // was lost. | 362 // was lost. |
| 363 uint64_t multiple_packet_loss_packet_count; | 363 uint64_t multiple_packet_loss_packet_count; |
| 364 }; | 364 }; |
| 365 | 365 |
| 366 } // namespace webrtc | 366 } // namespace webrtc |
| 367 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ | 367 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ |
| OLD | NEW |