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

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

Issue 126843003: Revert of Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/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 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_UTILITY_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_UTILITY_H_
6 #define MEDIA_CAST_RTCP_RTCP_UTILITY_H_ 6 #define MEDIA_CAST_RTCP_RTCP_UTILITY_H_
7 7
8 #include "media/cast/cast_config.h" 8 #include "media/cast/cast_config.h"
9 #include "media/cast/cast_defines.h" 9 #include "media/cast/cast_defines.h"
10 #include "media/cast/rtcp/rtcp_defines.h" 10 #include "media/cast/rtcp/rtcp_defines.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 }; 233 };
234 234
235 struct RtcpCommonHeader { 235 struct RtcpCommonHeader {
236 uint8 V; // Version. 236 uint8 V; // Version.
237 bool P; // Padding. 237 bool P; // Padding.
238 uint8 IC; // Item count / subtype. 238 uint8 IC; // Item count / subtype.
239 uint8 PT; // Packet Type. 239 uint8 PT; // Packet Type.
240 uint16 length_in_octets; 240 uint16 length_in_octets;
241 }; 241 };
242 242
243 enum RtcpPacketTypes {
244 kPacketTypeLow = 194, // SMPTE time-code mapping.
245 kPacketTypeInterArrivalJitterReport = 195,
246 kPacketTypeSenderReport = 200,
247 kPacketTypeReceiverReport = 201,
248 kPacketTypeSdes = 202,
249 kPacketTypeBye = 203,
250 kPacketTypeApplicationDefined = 204,
251 kPacketTypeGenericRtpFeedback = 205,
252 kPacketTypePayloadSpecific = 206,
253 kPacketTypeXr = 207,
254 kPacketTypeHigh = 210, // Port Mapping.
255 };
256
243 class RtcpParser { 257 class RtcpParser {
244 public: 258 public:
245 RtcpParser(const uint8* rtcp_data, size_t rtcp_length); 259 RtcpParser(const uint8* rtcp_data, size_t rtcp_length);
246 ~RtcpParser(); 260 ~RtcpParser();
247 261
248 RtcpFieldTypes FieldType() const; 262 RtcpFieldTypes FieldType() const;
249 const RtcpField& Field() const; 263 const RtcpField& Field() const;
250 264
251 bool IsValid() const; 265 bool IsValid() const;
252 266
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 RtcpFieldTypes field_type_; 352 RtcpFieldTypes field_type_;
339 RtcpField field_; 353 RtcpField field_;
340 354
341 DISALLOW_COPY_AND_ASSIGN(RtcpParser); 355 DISALLOW_COPY_AND_ASSIGN(RtcpParser);
342 }; 356 };
343 357
344 } // namespace cast 358 } // namespace cast
345 } // namespace media 359 } // namespace media
346 360
347 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_ 361 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/rtcp/rtcp_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698