OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DEFINES_H_ | 5 #ifndef MEDIA_CAST_RTCP_RTCP_DEFINES_H_ |
6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Only set for packet events. | 103 // Only set for packet events. |
104 uint16 packet_id; | 104 uint16 packet_id; |
105 }; | 105 }; |
106 | 106 |
107 typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback; | 107 typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback; |
108 typedef base::Callback<void(base::TimeDelta)> RtcpRttCallback; | 108 typedef base::Callback<void(base::TimeDelta)> RtcpRttCallback; |
109 typedef | 109 typedef |
110 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; | 110 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; |
111 | 111 |
| 112 // TODO(hubbe): Document members of this struct. |
| 113 struct RtpReceiverStatistics { |
| 114 RtpReceiverStatistics(); |
| 115 uint8 fraction_lost; |
| 116 uint32 cumulative_lost; // 24 bits valid. |
| 117 uint32 extended_high_sequence_number; |
| 118 uint32 jitter; |
| 119 }; |
| 120 |
| 121 // These are intended to only be created using Rtcp::ConvertToNTPAndSave. |
| 122 struct RtcpTimeData { |
| 123 uint32 ntp_seconds; |
| 124 uint32 ntp_fraction; |
| 125 base::TimeTicks timestamp; |
| 126 }; |
| 127 |
| 128 // This struct is used to encapsulate all the parameters of the |
| 129 // SendRtcpFromRtpReceiver for IPC transportation. |
| 130 struct SendRtcpFromRtpReceiver_Params { |
| 131 SendRtcpFromRtpReceiver_Params(); |
| 132 ~SendRtcpFromRtpReceiver_Params(); |
| 133 uint32 ssrc; |
| 134 uint32 sender_ssrc; |
| 135 RtcpTimeData time_data; |
| 136 scoped_ptr<RtcpCastMessage> cast_message; |
| 137 base::TimeDelta target_delay; |
| 138 scoped_ptr<std::vector<std::pair<RtpTimestamp, RtcpEvent> > > rtcp_events; |
| 139 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; |
| 140 }; |
| 141 |
| 142 |
112 } // namespace cast | 143 } // namespace cast |
113 } // namespace media | 144 } // namespace media |
114 | 145 |
115 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 146 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ |
OLD | NEW |