| 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_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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 inline bool operator==(RtcpReceiverReferenceTimeReport lhs, | 105 inline bool operator==(RtcpReceiverReferenceTimeReport lhs, |
| 106 RtcpReceiverReferenceTimeReport rhs) { | 106 RtcpReceiverReferenceTimeReport rhs) { |
| 107 return lhs.remote_ssrc == rhs.remote_ssrc && | 107 return lhs.remote_ssrc == rhs.remote_ssrc && |
| 108 lhs.ntp_seconds == rhs.ntp_seconds && | 108 lhs.ntp_seconds == rhs.ntp_seconds && |
| 109 lhs.ntp_fraction == rhs.ntp_fraction; | 109 lhs.ntp_fraction == rhs.ntp_fraction; |
| 110 } | 110 } |
| 111 | 111 |
| 112 // Struct used by raw event subscribers as an intermediate format before | 112 // Struct used by raw event subscribers as an intermediate format before |
| 113 // sending off to the other side via RTCP. | 113 // sending off to the other side via RTCP. |
| 114 // (i.e., WindowedRtcpEventRtp{Sender,Receiver}Subscriber) | 114 // (i.e., {Sender,Receiver}RtcpEventSubscriber) |
| 115 struct RtcpEvent { | 115 struct RtcpEvent { |
| 116 RtcpEvent(); | 116 RtcpEvent(); |
| 117 ~RtcpEvent(); | 117 ~RtcpEvent(); |
| 118 | 118 |
| 119 CastLoggingEvent type; | 119 CastLoggingEvent type; |
| 120 | 120 |
| 121 // Time of event logged. | 121 // Time of event logged. |
| 122 base::TimeTicks timestamp; | 122 base::TimeTicks timestamp; |
| 123 | 123 |
| 124 // Render/playout delay. Only set for kAudioPlayoutDelay and | 124 // Render/playout delay. Only set for FRAME_PLAYOUT events. |
| 125 // kVideoRenderDelay events. | |
| 126 base::TimeDelta delay_delta; | 125 base::TimeDelta delay_delta; |
| 127 | 126 |
| 128 // Only set for packet events. (kAudioPacketReceived, kVideoPacketReceived) | 127 // Only set for packet events. |
| 129 uint16 packet_id; | 128 uint16 packet_id; |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace cast | 131 } // namespace cast |
| 133 } // namespace media | 132 } // namespace media |
| 134 | 133 |
| 135 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 134 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ |
| OLD | NEW |