| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 int64_t LastReceivedReceiverReport() const; | 45 int64_t LastReceivedReceiverReport() const; |
| 46 | 46 |
| 47 void SetSsrcs(uint32_t main_ssrc, | 47 void SetSsrcs(uint32_t main_ssrc, |
| 48 const std::set<uint32_t>& registered_ssrcs); | 48 const std::set<uint32_t>& registered_ssrcs); |
| 49 void SetRelaySSRC(uint32_t ssrc); | 49 void SetRelaySSRC(uint32_t ssrc); |
| 50 void SetRemoteSSRC(uint32_t ssrc); | 50 void SetRemoteSSRC(uint32_t ssrc); |
| 51 uint32_t RemoteSSRC() const; | 51 uint32_t RemoteSSRC() const; |
| 52 | 52 |
| 53 uint32_t RelaySSRC() const; | 53 uint32_t RelaySSRC() const; |
| 54 | 54 |
| 55 int32_t IncomingRTCPPacket( | 55 bool IncomingPacket(const uint8_t* buffer, size_t length); |
| 56 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, | |
| 57 RTCPUtility::RTCPParserV2 *rtcpParser); | |
| 58 | |
| 59 void TriggerCallbacksFromRTCPPacket( | |
| 60 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation); | |
| 61 | 56 |
| 62 // get received cname | 57 // get received cname |
| 63 int32_t CNAME(uint32_t remoteSSRC, char cName[RTCP_CNAME_SIZE]) const; | 58 int32_t CNAME(uint32_t remoteSSRC, char cName[RTCP_CNAME_SIZE]) const; |
| 64 | 59 |
| 65 // get received NTP | 60 // get received NTP |
| 66 bool NTP(uint32_t* ReceivedNTPsecs, | 61 bool NTP(uint32_t* ReceivedNTPsecs, |
| 67 uint32_t* ReceivedNTPfrac, | 62 uint32_t* ReceivedNTPfrac, |
| 68 uint32_t* RTCPArrivalTimeSecs, | 63 uint32_t* RTCPArrivalTimeSecs, |
| 69 uint32_t* RTCPArrivalTimeFrac, | 64 uint32_t* RTCPArrivalTimeFrac, |
| 70 uint32_t* rtcp_timestamp) const; | 65 uint32_t* rtcp_timestamp) const; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 98 |
| 104 bool UpdateRTCPReceiveInformationTimers(); | 99 bool UpdateRTCPReceiveInformationTimers(); |
| 105 | 100 |
| 106 int32_t BoundingSet(bool* tmmbrOwner, TMMBRSet* boundingSetRec); | 101 int32_t BoundingSet(bool* tmmbrOwner, TMMBRSet* boundingSetRec); |
| 107 | 102 |
| 108 int32_t UpdateTMMBR(); | 103 int32_t UpdateTMMBR(); |
| 109 | 104 |
| 110 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback); | 105 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback); |
| 111 RtcpStatisticsCallback* GetRtcpStatisticsCallback(); | 106 RtcpStatisticsCallback* GetRtcpStatisticsCallback(); |
| 112 | 107 |
| 113 protected: | 108 protected: |
| 109 void IncomingRTCPPacket( |
| 110 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, |
| 111 RTCPUtility::RTCPParserV2* rtcpParser); |
| 112 |
| 113 void TriggerCallbacksFromRTCPPacket( |
| 114 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation); |
| 115 |
| 114 RTCPUtility::RTCPCnameInformation* CreateCnameInformation(uint32_t remoteSSRC); | 116 RTCPUtility::RTCPCnameInformation* CreateCnameInformation(uint32_t remoteSSRC); |
| 115 RTCPUtility::RTCPCnameInformation* GetCnameInformation( | 117 RTCPUtility::RTCPCnameInformation* GetCnameInformation( |
| 116 uint32_t remoteSSRC) const; | 118 uint32_t remoteSSRC) const; |
| 117 | 119 |
| 118 RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation( | 120 RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation( |
| 119 uint32_t remoteSSRC); | 121 uint32_t remoteSSRC); |
| 120 RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(uint32_t remoteSSRC); | 122 RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(uint32_t remoteSSRC); |
| 121 | 123 |
| 122 void UpdateReceiveInformation( | 124 void UpdateReceiveInformation( |
| 123 RTCPHelp::RTCPReceiveInformation& receiveInformation); | 125 RTCPHelp::RTCPReceiveInformation& receiveInformation); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; | 319 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; |
| 318 RtcpPacketTypeCounter packet_type_counter_; | 320 RtcpPacketTypeCounter packet_type_counter_; |
| 319 | 321 |
| 320 RTCPUtility::NackStats nack_stats_; | 322 RTCPUtility::NackStats nack_stats_; |
| 321 | 323 |
| 322 size_t num_skipped_packets_; | 324 size_t num_skipped_packets_; |
| 323 int64_t last_skipped_packets_warning_; | 325 int64_t last_skipped_packets_warning_; |
| 324 }; | 326 }; |
| 325 } // namespace webrtc | 327 } // namespace webrtc |
| 326 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ | 328 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ |
| OLD | NEW |