OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 ReceiveStatistics* NullObjectReceiveStatistics(); | 29 ReceiveStatistics* NullObjectReceiveStatistics(); |
30 | 30 |
31 namespace RtpUtility { | 31 namespace RtpUtility { |
32 | 32 |
33 struct Payload { | 33 struct Payload { |
34 char name[RTP_PAYLOAD_NAME_SIZE]; | 34 char name[RTP_PAYLOAD_NAME_SIZE]; |
35 bool audio; | 35 bool audio; |
36 PayloadUnion typeSpecific; | 36 PayloadUnion typeSpecific; |
37 }; | 37 }; |
38 | 38 |
39 typedef std::map<int8_t, Payload*> PayloadTypeMap; | |
40 | |
41 bool StringCompare(const char* str1, const char* str2, const uint32_t length); | 39 bool StringCompare(const char* str1, const char* str2, const uint32_t length); |
| 40 bool StringCompare(const char* str1, const char* str2); |
42 | 41 |
43 // Round up to the nearest size that is a multiple of 4. | 42 // Round up to the nearest size that is a multiple of 4. |
44 size_t Word32Align(size_t size); | 43 size_t Word32Align(size_t size); |
45 | 44 |
46 class RtpHeaderParser { | 45 class RtpHeaderParser { |
47 public: | 46 public: |
48 RtpHeaderParser(const uint8_t* rtpData, size_t rtpDataLength); | 47 RtpHeaderParser(const uint8_t* rtpData, size_t rtpDataLength); |
49 ~RtpHeaderParser(); | 48 ~RtpHeaderParser(); |
50 | 49 |
51 bool RTCP() const; | 50 bool RTCP() const; |
(...skipping 10 matching lines...) Expand all Loading... |
62 uint8_t ParsePaddingBytes(const uint8_t* ptrRTPDataExtensionEnd, | 61 uint8_t ParsePaddingBytes(const uint8_t* ptrRTPDataExtensionEnd, |
63 const uint8_t* ptr) const; | 62 const uint8_t* ptr) const; |
64 | 63 |
65 const uint8_t* const _ptrRTPDataBegin; | 64 const uint8_t* const _ptrRTPDataBegin; |
66 const uint8_t* const _ptrRTPDataEnd; | 65 const uint8_t* const _ptrRTPDataEnd; |
67 }; | 66 }; |
68 } // namespace RtpUtility | 67 } // namespace RtpUtility |
69 } // namespace webrtc | 68 } // namespace webrtc |
70 | 69 |
71 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_UTILITY_H_ | 70 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_UTILITY_H_ |
OLD | NEW |