| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |