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