OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 DEFINE_bool(use_ulpfec, false, "Use RED+ULPFEC forward error correction."); | 199 DEFINE_bool(use_ulpfec, false, "Use RED+ULPFEC forward error correction."); |
200 | 200 |
201 DEFINE_bool(use_flexfec, false, "Use FlexFEC forward error correction."); | 201 DEFINE_bool(use_flexfec, false, "Use FlexFEC forward error correction."); |
202 | 202 |
203 DEFINE_bool(audio, false, "Add audio stream"); | 203 DEFINE_bool(audio, false, "Add audio stream"); |
204 | 204 |
205 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" | 205 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" |
206 " audio is false)"); | 206 " audio is false)"); |
207 | 207 |
| 208 DEFINE_bool(audio_dtx, false, "Enable audio DTX (no effect if audio is false)"); |
| 209 |
208 DEFINE_bool(video, true, "Add video stream"); | 210 DEFINE_bool(video, true, "Add video stream"); |
209 | 211 |
210 DEFINE_string( | 212 DEFINE_string( |
211 force_fieldtrials, | 213 force_fieldtrials, |
212 "", | 214 "", |
213 "Field trials control experimental feature code which can be forced. " | 215 "Field trials control experimental feature code which can be forced. " |
214 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" | 216 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" |
215 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " | 217 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " |
216 "trials are separated by \"/\""); | 218 "trials are separated by \"/\""); |
217 | 219 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 flags::MaxBitrateKbps() * 1000, | 253 flags::MaxBitrateKbps() * 1000, |
252 flags::FLAGS_suspend_below_min_bitrate, | 254 flags::FLAGS_suspend_below_min_bitrate, |
253 flags::Codec(), | 255 flags::Codec(), |
254 flags::NumTemporalLayers(), | 256 flags::NumTemporalLayers(), |
255 flags::SelectedTL(), | 257 flags::SelectedTL(), |
256 0, // No min transmit bitrate. | 258 0, // No min transmit bitrate. |
257 flags::FLAGS_use_ulpfec, | 259 flags::FLAGS_use_ulpfec, |
258 flags::FLAGS_use_flexfec, | 260 flags::FLAGS_use_flexfec, |
259 flags::EncodedFramePath(), | 261 flags::EncodedFramePath(), |
260 flags::Clip()}; | 262 flags::Clip()}; |
261 params.audio = {flags::FLAGS_audio, flags::FLAGS_audio_video_sync}; | 263 params.audio = {flags::FLAGS_audio, flags::FLAGS_audio_video_sync, |
| 264 flags::FLAGS_audio_dtx}; |
262 params.screenshare.enabled = false; | 265 params.screenshare.enabled = false; |
263 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), | 266 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), |
264 flags::OutputFilename(), flags::GraphTitle()}; | 267 flags::OutputFilename(), flags::GraphTitle()}; |
265 params.pipe = pipe_config; | 268 params.pipe = pipe_config; |
266 params.logs = flags::FLAGS_logs; | 269 params.logs = flags::FLAGS_logs; |
267 | 270 |
268 std::vector<std::string> stream_descriptors; | 271 std::vector<std::string> stream_descriptors; |
269 stream_descriptors.push_back(flags::Stream0()); | 272 stream_descriptors.push_back(flags::Stream0()); |
270 stream_descriptors.push_back(flags::Stream1()); | 273 stream_descriptors.push_back(flags::Stream1()); |
271 std::vector<std::string> SL_descriptors; | 274 std::vector<std::string> SL_descriptors; |
(...skipping 13 matching lines...) Expand all Loading... |
285 } // namespace webrtc | 288 } // namespace webrtc |
286 | 289 |
287 int main(int argc, char* argv[]) { | 290 int main(int argc, char* argv[]) { |
288 ::testing::InitGoogleTest(&argc, argv); | 291 ::testing::InitGoogleTest(&argc, argv); |
289 google::ParseCommandLineFlags(&argc, &argv, true); | 292 google::ParseCommandLineFlags(&argc, &argv, true); |
290 webrtc::test::InitFieldTrialsFromString( | 293 webrtc::test::InitFieldTrialsFromString( |
291 webrtc::flags::FLAGS_force_fieldtrials); | 294 webrtc::flags::FLAGS_force_fieldtrials); |
292 webrtc::test::RunTest(webrtc::Loopback); | 295 webrtc::test::RunTest(webrtc::Loopback); |
293 return 0; | 296 return 0; |
294 } | 297 } |
OLD | NEW |