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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, | 228 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, |
229 flags::MaxBitrateKbps() * 1000, false, flags::Codec(), | 229 flags::MaxBitrateKbps() * 1000, false, flags::Codec(), |
230 flags::NumTemporalLayers(), flags::SelectedTL(), | 230 flags::NumTemporalLayers(), flags::SelectedTL(), |
231 flags::MinTransmitBitrateKbps() * 1000, flags::FLAGS_send_side_bwe, | 231 flags::MinTransmitBitrateKbps() * 1000, flags::FLAGS_send_side_bwe, |
232 false, call_bitrate_config}, | 232 false, call_bitrate_config}, |
233 {}, // Video specific. | 233 {}, // Video specific. |
234 {true, flags::SlideChangeInterval(), flags::ScrollDuration()}, | 234 {true, flags::SlideChangeInterval(), flags::ScrollDuration()}, |
235 {"screenshare", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), | 235 {"screenshare", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), |
236 flags::GraphTitle()}, | 236 flags::GraphTitle()}, |
237 pipe_config, | 237 pipe_config, |
238 flags::FLAGS_logs}; | 238 flags::FLAGS_logs, |
| 239 {}, // ss. |
| 240 false, // audio. |
| 241 false, // audio_video_sync. |
| 242 }; |
239 | 243 |
240 std::vector<std::string> stream_descriptors; | 244 std::vector<std::string> stream_descriptors; |
241 stream_descriptors.push_back(flags::Stream0()); | 245 stream_descriptors.push_back(flags::Stream0()); |
242 stream_descriptors.push_back(flags::Stream1()); | 246 stream_descriptors.push_back(flags::Stream1()); |
243 std::vector<std::string> SL_descriptors; | 247 std::vector<std::string> SL_descriptors; |
244 SL_descriptors.push_back(flags::SL0()); | 248 SL_descriptors.push_back(flags::SL0()); |
245 SL_descriptors.push_back(flags::SL1()); | 249 SL_descriptors.push_back(flags::SL1()); |
246 VideoQualityTest::FillScalabilitySettings( | 250 VideoQualityTest::FillScalabilitySettings( |
247 ¶ms, stream_descriptors, flags::SelectedStream(), | 251 ¶ms, stream_descriptors, flags::SelectedStream(), |
248 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); | 252 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); |
249 | 253 |
250 VideoQualityTest test; | 254 VideoQualityTest test; |
251 if (flags::DurationSecs()) { | 255 if (flags::DurationSecs()) { |
252 test.RunWithAnalyzer(params); | 256 test.RunWithAnalyzer(params); |
253 } else { | 257 } else { |
254 test.RunWithVideoRenderer(params); | 258 test.RunWithRenderers(params); |
255 } | 259 } |
256 } | 260 } |
257 } // namespace webrtc | 261 } // namespace webrtc |
258 | 262 |
259 int main(int argc, char* argv[]) { | 263 int main(int argc, char* argv[]) { |
260 ::testing::InitGoogleTest(&argc, argv); | 264 ::testing::InitGoogleTest(&argc, argv); |
261 google::ParseCommandLineFlags(&argc, &argv, true); | 265 google::ParseCommandLineFlags(&argc, &argv, true); |
262 webrtc::test::InitFieldTrialsFromString( | 266 webrtc::test::InitFieldTrialsFromString( |
263 webrtc::flags::FLAGS_force_fieldtrials); | 267 webrtc::flags::FLAGS_force_fieldtrials); |
264 webrtc::test::RunTest(webrtc::Loopback); | 268 webrtc::test::RunTest(webrtc::Loopback); |
265 return 0; | 269 return 0; |
266 } | 270 } |
OLD | NEW |