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