OLD | NEW |
---|---|
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 Loading... | |
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; |
64 static const char* kAbsSendTime; | 65 static const int kAudioLevelId; |
danilchap
2016/05/17 18:07:15
Ids are decided at runtime, so probably shouldn't
Irfan
2016/05/17 18:13:39
These constants are defining values for specific e
| |
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 kTimestampOffsetId; |
68 std::string name; | 69 |
70 static const char* kAbsSendTimeUri; | |
71 static const int kAbsSendTimeId; | |
72 | |
73 static const char* kVideoRotationUri; | |
74 static const int kVideoRotationId; | |
75 | |
76 static const char* kTransportSequenceNumberUri; | |
77 static const int kTransportSequenceNumberId; | |
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 Loading... | |
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_ |
OLD | NEW |