| 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 |
| 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h" |
| 12 | 12 |
| 13 #include <assert.h> // assert | 13 #include <assert.h> // assert |
| 14 #include <string.h> // memset | 14 #include <string.h> // memset |
| 15 | 15 |
| 16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 17 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 namespace RTCPHelp { | 20 namespace RTCPHelp { |
| 21 | 21 |
| 22 RTCPPacketInformation::RTCPPacketInformation() | |
| 23 : rtcpPacketTypeFlags(0), | |
| 24 remoteSSRC(0), | |
| 25 nackSequenceNumbers(), | |
| 26 rtt(0), | |
| 27 sliPictureId(0), | |
| 28 rpsiPictureId(0), | |
| 29 receiverEstimatedMaxBitrate(0), | |
| 30 ntp_secs(0), | |
| 31 ntp_frac(0), | |
| 32 rtp_timestamp(0), | |
| 33 xr_originator_ssrc(0), | |
| 34 xr_dlrr_item(false) {} | |
| 35 | |
| 36 RTCPPacketInformation::~RTCPPacketInformation() {} | |
| 37 | |
| 38 void RTCPPacketInformation::AddReportInfo( | |
| 39 const RTCPReportBlockInformation& report_block_info) { | |
| 40 this->rtt = report_block_info.RTT; | |
| 41 report_blocks.push_back(report_block_info.remoteReceiveBlock); | |
| 42 } | |
| 43 | |
| 44 RTCPReportBlockInformation::RTCPReportBlockInformation() | 22 RTCPReportBlockInformation::RTCPReportBlockInformation() |
| 45 : remoteReceiveBlock(), | 23 : remoteReceiveBlock(), |
| 46 remoteMaxJitter(0), | 24 remoteMaxJitter(0), |
| 47 RTT(0), | 25 RTT(0), |
| 48 minRTT(0), | 26 minRTT(0), |
| 49 maxRTT(0), | 27 maxRTT(0), |
| 50 avgRTT(0), | 28 avgRTT(0), |
| 51 numAverageCalcs(0) { | 29 numAverageCalcs(0) { |
| 52 memset(&remoteReceiveBlock, 0, sizeof(remoteReceiveBlock)); | 30 memset(&remoteReceiveBlock, 0, sizeof(remoteReceiveBlock)); |
| 53 } | 31 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 81 } | 59 } |
| 82 } | 60 } |
| 83 } | 61 } |
| 84 | 62 |
| 85 void RTCPReceiveInformation::ClearTmmbr() { | 63 void RTCPReceiveInformation::ClearTmmbr() { |
| 86 tmmbr_.clear(); | 64 tmmbr_.clear(); |
| 87 } | 65 } |
| 88 | 66 |
| 89 } // namespace RTCPHelp | 67 } // namespace RTCPHelp |
| 90 } // namespace webrtc | 68 } // namespace webrtc |
| OLD | NEW |