| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 base::TimeDelta* min_rtt, | 109 base::TimeDelta* min_rtt, |
| 110 base::TimeDelta* max_rtt) const; | 110 base::TimeDelta* max_rtt) const; |
| 111 bool RtpTimestampInSenderTime(int frequency, | 111 bool RtpTimestampInSenderTime(int frequency, |
| 112 uint32 rtp_timestamp, | 112 uint32 rtp_timestamp, |
| 113 base::TimeTicks* rtp_timestamp_in_ticks) const; | 113 base::TimeTicks* rtp_timestamp_in_ticks) const; |
| 114 | 114 |
| 115 // Set the history size to record Cast receiver events. The event history is | 115 // Set the history size to record Cast receiver events. The event history is |
| 116 // used to remove duplicates. The history will store at most |size| events. | 116 // used to remove duplicates. The history will store at most |size| events. |
| 117 void SetCastReceiverEventHistorySize(size_t size); | 117 void SetCastReceiverEventHistorySize(size_t size); |
| 118 | 118 |
| 119 // Update the target delay. Will be added to every sender report. |
| 120 void SetTargetDelay(base::TimeDelta target_delay); |
| 121 |
| 119 protected: | 122 protected: |
| 120 int CheckForWrapAround(uint32 new_timestamp, uint32 old_timestamp) const; | 123 int CheckForWrapAround(uint32 new_timestamp, uint32 old_timestamp) const; |
| 121 | 124 |
| 122 void OnReceivedLipSyncInfo(uint32 rtp_timestamp, | 125 void OnReceivedLipSyncInfo(uint32 rtp_timestamp, |
| 123 uint32 ntp_seconds, | 126 uint32 ntp_seconds, |
| 124 uint32 ntp_fraction); | 127 uint32 ntp_fraction); |
| 125 | 128 |
| 126 private: | 129 private: |
| 127 friend class LocalRtcpRttFeedback; | 130 friend class LocalRtcpRttFeedback; |
| 128 friend class LocalRtcpReceiverFeedback; | 131 friend class LocalRtcpReceiverFeedback; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 185 |
| 183 uint32 last_received_rtp_timestamp_; | 186 uint32 last_received_rtp_timestamp_; |
| 184 uint32 last_received_ntp_seconds_; | 187 uint32 last_received_ntp_seconds_; |
| 185 uint32 last_received_ntp_fraction_; | 188 uint32 last_received_ntp_fraction_; |
| 186 | 189 |
| 187 base::TimeDelta rtt_; | 190 base::TimeDelta rtt_; |
| 188 base::TimeDelta min_rtt_; | 191 base::TimeDelta min_rtt_; |
| 189 base::TimeDelta max_rtt_; | 192 base::TimeDelta max_rtt_; |
| 190 int number_of_rtt_in_avg_; | 193 int number_of_rtt_in_avg_; |
| 191 float avg_rtt_ms_; | 194 float avg_rtt_ms_; |
| 195 uint16 target_delay_ms_; |
| 192 | 196 |
| 193 DISALLOW_COPY_AND_ASSIGN(Rtcp); | 197 DISALLOW_COPY_AND_ASSIGN(Rtcp); |
| 194 }; | 198 }; |
| 195 | 199 |
| 196 } // namespace cast | 200 } // namespace cast |
| 197 } // namespace media | 201 } // namespace media |
| 198 | 202 |
| 199 #endif // MEDIA_CAST_RTCP_RTCP_H_ | 203 #endif // MEDIA_CAST_RTCP_RTCP_H_ |
| OLD | NEW |