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

Side by Side Diff: media/cast/net/rtcp/rtcp_defines.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.cc ('k') | media/cast/net/rtcp/rtcp_session.h » ('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_DEFINES_H_ 5 #ifndef MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_
6 #define MEDIA_CAST_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
11 #include <list> 11 #include <list>
12 #include <utility>
13 #include <vector>
12 14
13 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
14 #include "base/macros.h" 16 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
16 #include "media/cast/logging/logging_defines.h" 18 #include "media/cast/logging/logging_defines.h"
17 #include "media/cast/net/cast_transport_defines.h" 19 #include "media/cast/net/cast_transport_defines.h"
18 20
19 namespace media { 21 namespace media {
20 namespace cast { 22 namespace cast {
21 23
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 119
118 // TODO(hubbe): Document members of this struct. 120 // TODO(hubbe): Document members of this struct.
119 struct RtpReceiverStatistics { 121 struct RtpReceiverStatistics {
120 RtpReceiverStatistics(); 122 RtpReceiverStatistics();
121 uint8_t fraction_lost; 123 uint8_t fraction_lost;
122 uint32_t cumulative_lost; // 24 bits valid. 124 uint32_t cumulative_lost; // 24 bits valid.
123 uint32_t extended_high_sequence_number; 125 uint32_t extended_high_sequence_number;
124 uint32_t jitter; 126 uint32_t jitter;
125 }; 127 };
126 128
127 // These are intended to only be created using Rtcp::ConvertToNTPAndSave. 129 // Created on a RTP receiver to be passed over IPC.
128 struct RtcpTimeData { 130 struct RtcpTimeData {
129 uint32_t ntp_seconds; 131 uint32_t ntp_seconds;
130 uint32_t ntp_fraction; 132 uint32_t ntp_fraction;
131 base::TimeTicks timestamp; 133 base::TimeTicks timestamp;
132 }; 134 };
133 135
134 // This struct is used to encapsulate all the parameters of the 136 // This struct is used to encapsulate all the parameters of the
135 // SendRtcpFromRtpReceiver for IPC transportation. 137 // SendRtcpFromRtpReceiver for IPC transportation.
136 struct SendRtcpFromRtpReceiver_Params { 138 struct SendRtcpFromRtpReceiver_Params {
137 SendRtcpFromRtpReceiver_Params(); 139 SendRtcpFromRtpReceiver_Params();
138 ~SendRtcpFromRtpReceiver_Params(); 140 ~SendRtcpFromRtpReceiver_Params();
139 uint32_t ssrc; 141 uint32_t ssrc;
140 uint32_t sender_ssrc; 142 uint32_t sender_ssrc;
141 RtcpTimeData time_data; 143 RtcpTimeData time_data;
142 scoped_ptr<RtcpCastMessage> cast_message; 144 scoped_ptr<RtcpCastMessage> cast_message;
143 base::TimeDelta target_delay; 145 base::TimeDelta target_delay;
144 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events; 146 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events;
145 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; 147 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics;
146 }; 148 };
147 149
148 150
149 } // namespace cast 151 } // namespace cast
150 } // namespace media 152 } // namespace media
151 153
152 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 154 #endif // MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp.cc ('k') | media/cast/net/rtcp/rtcp_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698