Chromium Code Reviews| 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; | 39 typedef std::map<int8_t, Payload*> PayloadTypeMap; |
|
danilchap
2016/11/23 19:06:18
likely can remove this typedef now
magjed_webrtc
2016/11/24 12:20:39
I tried, but it was used in PossiblyRemoveExisting
| |
| 40 | 40 |
| 41 bool StringCompare(const char* str1, const char* str2, const uint32_t length); | 41 bool StringCompare(const char* str1, const char* str2, const uint32_t length); |
|
danilchap
2016/11/23 19:06:18
these two function are not specific to rtp.
May be
magjed_webrtc
2016/11/24 12:20:39
I asked tommi@ about this. He thinks it's best to
danilchap
2016/11/24 13:24:36
using _stricmp directly instead of introducing a n
magjed_webrtc
2016/11/24 14:29:29
True, done.
| |
| 42 bool StringCompare(const char* str1, const char* str2); | |
| 42 | 43 |
| 43 // Round up to the nearest size that is a multiple of 4. | 44 // Round up to the nearest size that is a multiple of 4. |
| 44 size_t Word32Align(size_t size); | 45 size_t Word32Align(size_t size); |
| 45 | 46 |
| 46 class RtpHeaderParser { | 47 class RtpHeaderParser { |
| 47 public: | 48 public: |
| 48 RtpHeaderParser(const uint8_t* rtpData, size_t rtpDataLength); | 49 RtpHeaderParser(const uint8_t* rtpData, size_t rtpDataLength); |
| 49 ~RtpHeaderParser(); | 50 ~RtpHeaderParser(); |
| 50 | 51 |
| 51 bool RTCP() const; | 52 bool RTCP() const; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 62 uint8_t ParsePaddingBytes(const uint8_t* ptrRTPDataExtensionEnd, | 63 uint8_t ParsePaddingBytes(const uint8_t* ptrRTPDataExtensionEnd, |
| 63 const uint8_t* ptr) const; | 64 const uint8_t* ptr) const; |
| 64 | 65 |
| 65 const uint8_t* const _ptrRTPDataBegin; | 66 const uint8_t* const _ptrRTPDataBegin; |
| 66 const uint8_t* const _ptrRTPDataEnd; | 67 const uint8_t* const _ptrRTPDataEnd; |
| 67 }; | 68 }; |
| 68 } // namespace RtpUtility | 69 } // namespace RtpUtility |
| 69 } // namespace webrtc | 70 } // namespace webrtc |
| 70 | 71 |
| 71 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_UTILITY_H_ | 72 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_UTILITY_H_ |
| OLD | NEW |