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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc

Issue 1540383002: [rtp_rtcp] ReportBlockInformation cleaned and moved out of the rtcp_receiver_help. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc
index a5c0e2828282fad6bef0d695980542dec5c00c43..318fa95da7d9b87da58b4d48e30805440162f946 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.cc
@@ -13,6 +13,7 @@
#include <assert.h> // assert
#include <string.h> // memset
+#include "webrtc/modules/rtp_rtcp/source/report_block_information.h"
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
@@ -92,28 +93,10 @@ RTCPPacketInformation::AddNACKPacket(const uint16_t packetID)
nackSequenceNumbers.push_back(packetID);
}
-void
-RTCPPacketInformation::AddReportInfo(
- const RTCPReportBlockInformation& report_block_info)
-{
- this->rtt = report_block_info.RTT;
- report_blocks.push_back(report_block_info.remoteReceiveBlock);
-}
-
-RTCPReportBlockInformation::RTCPReportBlockInformation():
- remoteReceiveBlock(),
- remoteMaxJitter(0),
- RTT(0),
- minRTT(0),
- maxRTT(0),
- avgRTT(0),
- numAverageCalcs(0)
-{
- memset(&remoteReceiveBlock,0,sizeof(remoteReceiveBlock));
-}
-
-RTCPReportBlockInformation::~RTCPReportBlockInformation()
-{
+void RTCPPacketInformation::AddReportInfo(
+ const rtcp::ReportBlockInformation& report_block_info) {
+ this->rtt = report_block_info.LastRttMs();
+ report_blocks.push_back(report_block_info.LastBlock());
}
RTCPReceiveInformation::RTCPReceiveInformation()
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h ('k') | webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698