Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_header_extension_map.cc

Issue 2911193002: Implement timing frames. (Closed)
Patch Set: Implement Holmer@ comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 } 32 }
33 33
34 constexpr ExtensionInfo kExtensions[] = { 34 constexpr ExtensionInfo kExtensions[] = {
35 CreateExtensionInfo<TransmissionOffset>(), 35 CreateExtensionInfo<TransmissionOffset>(),
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<RtpStreamId>(), 43 CreateExtensionInfo<RtpStreamId>(),
43 CreateExtensionInfo<RepairedRtpStreamId>(), 44 CreateExtensionInfo<RepairedRtpStreamId>(),
44 }; 45 };
45 46
46 // Because of kRtpExtensionNone, NumberOfExtension is 1 bigger than the actual 47 // Because of kRtpExtensionNone, NumberOfExtension is 1 bigger than the actual
47 // number of known extensions. 48 // number of known extensions.
48 static_assert(arraysize(kExtensions) == 49 static_assert(arraysize(kExtensions) ==
49 static_cast<int>(kRtpExtensionNumberOfExtensions) - 1, 50 static_cast<int>(kRtpExtensionNumberOfExtensions) - 1,
50 "kExtensions expect to list all known extensions"); 51 "kExtensions expect to list all known extensions");
51 52
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return false; 139 return false;
139 } 140 }
140 RTC_DCHECK(!IsRegistered(type)); 141 RTC_DCHECK(!IsRegistered(type));
141 142
142 types_[id] = type; 143 types_[id] = type;
143 ids_[type] = id; 144 ids_[type] = id;
144 return true; 145 return true;
145 } 146 }
146 147
147 } // namespace webrtc 148 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698