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

Side by Side Diff: webrtc/config.h

Issue 1984983002: Remove use of RtpHeaderExtension and clean up (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed nit Created 4 years, 7 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Payload type used for RED packets. 46 // Payload type used for RED packets.
47 int red_payload_type; 47 int red_payload_type;
48 48
49 // RTX payload type for RED payload. 49 // RTX payload type for RED payload.
50 int red_rtx_payload_type; 50 int red_rtx_payload_type;
51 }; 51 };
52 52
53 // RTP header extension, see RFC 5285. 53 // RTP header extension, see RFC 5285.
54 struct RtpExtension { 54 struct RtpExtension {
55 RtpExtension(const std::string& name, int id) : name(name), id(id) {} 55 RtpExtension() : id(0) {}
56 RtpExtension(const std::string& uri, int id) : uri(uri), id(id) {}
56 std::string ToString() const; 57 std::string ToString() const;
57 bool operator==(const RtpExtension& rhs) const { 58 bool operator==(const RtpExtension& rhs) const {
58 return name == rhs.name && id == rhs.id; 59 return uri == rhs.uri && id == rhs.id;
59 } 60 }
60 static bool IsSupportedForAudio(const std::string& name); 61 static bool IsSupportedForAudio(const std::string& uri);
61 static bool IsSupportedForVideo(const std::string& name); 62 static bool IsSupportedForVideo(const std::string& uri);
62 63
63 static const char* kTOffset; 64 static const char* kAudioLevelUri;
perkj_webrtc 2016/05/19 16:40:59 please add the links to the description that you r
Irfan 2016/05/19 16:54:58 Done.
64 static const char* kAbsSendTime; 65 static const int kAudioLevelDefaultId;
65 static const char* kVideoRotation; 66
66 static const char* kAudioLevel; 67 static const char* kTimestampOffsetUri;
67 static const char* kTransportSequenceNumber; 68 static const int kTimestampOffsetDefaultId;
68 std::string name; 69
70 static const char* kAbsSendTimeUri;
71 static const int kAbsSendTimeDefaultId;
72
73 static const char* kVideoRotationUri;
74 static const int kVideoRotationDefaultId;
75
76 static const char* kTransportSequenceNumberUri;
77 static const int kTransportSequenceNumberDefaultId;
78
79 std::string uri;
69 int id; 80 int id;
70 }; 81 };
71 82
72 struct VideoStream { 83 struct VideoStream {
73 VideoStream(); 84 VideoStream();
74 ~VideoStream(); 85 ~VideoStream();
75 std::string ToString() const; 86 std::string ToString() const;
76 87
77 size_t width; 88 size_t width;
78 size_t height; 89 size_t height;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 struct VoicePacing { 155 struct VoicePacing {
145 VoicePacing() : enabled(false) {} 156 VoicePacing() : enabled(false) {}
146 explicit VoicePacing(bool value) : enabled(value) {} 157 explicit VoicePacing(bool value) : enabled(value) {}
147 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing; 158 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing;
148 bool enabled; 159 bool enabled;
149 }; 160 };
150 161
151 } // namespace webrtc 162 } // namespace webrtc
152 163
153 #endif // WEBRTC_CONFIG_H_ 164 #endif // WEBRTC_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698