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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "media/cast/cast_config.h" | 12 #include "media/cast/cast_config.h" |
13 #include "media/cast/cast_defines.h" | 13 #include "media/cast/cast_defines.h" |
14 #include "media/cast/logging/logging_defines.h" | 14 #include "media/cast/logging/logging_defines.h" |
15 #include "media/cast/net/cast_net_defines.h" | 15 #include "media/cast/transport/cast_transport_defines.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 namespace cast { | 18 namespace cast { |
19 | 19 |
20 // Handle the per frame ACK and NACK messages. | 20 // Handle the per frame ACK and NACK messages. |
21 class RtcpCastMessage { | 21 class RtcpCastMessage { |
22 public: | 22 public: |
23 explicit RtcpCastMessage(uint32 media_ssrc); | 23 explicit RtcpCastMessage(uint32 media_ssrc); |
24 ~RtcpCastMessage(); | 24 ~RtcpCastMessage(); |
25 | 25 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 uint32 remb_bitrate; | 72 uint32 remb_bitrate; |
73 std::list<uint32> remb_ssrcs; | 73 std::list<uint32> remb_ssrcs; |
74 }; | 74 }; |
75 | 75 |
76 struct RtcpReceiverReferenceTimeReport { | 76 struct RtcpReceiverReferenceTimeReport { |
77 uint32 remote_ssrc; | 77 uint32 remote_ssrc; |
78 uint32 ntp_seconds; | 78 uint32 ntp_seconds; |
79 uint32 ntp_fraction; | 79 uint32 ntp_fraction; |
80 }; | 80 }; |
81 | 81 |
82 inline bool operator==(RtcpSenderInfo lhs, RtcpSenderInfo rhs) { | |
83 return lhs.ntp_seconds == rhs.ntp_seconds && | |
84 lhs.ntp_fraction == rhs.ntp_fraction && | |
85 lhs.rtp_timestamp == rhs.rtp_timestamp && | |
86 lhs.send_packet_count == rhs.send_packet_count && | |
87 lhs.send_octet_count == rhs.send_octet_count; | |
88 } | |
89 | |
90 inline bool operator==(RtcpReceiverReferenceTimeReport lhs, | 82 inline bool operator==(RtcpReceiverReferenceTimeReport lhs, |
91 RtcpReceiverReferenceTimeReport rhs) { | 83 RtcpReceiverReferenceTimeReport rhs) { |
92 return lhs.remote_ssrc == rhs.remote_ssrc && | 84 return lhs.remote_ssrc == rhs.remote_ssrc && |
93 lhs.ntp_seconds == rhs.ntp_seconds && | 85 lhs.ntp_seconds == rhs.ntp_seconds && |
94 lhs.ntp_fraction == rhs.ntp_fraction; | 86 lhs.ntp_fraction == rhs.ntp_fraction; |
95 } | 87 } |
96 | 88 |
97 } // namespace cast | 89 } // namespace cast |
98 } // namespace media | 90 } // namespace media |
99 | 91 |
100 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ | 92 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ |
OLD | NEW |