| 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 VideoRenderCallback; | 48 class VideoRenderCallback; |
| 50 class VoEVideoSync; | 49 class VoEVideoSync; |
| 51 | 50 |
| 52 enum StreamType { | 51 enum StreamType { |
| 53 kViEStreamTypeNormal = 0, // Normal media stream | 52 kViEStreamTypeNormal = 0, // Normal media stream |
| 54 kViEStreamTypeRtx = 1 // Retransmission media stream | 53 kViEStreamTypeRtx = 1 // Retransmission media stream |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 108 |
| 110 void SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state); | 109 void SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state); |
| 111 RtpState GetRtpStateForSsrc(uint32_t ssrc) const; | 110 RtpState GetRtpStateForSsrc(uint32_t ssrc) const; |
| 112 | 111 |
| 113 // Sets the CName for the outgoing stream on the channel. | 112 // Sets the CName for the outgoing stream on the channel. |
| 114 int32_t SetRTCPCName(const char* rtcp_cname); | 113 int32_t SetRTCPCName(const char* rtcp_cname); |
| 115 | 114 |
| 116 // Gets the CName of the incoming stream. | 115 // Gets the CName of the incoming stream. |
| 117 int32_t GetRemoteRTCPCName(char rtcp_cname[]); | 116 int32_t GetRemoteRTCPCName(char rtcp_cname[]); |
| 118 | 117 |
| 119 // Returns statistics reported by the remote client in an RTCP packet. | |
| 120 // TODO(pbos): Remove this along with VideoSendStream::GetRtt(). | |
| 121 int32_t GetSendRtcpStatistics(uint16_t* fraction_lost, | |
| 122 uint32_t* cumulative_lost, | |
| 123 uint32_t* extended_max, | |
| 124 uint32_t* jitter_samples, | |
| 125 int64_t* rtt_ms) const; | |
| 126 | |
| 127 // Called on receipt of RTCP report block from remote side. | 118 // Called on receipt of RTCP report block from remote side. |
| 128 void RegisterSendChannelRtcpStatisticsCallback( | 119 void RegisterSendChannelRtcpStatisticsCallback( |
| 129 RtcpStatisticsCallback* callback); | 120 RtcpStatisticsCallback* callback); |
| 130 | 121 |
| 131 // Gets send statistics for the rtp and rtx stream. | 122 // Gets send statistics for the rtp and rtx stream. |
| 132 void GetSendStreamDataCounters(StreamDataCounters* rtp_counters, | 123 void GetSendStreamDataCounters(StreamDataCounters* rtp_counters, |
| 133 StreamDataCounters* rtx_counters) const; | 124 StreamDataCounters* rtx_counters) const; |
| 134 | 125 |
| 135 // Gets received stream data counters. | 126 // Gets received stream data counters. |
| 136 void GetReceiveStreamDataCounters(StreamDataCounters* rtp_counters, | 127 void GetReceiveStreamDataCounters(StreamDataCounters* rtp_counters, |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 PacedSender* const paced_sender_; | 359 PacedSender* const paced_sender_; |
| 369 PacketRouter* const packet_router_; | 360 PacketRouter* const packet_router_; |
| 370 | 361 |
| 371 const rtc::scoped_ptr<RtcpBandwidthObserver> bandwidth_observer_; | 362 const rtc::scoped_ptr<RtcpBandwidthObserver> bandwidth_observer_; |
| 372 TransportFeedbackObserver* const transport_feedback_observer_; | 363 TransportFeedbackObserver* const transport_feedback_observer_; |
| 373 | 364 |
| 374 int nack_history_size_sender_; | 365 int nack_history_size_sender_; |
| 375 int max_nack_reordering_threshold_; | 366 int max_nack_reordering_threshold_; |
| 376 I420FrameCallback* pre_render_callback_ GUARDED_BY(crit_); | 367 I420FrameCallback* pre_render_callback_ GUARDED_BY(crit_); |
| 377 | 368 |
| 378 const rtc::scoped_ptr<ReportBlockStats> report_block_stats_sender_; | |
| 379 | |
| 380 int64_t time_of_first_rtt_ms_ GUARDED_BY(crit_); | |
| 381 int64_t rtt_sum_ms_ GUARDED_BY(crit_); | |
| 382 int64_t last_rtt_ms_ GUARDED_BY(crit_); | 369 int64_t last_rtt_ms_ GUARDED_BY(crit_); |
| 383 size_t num_rtts_ GUARDED_BY(crit_); | |
| 384 | 370 |
| 385 // RtpRtcp modules, declared last as they use other members on construction. | 371 // RtpRtcp modules, declared last as they use other members on construction. |
| 386 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 372 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
| 387 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); | 373 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); |
| 388 }; | 374 }; |
| 389 | 375 |
| 390 } // namespace webrtc | 376 } // namespace webrtc |
| 391 | 377 |
| 392 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ | 378 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ |
| OLD | NEW |