Chromium Code Reviews| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 | 189 |
| 190 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); | 190 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); |
| 191 | 191 |
| 192 DEFINE_bool(use_fec, false, "Use forward error correction."); | 192 DEFINE_bool(use_fec, false, "Use forward error correction."); |
| 193 | 193 |
| 194 DEFINE_bool(audio, false, "Add audio stream"); | 194 DEFINE_bool(audio, false, "Add audio stream"); |
| 195 | 195 |
| 196 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" | 196 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" |
| 197 " audio is false)"); | 197 " audio is false)"); |
| 198 | 198 |
| 199 DEFINE_bool(mute_video, false, "Mute video stream"); | |
|
stefan-webrtc
2016/09/07 13:12:10
Can we call this "video" instead to align it with
minyue-webrtc
2016/09/08 15:38:24
Done.
| |
| 200 | |
| 199 DEFINE_string( | 201 DEFINE_string( |
| 200 force_fieldtrials, | 202 force_fieldtrials, |
| 201 "", | 203 "", |
| 202 "Field trials control experimental feature code which can be forced. " | 204 "Field trials control experimental feature code which can be forced. " |
| 203 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" | 205 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" |
| 204 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " | 206 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " |
| 205 "trials are separated by \"/\""); | 207 "trials are separated by \"/\""); |
| 206 | 208 |
| 207 // Video-specific flags. | 209 // Video-specific flags. |
| 208 DEFINE_string(clip, | 210 DEFINE_string(clip, |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 224 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); | 226 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); |
| 225 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; | 227 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; |
| 226 | 228 |
| 227 Call::Config::BitrateConfig call_bitrate_config; | 229 Call::Config::BitrateConfig call_bitrate_config; |
| 228 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 230 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
| 229 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 231 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
| 230 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 232 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; |
| 231 | 233 |
| 232 VideoQualityTest::Params params; | 234 VideoQualityTest::Params params; |
| 233 params.common = {flags::FLAGS_send_side_bwe, call_bitrate_config}; | 235 params.common = {flags::FLAGS_send_side_bwe, call_bitrate_config}; |
| 234 params.video = {true, | 236 params.video = {!flags::FLAGS_mute_video, |
| 235 flags::Width(), | 237 flags::Width(), |
| 236 flags::Height(), | 238 flags::Height(), |
| 237 flags::Fps(), | 239 flags::Fps(), |
| 238 flags::MinBitrateKbps() * 1000, | 240 flags::MinBitrateKbps() * 1000, |
| 239 flags::TargetBitrateKbps() * 1000, | 241 flags::TargetBitrateKbps() * 1000, |
| 240 flags::MaxBitrateKbps() * 1000, | 242 flags::MaxBitrateKbps() * 1000, |
| 241 flags::FLAGS_suspend_below_min_bitrate, | 243 flags::FLAGS_suspend_below_min_bitrate, |
| 242 flags::Codec(), | 244 flags::Codec(), |
| 243 flags::NumTemporalLayers(), | 245 flags::NumTemporalLayers(), |
| 244 flags::SelectedTL(), | 246 flags::SelectedTL(), |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 271 } // namespace webrtc | 273 } // namespace webrtc |
| 272 | 274 |
| 273 int main(int argc, char* argv[]) { | 275 int main(int argc, char* argv[]) { |
| 274 ::testing::InitGoogleTest(&argc, argv); | 276 ::testing::InitGoogleTest(&argc, argv); |
| 275 google::ParseCommandLineFlags(&argc, &argv, true); | 277 google::ParseCommandLineFlags(&argc, &argv, true); |
| 276 webrtc::test::InitFieldTrialsFromString( | 278 webrtc::test::InitFieldTrialsFromString( |
| 277 webrtc::flags::FLAGS_force_fieldtrials); | 279 webrtc::flags::FLAGS_force_fieldtrials); |
| 278 webrtc::test::RunTest(webrtc::Loopback); | 280 webrtc::test::RunTest(webrtc::Loopback); |
| 279 return 0; | 281 return 0; |
| 280 } | 282 } |
| OLD | NEW |