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_UTILITY_H_ | 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_UTILITY_H_ |
6 #define MEDIA_CAST_RTCP_RTCP_UTILITY_H_ | 6 #define MEDIA_CAST_NET_RTCP_RTCP_UTILITY_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/big_endian.h" | 11 #include "base/big_endian.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "media/cast/logging/logging_defines.h" | 13 #include "media/cast/logging/logging_defines.h" |
14 #include "media/cast/net/cast_transport_config.h" | 14 #include "media/cast/net/cast_transport_config.h" |
15 #include "media/cast/net/rtcp/rtcp_defines.h" | 15 #include "media/cast/net/rtcp/rtcp_defines.h" |
16 | 16 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Maps a base::TimeTicks value to an NTP timestamp comprised of two components. | 132 // Maps a base::TimeTicks value to an NTP timestamp comprised of two components. |
133 void ConvertTimeTicksToNtp(const base::TimeTicks& time, | 133 void ConvertTimeTicksToNtp(const base::TimeTicks& time, |
134 uint32_t* ntp_seconds, | 134 uint32_t* ntp_seconds, |
135 uint32_t* ntp_fractions); | 135 uint32_t* ntp_fractions); |
136 | 136 |
137 // Maps an NTP timestamp, comprised of two components, to a base::TimeTicks | 137 // Maps an NTP timestamp, comprised of two components, to a base::TimeTicks |
138 // value. | 138 // value. |
139 base::TimeTicks ConvertNtpToTimeTicks(uint32_t ntp_seconds, | 139 base::TimeTicks ConvertNtpToTimeTicks(uint32_t ntp_seconds, |
140 uint32_t ntp_fractions); | 140 uint32_t ntp_fractions); |
141 | 141 |
| 142 bool IsRtcpPacket(const uint8_t* packet, size_t length); |
| 143 |
| 144 uint32_t GetSsrcOfSender(const uint8_t* rtcp_buffer, size_t length); |
| 145 |
142 } // namespace cast | 146 } // namespace cast |
143 } // namespace media | 147 } // namespace media |
144 | 148 |
145 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_ | 149 #endif // MEDIA_CAST_NET_RTCP_RTCP_UTILITY_H_ |
OLD | NEW |