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