| 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 25 matching lines...) Expand all Loading... |
| 36 CreateExtensionInfo<AudioLevel>(), | 36 CreateExtensionInfo<AudioLevel>(), |
| 37 CreateExtensionInfo<AbsoluteSendTime>(), | 37 CreateExtensionInfo<AbsoluteSendTime>(), |
| 38 CreateExtensionInfo<VideoOrientation>(), | 38 CreateExtensionInfo<VideoOrientation>(), |
| 39 CreateExtensionInfo<TransportSequenceNumber>(), | 39 CreateExtensionInfo<TransportSequenceNumber>(), |
| 40 CreateExtensionInfo<PlayoutDelayLimits>(), | 40 CreateExtensionInfo<PlayoutDelayLimits>(), |
| 41 CreateExtensionInfo<VideoContentTypeExtension>(), | 41 CreateExtensionInfo<VideoContentTypeExtension>(), |
| 42 CreateExtensionInfo<VideoTimingExtension>(), | 42 CreateExtensionInfo<VideoTimingExtension>(), |
| 43 CreateExtensionInfo<RtpStreamId>(), | 43 CreateExtensionInfo<RtpStreamId>(), |
| 44 CreateExtensionInfo<RepairedRtpStreamId>(), | 44 CreateExtensionInfo<RepairedRtpStreamId>(), |
| 45 CreateExtensionInfo<RtpMid>(), | 45 CreateExtensionInfo<RtpMid>(), |
| 46 CreateExtensionInfo<FrameMarking>(), |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 // Because of kRtpExtensionNone, NumberOfExtension is 1 bigger than the actual | 49 // Because of kRtpExtensionNone, NumberOfExtension is 1 bigger than the actual |
| 49 // number of known extensions. | 50 // number of known extensions. |
| 50 static_assert(arraysize(kExtensions) == | 51 static_assert(arraysize(kExtensions) == |
| 51 static_cast<int>(kRtpExtensionNumberOfExtensions) - 1, | 52 static_cast<int>(kRtpExtensionNumberOfExtensions) - 1, |
| 52 "kExtensions expect to list all known extensions"); | 53 "kExtensions expect to list all known extensions"); |
| 53 | 54 |
| 54 } // namespace | 55 } // namespace |
| 55 | 56 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 return false; | 141 return false; |
| 141 } | 142 } |
| 142 RTC_DCHECK(!IsRegistered(type)); | 143 RTC_DCHECK(!IsRegistered(type)); |
| 143 | 144 |
| 144 types_[id] = type; | 145 types_[id] = type; |
| 145 ids_[type] = id; | 146 ids_[type] = id; |
| 146 return true; | 147 return true; |
| 147 } | 148 } |
| 148 | 149 |
| 149 } // namespace webrtc | 150 } // namespace webrtc |
| OLD | NEW |