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_NET_RTCP_RTCP_DEFINES_H_ | 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ |
6 #define MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ | 6 #define MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 | 44 |
45 // Handle the per frame ACK and NACK messages. | 45 // Handle the per frame ACK and NACK messages. |
46 struct RtcpCastMessage { | 46 struct RtcpCastMessage { |
47 explicit RtcpCastMessage(uint32_t ssrc); | 47 explicit RtcpCastMessage(uint32_t ssrc); |
48 RtcpCastMessage(); | 48 RtcpCastMessage(); |
49 ~RtcpCastMessage(); | 49 ~RtcpCastMessage(); |
50 | 50 |
51 uint32_t media_ssrc; | 51 uint32_t media_ssrc; |
52 uint32_t ack_frame_id; | 52 uint32_t ack_frame_id; |
53 uint16_t target_delay_ms; | 53 uint16_t target_delay_ms; |
54 bool picture_loss_indicator; | |
miu
2016/02/26 23:36:06
This isn't part of the Cast Feedback message. I'd
xjz
2016/02/27 05:53:32
Done.
| |
54 MissingFramesAndPacketsMap missing_frames_and_packets; | 55 MissingFramesAndPacketsMap missing_frames_and_packets; |
55 }; | 56 }; |
56 | 57 |
57 // Log messages from receiver to sender. | 58 // Log messages from receiver to sender. |
58 struct RtcpReceiverEventLogMessage { | 59 struct RtcpReceiverEventLogMessage { |
59 RtcpReceiverEventLogMessage(); | 60 RtcpReceiverEventLogMessage(); |
60 ~RtcpReceiverEventLogMessage(); | 61 ~RtcpReceiverEventLogMessage(); |
61 | 62 |
62 CastLoggingEvent type; | 63 CastLoggingEvent type; |
63 base::TimeTicks event_timestamp; | 64 base::TimeTicks event_timestamp; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 base::TimeDelta delay_delta; | 110 base::TimeDelta delay_delta; |
110 | 111 |
111 // Only set for packet events. | 112 // Only set for packet events. |
112 uint16_t packet_id; | 113 uint16_t packet_id; |
113 }; | 114 }; |
114 | 115 |
115 typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback; | 116 typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback; |
116 typedef base::Callback<void(base::TimeDelta)> RtcpRttCallback; | 117 typedef base::Callback<void(base::TimeDelta)> RtcpRttCallback; |
117 typedef | 118 typedef |
118 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; | 119 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; |
120 typedef base::Callback<void()> RtcpPliCallback; | |
119 | 121 |
120 // TODO(hubbe): Document members of this struct. | 122 // TODO(hubbe): Document members of this struct. |
121 struct RtpReceiverStatistics { | 123 struct RtpReceiverStatistics { |
122 RtpReceiverStatistics(); | 124 RtpReceiverStatistics(); |
123 uint8_t fraction_lost; | 125 uint8_t fraction_lost; |
124 uint32_t cumulative_lost; // 24 bits valid. | 126 uint32_t cumulative_lost; // 24 bits valid. |
125 uint32_t extended_high_sequence_number; | 127 uint32_t extended_high_sequence_number; |
126 uint32_t jitter; | 128 uint32_t jitter; |
127 }; | 129 }; |
128 | 130 |
(...skipping 16 matching lines...) Expand all Loading... | |
145 base::TimeDelta target_delay; | 147 base::TimeDelta target_delay; |
146 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events; | 148 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events; |
147 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; | 149 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; |
148 }; | 150 }; |
149 | 151 |
150 | 152 |
151 } // namespace cast | 153 } // namespace cast |
152 } // namespace media | 154 } // namespace media |
153 | 155 |
154 #endif // MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ | 156 #endif // MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_ |
OLD | NEW |