Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: media/cast/net/rtcp/rtcp_utility.h

Issue 1520613004: cast: Split Rtcp into two for sender and receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timestamp
Patch Set: Rebased Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/net/rtcp/rtcp_unittest.cc ('k') | media/cast/net/rtcp/rtcp_utility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp_unittest.cc ('k') | media/cast/net/rtcp/rtcp_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698