summaryrefslogtreecommitdiff
path: root/video_engine/vie_rtp_rtcp_impl.cc
diff options
context:
space:
mode:
authorjiayl@webrtc.org <jiayl@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-02-10 19:12:14 +0000
committerjiayl@webrtc.org <jiayl@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-02-10 19:12:14 +0000
commitd1e7facca966ca4b7632940d71f62deea5094083 (patch)
treedf5050c2b8811b432d16c34b3278047d76448ba5 /video_engine/vie_rtp_rtcp_impl.cc
parent0e53607a98e8a250060762e60bb25a34f7dfb8ff (diff)
downloadwebrtc-d1e7facca966ca4b7632940d71f62deea5094083.tar.gz
Add stats of incoming frame delays for debugging bandwidth estimation.
BUG=crbug/338380 R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8119004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5519 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'video_engine/vie_rtp_rtcp_impl.cc')
-rw-r--r--video_engine/vie_rtp_rtcp_impl.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/video_engine/vie_rtp_rtcp_impl.cc b/video_engine/vie_rtp_rtcp_impl.cc
index b655349d..bd13df78 100644
--- a/video_engine/vie_rtp_rtcp_impl.cc
+++ b/video_engine/vie_rtp_rtcp_impl.cc
@@ -1003,6 +1003,26 @@ int ViERTP_RTCPImpl::GetEstimatedReceiveBandwidth(
return 0;
}
+int ViERTP_RTCPImpl::GetReceiveBandwidthEstimatorStats(
+ const int video_channel,
+ ReceiveBandwidthEstimatorStats* output) const {
+ WEBRTC_TRACE(kTraceApiCall, kTraceVideo,
+ ViEId(shared_data_->instance_id(), video_channel),
+ "%s(channel: %d)", __FUNCTION__, video_channel);
+ ViEChannelManagerScoped cs(*(shared_data_->channel_manager()));
+ ViEChannel* vie_channel = cs.Channel(video_channel);
+ if (!vie_channel) {
+ WEBRTC_TRACE(kTraceError, kTraceVideo,
+ ViEId(shared_data_->instance_id(), video_channel),
+ "%s: Could not get channel %d", __FUNCTION__,
+ video_channel);
+ shared_data_->SetLastError(kViERtpRtcpInvalidChannelId);
+ return -1;
+ }
+ vie_channel->GetReceiveBandwidthEstimatorStats(output);
+ return 0;
+}
+
int ViERTP_RTCPImpl::StartRTPDump(const int video_channel,
const char file_nameUTF8[1024],
RTPDirections direction) {