Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc

Issue 2366563002: Move class RTCPHelp::RTCPPacketInformation into RTCPReceiver (Closed)
Patch Set: nit Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698