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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); | 230 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); |
231 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); | 231 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); |
232 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; | 232 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; |
233 | 233 |
234 Call::Config::BitrateConfig call_bitrate_config; | 234 Call::Config::BitrateConfig call_bitrate_config; |
235 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 235 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
236 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 236 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
237 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 237 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; |
238 | 238 |
239 VideoQualityTest::Params params; | 239 VideoQualityTest::Params params; |
240 params.call = {flags::FLAGS_send_side_bwe, call_bitrate_config}; | 240 params.common = {flags::Width(), |
241 params.video = {true, | 241 flags::Height(), |
242 flags::Width(), | 242 flags::Fps(), |
243 flags::Height(), | 243 flags::MinBitrateKbps() * 1000, |
244 flags::Fps(), | 244 flags::TargetBitrateKbps() * 1000, |
245 flags::MinBitrateKbps() * 1000, | 245 flags::MaxBitrateKbps() * 1000, |
246 flags::TargetBitrateKbps() * 1000, | 246 flags::FLAGS_suspend_below_min_bitrate, |
247 flags::MaxBitrateKbps() * 1000, | 247 flags::Codec(), |
248 flags::FLAGS_suspend_below_min_bitrate, | 248 flags::NumTemporalLayers(), |
249 flags::Codec(), | 249 flags::SelectedTL(), |
250 flags::NumTemporalLayers(), | 250 0, // No min transmit bitrate. |
251 flags::SelectedTL(), | 251 flags::FLAGS_send_side_bwe, |
252 0, // No min transmit bitrate. | 252 flags::FLAGS_use_fec, |
253 flags::FLAGS_use_fec, | 253 flags::EncodedFramePath(), |
254 flags::EncodedFramePath(), | 254 call_bitrate_config}; |
255 flags::Clip()}; | 255 params.video = {flags::Clip()}; |
256 params.audio = {flags::FLAGS_audio, flags::FLAGS_audio_video_sync}; | |
257 params.screenshare.enabled = false; | 256 params.screenshare.enabled = false; |
258 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), | 257 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), |
259 flags::OutputFilename(), flags::GraphTitle()}; | 258 flags::OutputFilename(), flags::GraphTitle()}; |
260 params.pipe = pipe_config; | 259 params.pipe = pipe_config; |
261 params.logs = flags::FLAGS_logs; | 260 params.logs = flags::FLAGS_logs; |
| 261 params.audio = flags::FLAGS_audio, |
| 262 params.audio_video_sync = flags::FLAGS_audio_video_sync; |
262 | 263 |
263 std::vector<std::string> stream_descriptors; | 264 std::vector<std::string> stream_descriptors; |
264 stream_descriptors.push_back(flags::Stream0()); | 265 stream_descriptors.push_back(flags::Stream0()); |
265 stream_descriptors.push_back(flags::Stream1()); | 266 stream_descriptors.push_back(flags::Stream1()); |
266 std::vector<std::string> SL_descriptors; | 267 std::vector<std::string> SL_descriptors; |
267 SL_descriptors.push_back(flags::SL0()); | 268 SL_descriptors.push_back(flags::SL0()); |
268 SL_descriptors.push_back(flags::SL1()); | 269 SL_descriptors.push_back(flags::SL1()); |
269 VideoQualityTest::FillScalabilitySettings( | 270 VideoQualityTest::FillScalabilitySettings( |
270 ¶ms, stream_descriptors, flags::SelectedStream(), | 271 ¶ms, stream_descriptors, flags::SelectedStream(), |
271 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); | 272 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); |
272 | 273 |
273 VideoQualityTest test; | 274 VideoQualityTest test; |
274 if (flags::DurationSecs()) { | 275 if (flags::DurationSecs()) { |
275 test.RunWithAnalyzer(params); | 276 test.RunWithAnalyzer(params); |
276 } else { | 277 } else { |
277 test.RunWithRenderers(params); | 278 test.RunWithRenderers(params); |
278 } | 279 } |
279 } | 280 } |
280 } // namespace webrtc | 281 } // namespace webrtc |
281 | 282 |
282 int main(int argc, char* argv[]) { | 283 int main(int argc, char* argv[]) { |
283 ::testing::InitGoogleTest(&argc, argv); | 284 ::testing::InitGoogleTest(&argc, argv); |
284 google::ParseCommandLineFlags(&argc, &argv, true); | 285 google::ParseCommandLineFlags(&argc, &argv, true); |
285 webrtc::test::InitFieldTrialsFromString( | 286 webrtc::test::InitFieldTrialsFromString( |
286 webrtc::flags::FLAGS_force_fieldtrials); | 287 webrtc::flags::FLAGS_force_fieldtrials); |
287 webrtc::test::RunTest(webrtc::Loopback); | 288 webrtc::test::RunTest(webrtc::Loopback); |
288 return 0; | 289 return 0; |
289 } | 290 } |
OLD | NEW |