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

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: Addressed nit Created 4 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) 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 // Header extension for audio levels, as defined in:
64 static const char* kAbsSendTime; 65 // http://tools.ietf.org/html/draft-ietf-avtext-client-to-mixer-audio-level-03
65 static const char* kVideoRotation; 66 static const char* kAudioLevelUri;
66 static const char* kAudioLevel; 67 static const int kAudioLevelDefaultId;
67 static const char* kTransportSequenceNumber; 68
68 std::string name; 69 // Header extension for RTP timestamp offset, see RFC 5450 for details:
70 // http://tools.ietf.org/html/rfc5450
71 static const char* kTimestampOffsetUri;
72 static const int kTimestampOffsetDefaultId;
73
74 // Header extension for absolute send time, see url for details:
75 // http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
76 static const char* kAbsSendTimeUri;
77 static const int kAbsSendTimeDefaultId;
78
79 // Header extension for coordination of video orientation, see url for
80 // details:
81 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ts_126 114v120700p.pdf
82 static const char* kVideoRotationUri;
83 static const int kVideoRotationDefaultId;
84
85 // Header extension for transport sequence number, see url for details:
86 // http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions
87 static const char* kTransportSequenceNumberUri;
88 static const int kTransportSequenceNumberDefaultId;
89
90 std::string uri;
69 int id; 91 int id;
70 }; 92 };
71 93
72 struct VideoStream { 94 struct VideoStream {
73 VideoStream(); 95 VideoStream();
74 ~VideoStream(); 96 ~VideoStream();
75 std::string ToString() const; 97 std::string ToString() const;
76 98
77 size_t width; 99 size_t width;
78 size_t height; 100 size_t height;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 struct VoicePacing { 166 struct VoicePacing {
145 VoicePacing() : enabled(false) {} 167 VoicePacing() : enabled(false) {}
146 explicit VoicePacing(bool value) : enabled(value) {} 168 explicit VoicePacing(bool value) : enabled(value) {}
147 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing; 169 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing;
148 bool enabled; 170 bool enabled;
149 }; 171 };
150 172
151 } // namespace webrtc 173 } // namespace webrtc
152 174
153 #endif // WEBRTC_CONFIG_H_ 175 #endif // WEBRTC_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698