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 17 matching lines...) Expand all Loading... |
28 rpsiPictureId(0), | 28 rpsiPictureId(0), |
29 receiverEstimatedMaxBitrate(0), | 29 receiverEstimatedMaxBitrate(0), |
30 ntp_secs(0), | 30 ntp_secs(0), |
31 ntp_frac(0), | 31 ntp_frac(0), |
32 rtp_timestamp(0), | 32 rtp_timestamp(0), |
33 xr_originator_ssrc(0), | 33 xr_originator_ssrc(0), |
34 xr_dlrr_item(false) {} | 34 xr_dlrr_item(false) {} |
35 | 35 |
36 RTCPPacketInformation::~RTCPPacketInformation() {} | 36 RTCPPacketInformation::~RTCPPacketInformation() {} |
37 | 37 |
38 void RTCPPacketInformation::ResetNACKPacketIdArray() { | |
39 nackSequenceNumbers.clear(); | |
40 } | |
41 | |
42 void RTCPPacketInformation::AddNACKPacket(const uint16_t packetID) { | |
43 if (nackSequenceNumbers.size() >= kSendSideNackListSizeSanity) { | |
44 return; | |
45 } | |
46 nackSequenceNumbers.push_back(packetID); | |
47 } | |
48 | |
49 void RTCPPacketInformation::AddReportInfo( | 38 void RTCPPacketInformation::AddReportInfo( |
50 const RTCPReportBlockInformation& report_block_info) { | 39 const RTCPReportBlockInformation& report_block_info) { |
51 this->rtt = report_block_info.RTT; | 40 this->rtt = report_block_info.RTT; |
52 report_blocks.push_back(report_block_info.remoteReceiveBlock); | 41 report_blocks.push_back(report_block_info.remoteReceiveBlock); |
53 } | 42 } |
54 | 43 |
55 RTCPReportBlockInformation::RTCPReportBlockInformation() | 44 RTCPReportBlockInformation::RTCPReportBlockInformation() |
56 : remoteReceiveBlock(), | 45 : remoteReceiveBlock(), |
57 remoteMaxJitter(0), | 46 remoteMaxJitter(0), |
58 RTT(0), | 47 RTT(0), |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 81 } |
93 } | 82 } |
94 } | 83 } |
95 | 84 |
96 void RTCPReceiveInformation::ClearTmmbr() { | 85 void RTCPReceiveInformation::ClearTmmbr() { |
97 tmmbr_.clear(); | 86 tmmbr_.clear(); |
98 } | 87 } |
99 | 88 |
100 } // namespace RTCPHelp | 89 } // namespace RTCPHelp |
101 } // namespace webrtc | 90 } // namespace webrtc |
OLD | NEW |