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

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

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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
257 class RtcpParser { 243 class RtcpParser {
258 public: 244 public:
259 RtcpParser(const uint8* rtcp_data, size_t rtcp_length); 245 RtcpParser(const uint8* rtcp_data, size_t rtcp_length);
260 ~RtcpParser(); 246 ~RtcpParser();
261 247
262 RtcpFieldTypes FieldType() const; 248 RtcpFieldTypes FieldType() const;
263 const RtcpField& Field() const; 249 const RtcpField& Field() const;
264 250
265 bool IsValid() const; 251 bool IsValid() const;
266 252
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 RtcpFieldTypes field_type_; 338 RtcpFieldTypes field_type_;
353 RtcpField field_; 339 RtcpField field_;
354 340
355 DISALLOW_COPY_AND_ASSIGN(RtcpParser); 341 DISALLOW_COPY_AND_ASSIGN(RtcpParser);
356 }; 342 };
357 343
358 } // namespace cast 344 } // namespace cast
359 } // namespace media 345 } // namespace media
360 346
361 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_ 347 #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