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

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: Created 5 years 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
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 <list> 8 #include <list>
9 #include <utility>
10 #include <vector>
9 11
10 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "media/cast/logging/logging_defines.h" 14 #include "media/cast/logging/logging_defines.h"
13 #include "media/cast/net/cast_transport_defines.h" 15 #include "media/cast/net/cast_transport_defines.h"
14 16
15 namespace media { 17 namespace media {
16 namespace cast { 18 namespace cast {
17 19
18 static const size_t kRtcpCastLogHeaderSize = 12; 20 static const size_t kRtcpCastLogHeaderSize = 12;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 115
114 // TODO(hubbe): Document members of this struct. 116 // TODO(hubbe): Document members of this struct.
115 struct RtpReceiverStatistics { 117 struct RtpReceiverStatistics {
116 RtpReceiverStatistics(); 118 RtpReceiverStatistics();
117 uint8 fraction_lost; 119 uint8 fraction_lost;
118 uint32 cumulative_lost; // 24 bits valid. 120 uint32 cumulative_lost; // 24 bits valid.
119 uint32 extended_high_sequence_number; 121 uint32 extended_high_sequence_number;
120 uint32 jitter; 122 uint32 jitter;
121 }; 123 };
122 124
123 // These are intended to only be created using Rtcp::ConvertToNTPAndSave. 125 // Created on a RTP receiver to be passed over IPC.
124 struct RtcpTimeData { 126 struct RtcpTimeData {
125 uint32 ntp_seconds; 127 uint32 ntp_seconds;
126 uint32 ntp_fraction; 128 uint32 ntp_fraction;
127 base::TimeTicks timestamp; 129 base::TimeTicks timestamp;
128 }; 130 };
129 131
130 // This struct is used to encapsulate all the parameters of the 132 // This struct is used to encapsulate all the parameters of the
131 // SendRtcpFromRtpReceiver for IPC transportation. 133 // SendRtcpFromRtpReceiver for IPC transportation.
132 struct SendRtcpFromRtpReceiver_Params { 134 struct SendRtcpFromRtpReceiver_Params {
133 SendRtcpFromRtpReceiver_Params(); 135 SendRtcpFromRtpReceiver_Params();
134 ~SendRtcpFromRtpReceiver_Params(); 136 ~SendRtcpFromRtpReceiver_Params();
135 uint32 ssrc; 137 uint32 ssrc;
136 uint32 sender_ssrc; 138 uint32 sender_ssrc;
137 RtcpTimeData time_data; 139 RtcpTimeData time_data;
138 scoped_ptr<RtcpCastMessage> cast_message; 140 scoped_ptr<RtcpCastMessage> cast_message;
139 base::TimeDelta target_delay; 141 base::TimeDelta target_delay;
140 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events; 142 scoped_ptr<std::vector<std::pair<RtpTimeTicks, RtcpEvent>>> rtcp_events;
141 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics; 143 scoped_ptr<RtpReceiverStatistics> rtp_receiver_statistics;
142 }; 144 };
143 145
144 146
145 } // namespace cast 147 } // namespace cast
146 } // namespace media 148 } // namespace media
147 149
148 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 150 #endif // MEDIA_CAST_NET_RTCP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698