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 185 matching lines...) Loading... |
196 | 196 |
197 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); | 197 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); |
198 | 198 |
199 DEFINE_bool(use_fec, false, "Use forward error correction."); | 199 DEFINE_bool(use_fec, false, "Use forward error correction."); |
200 | 200 |
201 DEFINE_bool(audio, false, "Add audio stream"); | 201 DEFINE_bool(audio, false, "Add audio stream"); |
202 | 202 |
203 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" | 203 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" |
204 " audio is false)"); | 204 " audio is false)"); |
205 | 205 |
| 206 DEFINE_bool(video, true, "Add video stream"); |
| 207 |
206 DEFINE_string( | 208 DEFINE_string( |
207 force_fieldtrials, | 209 force_fieldtrials, |
208 "", | 210 "", |
209 "Field trials control experimental feature code which can be forced. " | 211 "Field trials control experimental feature code which can be forced. " |
210 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" | 212 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" |
211 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " | 213 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " |
212 "trials are separated by \"/\""); | 214 "trials are separated by \"/\""); |
213 | 215 |
214 // Video-specific flags. | 216 // Video-specific flags. |
215 DEFINE_string(clip, | 217 DEFINE_string(clip, |
(...skipping 15 matching lines...) Loading... |
231 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); | 233 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); |
232 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; | 234 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; |
233 | 235 |
234 Call::Config::BitrateConfig call_bitrate_config; | 236 Call::Config::BitrateConfig call_bitrate_config; |
235 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 237 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
236 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 238 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
237 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 239 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; |
238 | 240 |
239 VideoQualityTest::Params params; | 241 VideoQualityTest::Params params; |
240 params.call = {flags::FLAGS_send_side_bwe, call_bitrate_config}; | 242 params.call = {flags::FLAGS_send_side_bwe, call_bitrate_config}; |
241 params.video = {true, | 243 params.video = {flags::FLAGS_video, |
242 flags::Width(), | 244 flags::Width(), |
243 flags::Height(), | 245 flags::Height(), |
244 flags::Fps(), | 246 flags::Fps(), |
245 flags::MinBitrateKbps() * 1000, | 247 flags::MinBitrateKbps() * 1000, |
246 flags::TargetBitrateKbps() * 1000, | 248 flags::TargetBitrateKbps() * 1000, |
247 flags::MaxBitrateKbps() * 1000, | 249 flags::MaxBitrateKbps() * 1000, |
248 flags::FLAGS_suspend_below_min_bitrate, | 250 flags::FLAGS_suspend_below_min_bitrate, |
249 flags::Codec(), | 251 flags::Codec(), |
250 flags::NumTemporalLayers(), | 252 flags::NumTemporalLayers(), |
251 flags::SelectedTL(), | 253 flags::SelectedTL(), |
(...skipping 28 matching lines...) Loading... |
280 } // namespace webrtc | 282 } // namespace webrtc |
281 | 283 |
282 int main(int argc, char* argv[]) { | 284 int main(int argc, char* argv[]) { |
283 ::testing::InitGoogleTest(&argc, argv); | 285 ::testing::InitGoogleTest(&argc, argv); |
284 google::ParseCommandLineFlags(&argc, &argv, true); | 286 google::ParseCommandLineFlags(&argc, &argv, true); |
285 webrtc::test::InitFieldTrialsFromString( | 287 webrtc::test::InitFieldTrialsFromString( |
286 webrtc::flags::FLAGS_force_fieldtrials); | 288 webrtc::flags::FLAGS_force_fieldtrials); |
287 webrtc::test::RunTest(webrtc::Loopback); | 289 webrtc::test::RunTest(webrtc::Loopback); |
288 return 0; | 290 return 0; |
289 } | 291 } |
OLD | NEW |