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 |
11 // TODO(pbos): Move Config from common.h to here. | 11 // TODO(pbos): Move Config from common.h to here. |
12 | 12 |
13 #ifndef WEBRTC_CONFIG_H_ | 13 #ifndef WEBRTC_CONFIG_H_ |
14 #define WEBRTC_CONFIG_H_ | 14 #define WEBRTC_CONFIG_H_ |
15 | 15 |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/base/optional.h" | 19 #include "webrtc/base/optional.h" |
20 #include "webrtc/common.h" | |
21 #include "webrtc/common_types.h" | 20 #include "webrtc/common_types.h" |
22 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 | 24 |
26 // Settings for NACK, see RFC 4585 for details. | 25 // Settings for NACK, see RFC 4585 for details. |
27 struct NackConfig { | 26 struct NackConfig { |
28 NackConfig() : rtp_history_ms(0) {} | 27 NackConfig() : rtp_history_ms(0) {} |
29 std::string ToString() const; | 28 std::string ToString() const; |
30 // Send side: the time RTP packets are stored for retransmissions. | 29 // Send side: the time RTP packets are stored for retransmissions. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 struct VideoDecoderH264Settings { | 162 struct VideoDecoderH264Settings { |
164 std::string sprop_parameter_sets; | 163 std::string sprop_parameter_sets; |
165 }; | 164 }; |
166 | 165 |
167 class DecoderSpecificSettings { | 166 class DecoderSpecificSettings { |
168 public: | 167 public: |
169 virtual ~DecoderSpecificSettings() {} | 168 virtual ~DecoderSpecificSettings() {} |
170 rtc::Optional<VideoDecoderH264Settings> h264_extra_settings; | 169 rtc::Optional<VideoDecoderH264Settings> h264_extra_settings; |
171 }; | 170 }; |
172 | 171 |
173 // Controls the capacity of the packet buffer in NetEq. The capacity is the | |
174 // maximum number of packets that the buffer can contain. If the limit is | |
175 // exceeded, the buffer will be flushed. The capacity does not affect the actual | |
176 // audio delay in the general case, since this is governed by the target buffer | |
177 // level (calculated from the jitter profile). It is only in the rare case of | |
178 // severe network freezes that a higher capacity will lead to a (transient) | |
179 // increase in audio delay. | |
180 struct NetEqCapacityConfig { | |
181 NetEqCapacityConfig() : enabled(false), capacity(0) {} | |
182 explicit NetEqCapacityConfig(int value) : enabled(true), capacity(value) {} | |
183 static const ConfigOptionID identifier = ConfigOptionID::kNetEqCapacityConfig; | |
184 bool enabled; | |
185 int capacity; | |
186 }; | |
187 | |
188 struct NetEqFastAccelerate { | |
189 NetEqFastAccelerate() : enabled(false) {} | |
190 explicit NetEqFastAccelerate(bool value) : enabled(value) {} | |
191 static const ConfigOptionID identifier = ConfigOptionID::kNetEqFastAccelerate; | |
192 bool enabled; | |
193 }; | |
194 | |
195 struct VoicePacing { | |
196 VoicePacing() : enabled(false) {} | |
197 explicit VoicePacing(bool value) : enabled(value) {} | |
198 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing; | |
199 bool enabled; | |
200 }; | |
201 | |
202 } // namespace webrtc | 172 } // namespace webrtc |
203 | 173 |
204 #endif // WEBRTC_CONFIG_H_ | 174 #endif // WEBRTC_CONFIG_H_ |
OLD | NEW |