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 |
(...skipping 23 matching lines...) Expand all Loading... |
34 class ChannelStatsObserver; | 34 class ChannelStatsObserver; |
35 class Config; | 35 class Config; |
36 class EncodedImageCallback; | 36 class EncodedImageCallback; |
37 class I420FrameCallback; | 37 class I420FrameCallback; |
38 class IncomingVideoStream; | 38 class IncomingVideoStream; |
39 class PacedSender; | 39 class PacedSender; |
40 class PacketRouter; | 40 class PacketRouter; |
41 class PayloadRouter; | 41 class PayloadRouter; |
42 class ProcessThread; | 42 class ProcessThread; |
43 class ReceiveStatisticsProxy; | 43 class ReceiveStatisticsProxy; |
44 class ReportBlockStats; | |
45 class RtcpRttStats; | 44 class RtcpRttStats; |
46 class ViEChannelProtectionCallback; | 45 class ViEChannelProtectionCallback; |
47 class ViERTPObserver; | 46 class ViERTPObserver; |
48 class VideoCodingModule; | 47 class VideoCodingModule; |
49 class VideoDecoder; | 48 class VideoDecoder; |
50 class VideoRenderCallback; | 49 class VideoRenderCallback; |
51 class VoEVideoSync; | 50 class VoEVideoSync; |
52 | 51 |
53 enum StreamType { | 52 enum StreamType { |
54 kViEStreamTypeNormal = 0, // Normal media stream | 53 kViEStreamTypeNormal = 0, // Normal media stream |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 131 |
133 void SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state); | 132 void SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state); |
134 RtpState GetRtpStateForSsrc(uint32_t ssrc); | 133 RtpState GetRtpStateForSsrc(uint32_t ssrc); |
135 | 134 |
136 // Sets the CName for the outgoing stream on the channel. | 135 // Sets the CName for the outgoing stream on the channel. |
137 int32_t SetRTCPCName(const char* rtcp_cname); | 136 int32_t SetRTCPCName(const char* rtcp_cname); |
138 | 137 |
139 // Gets the CName of the incoming stream. | 138 // Gets the CName of the incoming stream. |
140 int32_t GetRemoteRTCPCName(char rtcp_cname[]); | 139 int32_t GetRemoteRTCPCName(char rtcp_cname[]); |
141 | 140 |
142 // Returns statistics reported by the remote client in an RTCP packet. | |
143 // TODO(pbos): Remove this along with VideoSendStream::GetRtt(). | |
144 int32_t GetSendRtcpStatistics(uint16_t* fraction_lost, | |
145 uint32_t* cumulative_lost, | |
146 uint32_t* extended_max, | |
147 uint32_t* jitter_samples, | |
148 int64_t* rtt_ms); | |
149 | |
150 // Called on receipt of RTCP report block from remote side. | 141 // Called on receipt of RTCP report block from remote side. |
151 void RegisterSendChannelRtcpStatisticsCallback( | 142 void RegisterSendChannelRtcpStatisticsCallback( |
152 RtcpStatisticsCallback* callback); | 143 RtcpStatisticsCallback* callback); |
153 | 144 |
154 // Called on generation of RTCP stats | 145 // Called on generation of RTCP stats |
155 void RegisterReceiveChannelRtcpStatisticsCallback( | 146 void RegisterReceiveChannelRtcpStatisticsCallback( |
156 RtcpStatisticsCallback* callback); | 147 RtcpStatisticsCallback* callback); |
157 | 148 |
158 // Gets send statistics for the rtp and rtx stream. | 149 // Gets send statistics for the rtp and rtx stream. |
159 void GetSendStreamDataCounters(StreamDataCounters* rtp_counters, | 150 void GetSendStreamDataCounters(StreamDataCounters* rtp_counters, |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 414 |
424 const rtc::scoped_ptr<RtcpBandwidthObserver> bandwidth_observer_; | 415 const rtc::scoped_ptr<RtcpBandwidthObserver> bandwidth_observer_; |
425 TransportFeedbackObserver* const transport_feedback_observer_; | 416 TransportFeedbackObserver* const transport_feedback_observer_; |
426 | 417 |
427 rtc::PlatformThread decode_thread_; | 418 rtc::PlatformThread decode_thread_; |
428 | 419 |
429 int nack_history_size_sender_; | 420 int nack_history_size_sender_; |
430 int max_nack_reordering_threshold_; | 421 int max_nack_reordering_threshold_; |
431 I420FrameCallback* pre_render_callback_ GUARDED_BY(crit_); | 422 I420FrameCallback* pre_render_callback_ GUARDED_BY(crit_); |
432 | 423 |
433 const rtc::scoped_ptr<ReportBlockStats> report_block_stats_sender_; | |
434 | |
435 int64_t time_of_first_rtt_ms_ GUARDED_BY(crit_); | |
436 int64_t rtt_sum_ms_ GUARDED_BY(crit_); | |
437 int64_t last_rtt_ms_ GUARDED_BY(crit_); | 424 int64_t last_rtt_ms_ GUARDED_BY(crit_); |
438 size_t num_rtts_ GUARDED_BY(crit_); | |
439 | 425 |
440 // RtpRtcp modules, declared last as they use other members on construction. | 426 // RtpRtcp modules, declared last as they use other members on construction. |
441 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 427 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
442 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); | 428 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); |
443 }; | 429 }; |
444 | 430 |
445 } // namespace webrtc | 431 } // namespace webrtc |
446 | 432 |
447 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ | 433 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ |
OLD | NEW |