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 #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 Loading... |
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 bool outgoing, |
| 179 uint32_t ssrc, |
| 180 struct RtpPacketLossStats* loss_stats) const override; |
| 181 |
176 // Get received RTCP report, sender info. | 182 // Get received RTCP report, sender info. |
177 int32_t RemoteRTCPStat(RTCPSenderInfo* sender_info) override; | 183 int32_t RemoteRTCPStat(RTCPSenderInfo* sender_info) override; |
178 | 184 |
179 // Get received RTCP report, report block. | 185 // Get received RTCP report, report block. |
180 int32_t RemoteRTCPStat( | 186 int32_t RemoteRTCPStat( |
181 std::vector<RTCPReportBlock>* receive_blocks) const override; | 187 std::vector<RTCPReportBlock>* receive_blocks) const override; |
182 | 188 |
183 // (REMB) Receiver Estimated Max Bitrate. | 189 // (REMB) Receiver Estimated Max Bitrate. |
184 bool REMB() const override; | 190 bool REMB() const override; |
185 | 191 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 uint32_t nack_last_time_sent_full_prev_; | 376 uint32_t nack_last_time_sent_full_prev_; |
371 uint16_t nack_last_seq_number_sent_; | 377 uint16_t nack_last_seq_number_sent_; |
372 | 378 |
373 VideoCodec send_video_codec_; | 379 VideoCodec send_video_codec_; |
374 KeyFrameRequestMethod key_frame_req_method_; | 380 KeyFrameRequestMethod key_frame_req_method_; |
375 | 381 |
376 RemoteBitrateEstimator* remote_bitrate_; | 382 RemoteBitrateEstimator* remote_bitrate_; |
377 | 383 |
378 RtcpRttStats* rtt_stats_; | 384 RtcpRttStats* rtt_stats_; |
379 | 385 |
| 386 PacketLossStats send_loss_stats_; |
| 387 PacketLossStats receive_loss_stats_; |
| 388 |
380 // The processed RTT from RtcpRttStats. | 389 // The processed RTT from RtcpRttStats. |
381 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_; | 390 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtt_; |
382 int64_t rtt_ms_; | 391 int64_t rtt_ms_; |
383 }; | 392 }; |
384 | 393 |
385 } // namespace webrtc | 394 } // namespace webrtc |
386 | 395 |
387 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ | 396 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RTCP_IMPL_H_ |
OLD | NEW |