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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; | 220 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; |
221 | 221 |
222 Call::Config::BitrateConfig call_bitrate_config; | 222 Call::Config::BitrateConfig call_bitrate_config; |
223 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 223 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
224 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 224 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
225 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 225 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; |
226 | 226 |
227 VideoQualityTest::Params params{ | 227 VideoQualityTest::Params params{ |
228 {flags::Width(), flags::Height(), flags::Fps(), | 228 {flags::Width(), flags::Height(), flags::Fps(), |
229 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, | 229 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, |
230 flags::MaxBitrateKbps() * 1000, | 230 flags::MaxBitrateKbps() * 1000, flags::FLAGS_suspend_below_min_bitrate, |
231 flags::FLAGS_suspend_below_min_bitrate, | 231 flags::Codec(), flags::NumTemporalLayers(), flags::SelectedTL(), |
232 flags::Codec(), | |
233 flags::NumTemporalLayers(), flags::SelectedTL(), | |
234 0, // No min transmit bitrate. | 232 0, // No min transmit bitrate. |
235 call_bitrate_config, | 233 flags::FLAGS_send_side_bwe, flags::FLAGS_use_fec, call_bitrate_config}, |
236 flags::FLAGS_send_side_bwe, | |
237 flags::FLAGS_use_fec}, | |
238 {flags::Clip()}, | 234 {flags::Clip()}, |
239 {}, // Screenshare specific. | 235 {}, // Screenshare specific. |
240 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), | 236 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), |
241 flags::GraphTitle()}, | 237 flags::GraphTitle()}, |
242 pipe_config, | 238 pipe_config, |
243 flags::FLAGS_logs}; | 239 flags::FLAGS_logs}; |
244 | 240 |
245 std::vector<std::string> stream_descriptors; | 241 std::vector<std::string> stream_descriptors; |
246 stream_descriptors.push_back(flags::Stream0()); | 242 stream_descriptors.push_back(flags::Stream0()); |
247 stream_descriptors.push_back(flags::Stream1()); | 243 stream_descriptors.push_back(flags::Stream1()); |
(...skipping 14 matching lines...) Expand all Loading... |
262 } // namespace webrtc | 258 } // namespace webrtc |
263 | 259 |
264 int main(int argc, char* argv[]) { | 260 int main(int argc, char* argv[]) { |
265 ::testing::InitGoogleTest(&argc, argv); | 261 ::testing::InitGoogleTest(&argc, argv); |
266 google::ParseCommandLineFlags(&argc, &argv, true); | 262 google::ParseCommandLineFlags(&argc, &argv, true); |
267 webrtc::test::InitFieldTrialsFromString( | 263 webrtc::test::InitFieldTrialsFromString( |
268 webrtc::flags::FLAGS_force_fieldtrials); | 264 webrtc::flags::FLAGS_force_fieldtrials); |
269 webrtc::test::RunTest(webrtc::Loopback); | 265 webrtc::test::RunTest(webrtc::Loopback); |
270 return 0; | 266 return 0; |
271 } | 267 } |
OLD | NEW |