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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h

Issue 1198853004: Add statistics gathering for packet loss. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 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
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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
13 13
14 #include <list> 14 #include <list>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/base/scoped_ptr.h" 17 #include "webrtc/base/scoped_ptr.h"
18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" 18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h"
19 #include "webrtc/modules/rtp_rtcp/source/packet_loss_stats.h"
19 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" 20 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h"
21 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h" 22 #include "webrtc/modules/rtp_rtcp/source/rtp_sender.h"
22 #include "webrtc/test/testsupport/gtest_prod_util.h" 23 #include "webrtc/test/testsupport/gtest_prod_util.h"
23 24
24 namespace webrtc { 25 namespace webrtc {
25 26
26 class ModuleRtpRtcpImpl : public RtpRtcp { 27 class ModuleRtpRtcpImpl : public RtpRtcp {
27 public: 28 public:
28 explicit ModuleRtpRtcpImpl(const RtpRtcp::Configuration& configuration); 29 explicit ModuleRtpRtcpImpl(const RtpRtcp::Configuration& configuration);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int32_t ResetSendDataCountersRTP() override; 167 int32_t ResetSendDataCountersRTP() override;
167 168
168 // Statistics of the amount of data sent and received. 169 // Statistics of the amount of data sent and received.
169 int32_t DataCountersRTP(size_t* bytes_sent, 170 int32_t DataCountersRTP(size_t* bytes_sent,
170 uint32_t* packets_sent) const override; 171 uint32_t* packets_sent) const override;
171 172
172 void GetSendStreamDataCounters( 173 void GetSendStreamDataCounters(
173 StreamDataCounters* rtp_counters, 174 StreamDataCounters* rtp_counters,
174 StreamDataCounters* rtx_counters) const override; 175 StreamDataCounters* rtx_counters) const override;
175 176
177 void GetRtpPacketLossStats(
178 struct RtpPacketLossStats* incoming_loss,
179 struct RtpPacketLossStats* outgoing_loss) const override;
180
176 // Get received RTCP report, sender info. 181 // Get received RTCP report, sender info.
177 int32_t RemoteRTCPStat(RTCPSenderInfo* sender_info) override; 182 int32_t RemoteRTCPStat(RTCPSenderInfo* sender_info) override;
178 183
179 // Get received RTCP report, report block. 184 // Get received RTCP report, report block.
180 int32_t RemoteRTCPStat( 185 int32_t RemoteRTCPStat(
181 std::vector<RTCPReportBlock>* receive_blocks) const override; 186 std::vector<RTCPReportBlock>* receive_blocks) const override;
182 187
183 // (REMB) Receiver Estimated Max Bitrate. 188 // (REMB) Receiver Estimated Max Bitrate.
184 bool REMB() const override; 189 bool REMB() const override;
185 190
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 uint32_t nack_last_time_sent_full_prev_; 375 uint32_t nack_last_time_sent_full_prev_;
371 uint16_t nack_last_seq_number_sent_; 376 uint16_t nack_last_seq_number_sent_;
372 377
373 VideoCodec send_video_codec_; 378 VideoCodec send_video_codec_;
374 KeyFrameRequestMethod key_frame_req_method_; 379 KeyFrameRequestMethod key_frame_req_method_;
375 380
376 RemoteBitrateEstimator* remote_bitrate_; 381 RemoteBitrateEstimator* remote_bitrate_;
377 382
378 RtcpRttStats* rtt_stats_; 383 RtcpRttStats* rtt_stats_;
379 384
385 PacketLossStats send_loss_stats_;
386 PacketLossStats receive_loss_stats_;
387
380 // The processed RTT from RtcpRttStats. 388 // The processed RTT from RtcpRttStats.
381 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_; 389 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_;
382 int64_t rtt_ms_; 390 int64_t rtt_ms_;
383 }; 391 };
384 392
385 } // namespace webrtc 393 } // namespace webrtc
386 394
387 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ 395 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698