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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 uint32 rtp_timestamp_; | 52 uint32 rtp_timestamp_; |
53 RtcpReceiverEventLogMessages event_log_messages_; | 53 RtcpReceiverEventLogMessages event_log_messages_; |
54 | 54 |
55 // TODO(mikhal): Investigate what's the best way to allow adding | 55 // TODO(mikhal): Investigate what's the best way to allow adding |
56 // DISALLOW_COPY_AND_ASSIGN, as currently it contradicts the implementation | 56 // DISALLOW_COPY_AND_ASSIGN, as currently it contradicts the implementation |
57 // and possible changes have a big impact on design. | 57 // and possible changes have a big impact on design. |
58 }; | 58 }; |
59 | 59 |
60 typedef std::list<RtcpReceiverFrameLogMessage> RtcpReceiverLogMessage; | 60 typedef std::list<RtcpReceiverFrameLogMessage> RtcpReceiverLogMessage; |
61 | 61 |
62 struct RtcpRpsiMessage { | |
63 RtcpRpsiMessage(); | |
64 ~RtcpRpsiMessage(); | |
65 | |
66 uint32 remote_ssrc; | |
67 uint8 payload_type; | |
68 uint64 picture_id; | |
69 }; | |
70 | |
71 struct RtcpNackMessage { | 62 struct RtcpNackMessage { |
72 RtcpNackMessage(); | 63 RtcpNackMessage(); |
73 ~RtcpNackMessage(); | 64 ~RtcpNackMessage(); |
74 | 65 |
75 uint32 remote_ssrc; | 66 uint32 remote_ssrc; |
76 std::list<uint16> nack_list; | 67 std::list<uint16> nack_list; |
77 | 68 |
78 DISALLOW_COPY_AND_ASSIGN(RtcpNackMessage); | 69 DISALLOW_COPY_AND_ASSIGN(RtcpNackMessage); |
79 }; | 70 }; |
80 | 71 |
81 struct RtcpRembMessage { | |
82 RtcpRembMessage(); | |
83 ~RtcpRembMessage(); | |
84 | |
85 uint32 remb_bitrate; | |
86 std::list<uint32> remb_ssrcs; | |
87 | |
88 DISALLOW_COPY_AND_ASSIGN(RtcpRembMessage); | |
89 }; | |
90 | |
91 struct RtcpReceiverReferenceTimeReport { | 72 struct RtcpReceiverReferenceTimeReport { |
92 RtcpReceiverReferenceTimeReport(); | 73 RtcpReceiverReferenceTimeReport(); |
93 ~RtcpReceiverReferenceTimeReport(); | 74 ~RtcpReceiverReferenceTimeReport(); |
94 | 75 |
95 uint32 remote_ssrc; | 76 uint32 remote_ssrc; |
96 uint32 ntp_seconds; | 77 uint32 ntp_seconds; |
97 uint32 ntp_fraction; | 78 uint32 ntp_fraction; |
98 }; | 79 }; |
99 | 80 |
100 inline bool operator==(RtcpReceiverReferenceTimeReport lhs, | 81 inline bool operator==(RtcpReceiverReferenceTimeReport lhs, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 base::TimeDelta, | 119 base::TimeDelta, |
139 base::TimeDelta, | 120 base::TimeDelta, |
140 base::TimeDelta)> RtcpRttCallback; | 121 base::TimeDelta)> RtcpRttCallback; |
141 typedef | 122 typedef |
142 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; | 123 base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback; |
143 | 124 |
144 } // namespace cast | 125 } // namespace cast |
145 } // namespace media | 126 } // namespace media |
146 | 127 |
147 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 128 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ |
OLD | NEW |