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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // process function. | 306 // process function. |
307 // Returns -1 on failure else 0. | 307 // Returns -1 on failure else 0. |
308 virtual int32_t SendRTCP(RTCPPacketType rtcp_packet_type) = 0; | 308 virtual int32_t SendRTCP(RTCPPacketType rtcp_packet_type) = 0; |
309 | 309 |
310 // Forces a send of a RTCP packet with more than one packet type. | 310 // Forces a send of a RTCP packet with more than one packet type. |
311 // periodic SR and RR are triggered via the process function | 311 // periodic SR and RR are triggered via the process function |
312 // Returns -1 on failure else 0. | 312 // Returns -1 on failure else 0. |
313 virtual int32_t SendCompoundRTCP( | 313 virtual int32_t SendCompoundRTCP( |
314 const std::set<RTCPPacketType>& rtcp_packet_types) = 0; | 314 const std::set<RTCPPacketType>& rtcp_packet_types) = 0; |
315 | 315 |
316 // Notifies the sender about good state of the RTP receiver. | |
317 virtual int32_t SendRTCPReferencePictureSelection(uint64_t picture_id) = 0; | |
318 | |
319 // Send a RTCP Slice Loss Indication (SLI). | |
320 // |picture_id| - 6 least significant bits of picture_id. | |
321 virtual int32_t SendRTCPSliceLossIndication(uint8_t picture_id) = 0; | |
322 | |
323 // Returns statistics of the amount of data sent. | 316 // Returns statistics of the amount of data sent. |
324 // Returns -1 on failure else 0. | 317 // Returns -1 on failure else 0. |
325 virtual int32_t DataCountersRTP(size_t* bytes_sent, | 318 virtual int32_t DataCountersRTP(size_t* bytes_sent, |
326 uint32_t* packets_sent) const = 0; | 319 uint32_t* packets_sent) const = 0; |
327 | 320 |
328 // Returns send statistics for the RTP and RTX stream. | 321 // Returns send statistics for the RTP and RTX stream. |
329 virtual void GetSendStreamDataCounters( | 322 virtual void GetSendStreamDataCounters( |
330 StreamDataCounters* rtp_counters, | 323 StreamDataCounters* rtp_counters, |
331 StreamDataCounters* rtx_counters) const = 0; | 324 StreamDataCounters* rtx_counters) const = 0; |
332 | 325 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; | 466 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; |
474 | 467 |
475 // Sends a request for a keyframe. | 468 // Sends a request for a keyframe. |
476 // Returns -1 on failure else 0. | 469 // Returns -1 on failure else 0. |
477 virtual int32_t RequestKeyFrame() = 0; | 470 virtual int32_t RequestKeyFrame() = 0; |
478 }; | 471 }; |
479 | 472 |
480 } // namespace webrtc | 473 } // namespace webrtc |
481 | 474 |
482 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 475 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
OLD | NEW |