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...) Loading... |
182 uint32_t timestamp; | 182 uint32_t timestamp; |
183 int64_t capture_time_ms; | 183 int64_t capture_time_ms; |
184 int64_t last_timestamp_time_ms; | 184 int64_t last_timestamp_time_ms; |
185 bool media_has_been_sent; | 185 bool media_has_been_sent; |
186 }; | 186 }; |
187 | 187 |
188 class RtpData { | 188 class RtpData { |
189 public: | 189 public: |
190 virtual ~RtpData() {} | 190 virtual ~RtpData() {} |
191 | 191 |
192 virtual int32_t OnReceivedPayloadData(const uint8_t* payloadData, | 192 virtual int32_t OnReceivedPayloadData(const uint8_t* payload_data, |
193 size_t payloadSize, | 193 size_t payload_size, |
194 const WebRtcRTPHeader* rtpHeader) = 0; | 194 const WebRtcRTPHeader* rtp_header) = 0; |
195 | 195 |
196 virtual bool OnRecoveredPacket(const uint8_t* packet, | 196 virtual bool OnRecoveredPacket(const uint8_t* packet, |
197 size_t packet_length) = 0; | 197 size_t packet_length) = 0; |
198 }; | 198 }; |
199 | 199 |
200 class RtpFeedback { | 200 class RtpFeedback { |
201 public: | 201 public: |
202 virtual ~RtpFeedback() {} | 202 virtual ~RtpFeedback() {} |
203 | 203 |
204 // Receiving payload change or SSRC change. (return success!) | 204 // Receiving payload change or SSRC change. (return success!) |
205 /* | 205 /* |
206 * channels - number of channels in codec (1 = mono, 2 = stereo) | 206 * channels - number of channels in codec (1 = mono, 2 = stereo) |
207 */ | 207 */ |
208 virtual int32_t OnInitializeDecoder( | 208 virtual int32_t OnInitializeDecoder( |
209 const int8_t payloadType, | 209 int8_t payload_type, |
210 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 210 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
211 const int frequency, | 211 int frequency, |
212 const size_t channels, | 212 size_t channels, |
213 const uint32_t rate) = 0; | 213 uint32_t rate) = 0; |
214 | 214 |
215 virtual void OnIncomingSSRCChanged(const uint32_t ssrc) = 0; | 215 virtual void OnIncomingSSRCChanged(uint32_t ssrc) = 0; |
216 | 216 |
217 virtual void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) = 0; | 217 virtual void OnIncomingCSRCChanged(uint32_t csrc, bool added) = 0; |
218 }; | 218 }; |
219 | 219 |
220 class RtcpIntraFrameObserver { | 220 class RtcpIntraFrameObserver { |
221 public: | 221 public: |
222 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; | 222 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; |
223 | 223 |
224 virtual void OnReceivedSLI(uint32_t ssrc, | 224 virtual void OnReceivedSLI(uint32_t ssrc, |
225 uint8_t picture_id) = 0; | 225 uint8_t picture_id) = 0; |
226 | 226 |
227 virtual void OnReceivedRPSI(uint32_t ssrc, | 227 virtual void OnReceivedRPSI(uint32_t ssrc, |
(...skipping 91 matching lines...) Loading... |
319 virtual int64_t LastProcessedRtt() const = 0; | 319 virtual int64_t LastProcessedRtt() const = 0; |
320 | 320 |
321 virtual ~RtcpRttStats() {} | 321 virtual ~RtcpRttStats() {} |
322 }; | 322 }; |
323 | 323 |
324 // Null object version of RtpFeedback. | 324 // Null object version of RtpFeedback. |
325 class NullRtpFeedback : public RtpFeedback { | 325 class NullRtpFeedback : public RtpFeedback { |
326 public: | 326 public: |
327 virtual ~NullRtpFeedback() {} | 327 virtual ~NullRtpFeedback() {} |
328 | 328 |
329 int32_t OnInitializeDecoder(const int8_t payloadType, | 329 int32_t OnInitializeDecoder(int8_t payload_type, |
330 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 330 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
331 const int frequency, | 331 int frequency, |
332 const size_t channels, | 332 size_t channels, |
333 const uint32_t rate) override { | 333 uint32_t rate) override { |
334 return 0; | 334 return 0; |
335 } | 335 } |
336 | 336 |
337 void OnIncomingSSRCChanged(const uint32_t ssrc) override {} | 337 void OnIncomingSSRCChanged(uint32_t ssrc) override {} |
338 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {} | 338 void OnIncomingCSRCChanged(uint32_t csrc, bool added) override {} |
339 }; | 339 }; |
340 | 340 |
341 // Null object version of RtpData. | 341 // Null object version of RtpData. |
342 class NullRtpData : public RtpData { | 342 class NullRtpData : public RtpData { |
343 public: | 343 public: |
344 virtual ~NullRtpData() {} | 344 virtual ~NullRtpData() {} |
345 | 345 |
346 int32_t OnReceivedPayloadData(const uint8_t* payloadData, | 346 int32_t OnReceivedPayloadData(const uint8_t* payload_data, |
347 size_t payloadSize, | 347 size_t payload_size, |
348 const WebRtcRTPHeader* rtpHeader) override { | 348 const WebRtcRTPHeader* rtp_header) override { |
349 return 0; | 349 return 0; |
350 } | 350 } |
351 | 351 |
352 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { | 352 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { |
353 return true; | 353 return true; |
354 } | 354 } |
355 }; | 355 }; |
356 | 356 |
357 // Statistics about packet loss for a single directional connection. All values | 357 // Statistics about packet loss for a single directional connection. All values |
358 // are totals since the connection initiated. | 358 // are totals since the connection initiated. |
(...skipping 34 matching lines...) Loading... |
393 class TransportSequenceNumberAllocator { | 393 class TransportSequenceNumberAllocator { |
394 public: | 394 public: |
395 TransportSequenceNumberAllocator() {} | 395 TransportSequenceNumberAllocator() {} |
396 virtual ~TransportSequenceNumberAllocator() {} | 396 virtual ~TransportSequenceNumberAllocator() {} |
397 | 397 |
398 virtual uint16_t AllocateSequenceNumber() = 0; | 398 virtual uint16_t AllocateSequenceNumber() = 0; |
399 }; | 399 }; |
400 | 400 |
401 } // namespace webrtc | 401 } // namespace webrtc |
402 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 402 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |