| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 } | 184 } |
| 185 | 185 |
| 186 DEFINE_bool(logs, false, "print logs to stderr"); | 186 DEFINE_bool(logs, false, "print logs to stderr"); |
| 187 | 187 |
| 188 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); | 188 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); |
| 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"); |
| 195 |
| 196 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if" |
| 197 " audio is false)"); |
| 198 |
| 194 DEFINE_string( | 199 DEFINE_string( |
| 195 force_fieldtrials, | 200 force_fieldtrials, |
| 196 "", | 201 "", |
| 197 "Field trials control experimental feature code which can be forced. " | 202 "Field trials control experimental feature code which can be forced. " |
| 198 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" | 203 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" |
| 199 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " | 204 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " |
| 200 "trials are separated by \"/\""); | 205 "trials are separated by \"/\""); |
| 201 | 206 |
| 202 // Video-specific flags. | 207 // Video-specific flags. |
| 203 DEFINE_string(clip, | 208 DEFINE_string(clip, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 229 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, | 234 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, |
| 230 flags::MaxBitrateKbps() * 1000, flags::FLAGS_suspend_below_min_bitrate, | 235 flags::MaxBitrateKbps() * 1000, flags::FLAGS_suspend_below_min_bitrate, |
| 231 flags::Codec(), flags::NumTemporalLayers(), flags::SelectedTL(), | 236 flags::Codec(), flags::NumTemporalLayers(), flags::SelectedTL(), |
| 232 0, // No min transmit bitrate. | 237 0, // No min transmit bitrate. |
| 233 flags::FLAGS_send_side_bwe, flags::FLAGS_use_fec, call_bitrate_config}, | 238 flags::FLAGS_send_side_bwe, flags::FLAGS_use_fec, call_bitrate_config}, |
| 234 {flags::Clip()}, | 239 {flags::Clip()}, |
| 235 {}, // Screenshare specific. | 240 {}, // Screenshare specific. |
| 236 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), | 241 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), |
| 237 flags::GraphTitle()}, | 242 flags::GraphTitle()}, |
| 238 pipe_config, | 243 pipe_config, |
| 239 flags::FLAGS_logs}; | 244 flags::FLAGS_logs, |
| 245 {}, // ss. |
| 246 flags::FLAGS_audio, |
| 247 flags::FLAGS_audio_video_sync}; |
| 240 | 248 |
| 241 std::vector<std::string> stream_descriptors; | 249 std::vector<std::string> stream_descriptors; |
| 242 stream_descriptors.push_back(flags::Stream0()); | 250 stream_descriptors.push_back(flags::Stream0()); |
| 243 stream_descriptors.push_back(flags::Stream1()); | 251 stream_descriptors.push_back(flags::Stream1()); |
| 244 std::vector<std::string> SL_descriptors; | 252 std::vector<std::string> SL_descriptors; |
| 245 SL_descriptors.push_back(flags::SL0()); | 253 SL_descriptors.push_back(flags::SL0()); |
| 246 SL_descriptors.push_back(flags::SL1()); | 254 SL_descriptors.push_back(flags::SL1()); |
| 247 VideoQualityTest::FillScalabilitySettings( | 255 VideoQualityTest::FillScalabilitySettings( |
| 248 ¶ms, stream_descriptors, flags::SelectedStream(), | 256 ¶ms, stream_descriptors, flags::SelectedStream(), |
| 249 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); | 257 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); |
| 250 | 258 |
| 251 VideoQualityTest test; | 259 VideoQualityTest test; |
| 252 if (flags::DurationSecs()) { | 260 if (flags::DurationSecs()) { |
| 253 test.RunWithAnalyzer(params); | 261 test.RunWithAnalyzer(params); |
| 254 } else { | 262 } else { |
| 255 test.RunWithVideoRenderer(params); | 263 test.RunWithRenderers(params); |
| 256 } | 264 } |
| 257 } | 265 } |
| 258 } // namespace webrtc | 266 } // namespace webrtc |
| 259 | 267 |
| 260 int main(int argc, char* argv[]) { | 268 int main(int argc, char* argv[]) { |
| 261 ::testing::InitGoogleTest(&argc, argv); | 269 ::testing::InitGoogleTest(&argc, argv); |
| 262 google::ParseCommandLineFlags(&argc, &argv, true); | 270 google::ParseCommandLineFlags(&argc, &argv, true); |
| 263 webrtc::test::InitFieldTrialsFromString( | 271 webrtc::test::InitFieldTrialsFromString( |
| 264 webrtc::flags::FLAGS_force_fieldtrials); | 272 webrtc::flags::FLAGS_force_fieldtrials); |
| 265 webrtc::test::RunTest(webrtc::Loopback); | 273 webrtc::test::RunTest(webrtc::Loopback); |
| 266 return 0; | 274 return 0; |
| 267 } | 275 } |
| OLD | NEW |