OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_RTCP_RTCP_H_ | 5 #ifndef MEDIA_CAST_RTCP_RTCP_H_ |
6 #define MEDIA_CAST_RTCP_RTCP_H_ | 6 #define MEDIA_CAST_RTCP_RTCP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 Rtcp(scoped_refptr<CastEnvironment> cast_environment, | 61 Rtcp(scoped_refptr<CastEnvironment> cast_environment, |
62 RtcpSenderFeedback* sender_feedback, | 62 RtcpSenderFeedback* sender_feedback, |
63 transport::CastTransportSender* const transport_sender, // Send-side. | 63 transport::CastTransportSender* const transport_sender, // Send-side. |
64 transport::PacedPacketSender* paced_packet_sender, // Receive side. | 64 transport::PacedPacketSender* paced_packet_sender, // Receive side. |
65 RtpReceiverStatistics* rtp_receiver_statistics, | 65 RtpReceiverStatistics* rtp_receiver_statistics, |
66 RtcpMode rtcp_mode, | 66 RtcpMode rtcp_mode, |
67 const base::TimeDelta& rtcp_interval, | 67 const base::TimeDelta& rtcp_interval, |
68 uint32 local_ssrc, | 68 uint32 local_ssrc, |
69 uint32 remote_ssrc, | 69 uint32 remote_ssrc, |
70 const std::string& c_name, | 70 const std::string& c_name, |
71 bool is_audio); | 71 EventMediaType event_media_type); |
72 | 72 |
73 virtual ~Rtcp(); | 73 virtual ~Rtcp(); |
74 | 74 |
75 static bool IsRtcpPacket(const uint8* rtcp_buffer, size_t length); | 75 static bool IsRtcpPacket(const uint8* rtcp_buffer, size_t length); |
76 | 76 |
77 static uint32 GetSsrcOfSender(const uint8* rtcp_buffer, size_t length); | 77 static uint32 GetSsrcOfSender(const uint8* rtcp_buffer, size_t length); |
78 | 78 |
79 base::TimeTicks TimeToSendNextRtcpReport(); | 79 base::TimeTicks TimeToSendNextRtcpReport(); |
80 | 80 |
81 // Send a RTCP sender report. | 81 // Send a RTCP sender report. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 uint32 last_ntp_seconds, | 149 uint32 last_ntp_seconds, |
150 uint32 last_ntp_fraction); | 150 uint32 last_ntp_fraction); |
151 | 151 |
152 scoped_refptr<CastEnvironment> cast_environment_; | 152 scoped_refptr<CastEnvironment> cast_environment_; |
153 transport::CastTransportSender* const transport_sender_; | 153 transport::CastTransportSender* const transport_sender_; |
154 const base::TimeDelta rtcp_interval_; | 154 const base::TimeDelta rtcp_interval_; |
155 const RtcpMode rtcp_mode_; | 155 const RtcpMode rtcp_mode_; |
156 const uint32 local_ssrc_; | 156 const uint32 local_ssrc_; |
157 const uint32 remote_ssrc_; | 157 const uint32 remote_ssrc_; |
158 const std::string c_name_; | 158 const std::string c_name_; |
| 159 const EventMediaType event_media_type_; |
159 | 160 |
160 // Not owned by this class. | 161 // Not owned by this class. |
161 RtpReceiverStatistics* const rtp_receiver_statistics_; | 162 RtpReceiverStatistics* const rtp_receiver_statistics_; |
162 | 163 |
163 scoped_ptr<LocalRtcpRttFeedback> rtt_feedback_; | 164 scoped_ptr<LocalRtcpRttFeedback> rtt_feedback_; |
164 scoped_ptr<LocalRtcpReceiverFeedback> receiver_feedback_; | 165 scoped_ptr<LocalRtcpReceiverFeedback> receiver_feedback_; |
165 scoped_ptr<RtcpSender> rtcp_sender_; | 166 scoped_ptr<RtcpSender> rtcp_sender_; |
166 scoped_ptr<RtcpReceiver> rtcp_receiver_; | 167 scoped_ptr<RtcpReceiver> rtcp_receiver_; |
167 | 168 |
168 base::TimeTicks next_time_to_send_rtcp_; | 169 base::TimeTicks next_time_to_send_rtcp_; |
(...skipping 19 matching lines...) Expand all Loading... |
188 // manner (e.g., about once per second). | 189 // manner (e.g., about once per second). |
189 uint32 lip_sync_rtp_timestamp_; | 190 uint32 lip_sync_rtp_timestamp_; |
190 uint64 lip_sync_ntp_timestamp_; | 191 uint64 lip_sync_ntp_timestamp_; |
191 | 192 |
192 base::TimeDelta rtt_; | 193 base::TimeDelta rtt_; |
193 base::TimeDelta min_rtt_; | 194 base::TimeDelta min_rtt_; |
194 base::TimeDelta max_rtt_; | 195 base::TimeDelta max_rtt_; |
195 int number_of_rtt_in_avg_; | 196 int number_of_rtt_in_avg_; |
196 double avg_rtt_ms_; | 197 double avg_rtt_ms_; |
197 uint16 target_delay_ms_; | 198 uint16 target_delay_ms_; |
198 bool is_audio_; | |
199 | 199 |
200 DISALLOW_COPY_AND_ASSIGN(Rtcp); | 200 DISALLOW_COPY_AND_ASSIGN(Rtcp); |
201 }; | 201 }; |
202 | 202 |
203 } // namespace cast | 203 } // namespace cast |
204 } // namespace media | 204 } // namespace media |
205 | 205 |
206 #endif // MEDIA_CAST_RTCP_RTCP_H_ | 206 #endif // MEDIA_CAST_RTCP_RTCP_H_ |
OLD | NEW |