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 23 matching lines...) Expand all Loading... |
34 if (requests_ == 0 || | 34 if (requests_ == 0 || |
35 webrtc::IsNewerSequenceNumber(sequence_number, max_sequence_number_)) { | 35 webrtc::IsNewerSequenceNumber(sequence_number, max_sequence_number_)) { |
36 max_sequence_number_ = sequence_number; | 36 max_sequence_number_ = sequence_number; |
37 ++unique_requests_; | 37 ++unique_requests_; |
38 } | 38 } |
39 ++requests_; | 39 ++requests_; |
40 } | 40 } |
41 | 41 |
42 uint32_t MidNtp(uint32_t ntp_sec, uint32_t ntp_frac) { | 42 uint32_t MidNtp(uint32_t ntp_sec, uint32_t ntp_frac) { |
43 return (ntp_sec << 16) + (ntp_frac >> 16); | 43 return (ntp_sec << 16) + (ntp_frac >> 16); |
44 } // end RTCPUtility | |
45 } | 44 } |
| 45 } // namespace RTCPUtility |
46 | 46 |
47 // RTCPParserV2 : currently read only | 47 // RTCPParserV2 : currently read only |
48 RTCPUtility::RTCPParserV2::RTCPParserV2(const uint8_t* rtcpData, | 48 RTCPUtility::RTCPParserV2::RTCPParserV2(const uint8_t* rtcpData, |
49 size_t rtcpDataLength, | 49 size_t rtcpDataLength, |
50 bool rtcpReducedSizeEnable) | 50 bool rtcpReducedSizeEnable) |
51 : _ptrRTCPDataBegin(rtcpData), | 51 : _ptrRTCPDataBegin(rtcpData), |
52 _RTCPReducedSizeEnable(rtcpReducedSizeEnable), | 52 _RTCPReducedSizeEnable(rtcpReducedSizeEnable), |
53 _ptrRTCPDataEnd(rtcpData + rtcpDataLength), | 53 _ptrRTCPDataEnd(rtcpData + rtcpDataLength), |
54 _validPacket(false), | 54 _validPacket(false), |
55 _ptrRTCPData(rtcpData), | 55 _ptrRTCPData(rtcpData), |
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 const RTCPUtility::RtcpCommonHeader* | 1702 const RTCPUtility::RtcpCommonHeader* |
1703 RTCPUtility::RTCPPacketIterator::Current() { | 1703 RTCPUtility::RTCPPacketIterator::Current() { |
1704 if (!_ptrBlock) | 1704 if (!_ptrBlock) |
1705 { | 1705 { |
1706 return NULL; | 1706 return NULL; |
1707 } | 1707 } |
1708 | 1708 |
1709 return &_header; | 1709 return &_header; |
1710 } | 1710 } |
1711 } // namespace webrtc | 1711 } // namespace webrtc |
OLD | NEW |