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