| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 pipe_config.loss_percent = flags::LossPercent(); | 201 pipe_config.loss_percent = flags::LossPercent(); |
| 202 pipe_config.link_capacity_kbps = flags::LinkCapacityKbps(); | 202 pipe_config.link_capacity_kbps = flags::LinkCapacityKbps(); |
| 203 pipe_config.queue_length_packets = flags::QueueSize(); | 203 pipe_config.queue_length_packets = flags::QueueSize(); |
| 204 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); | 204 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); |
| 205 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); | 205 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); |
| 206 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; | 206 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; |
| 207 | 207 |
| 208 Call::Config::BitrateConfig call_bitrate_config; | 208 Call::Config::BitrateConfig call_bitrate_config; |
| 209 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 209 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
| 210 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 210 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
| 211 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 211 call_bitrate_config.max_bitrate_bps = |
| 212 rtc::Optional<int>(flags::MaxBitrateKbps() * 1000); |
| 212 | 213 |
| 213 VideoQualityTest::Params params{ | 214 VideoQualityTest::Params params{ |
| 214 {flags::Width(), flags::Height(), flags::Fps(), | 215 {flags::Width(), flags::Height(), flags::Fps(), |
| 215 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, | 216 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, |
| 216 flags::MaxBitrateKbps() * 1000, flags::Codec(), | 217 flags::MaxBitrateKbps() * 1000, flags::Codec(), |
| 217 flags::NumTemporalLayers(), flags::SelectedTL(), | 218 flags::NumTemporalLayers(), flags::SelectedTL(), |
| 218 0, // No min transmit bitrate. | 219 0, // No min transmit bitrate. |
| 219 call_bitrate_config, flags::FLAGS_send_side_bwe}, | 220 call_bitrate_config, flags::FLAGS_send_side_bwe}, |
| 220 {flags::Clip()}, | 221 {flags::Clip()}, |
| 221 {}, // Screenshare specific. | 222 {}, // Screenshare specific. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 244 } // namespace webrtc | 245 } // namespace webrtc |
| 245 | 246 |
| 246 int main(int argc, char* argv[]) { | 247 int main(int argc, char* argv[]) { |
| 247 ::testing::InitGoogleTest(&argc, argv); | 248 ::testing::InitGoogleTest(&argc, argv); |
| 248 google::ParseCommandLineFlags(&argc, &argv, true); | 249 google::ParseCommandLineFlags(&argc, &argv, true); |
| 249 webrtc::test::InitFieldTrialsFromString( | 250 webrtc::test::InitFieldTrialsFromString( |
| 250 webrtc::flags::FLAGS_force_fieldtrials); | 251 webrtc::flags::FLAGS_force_fieldtrials); |
| 251 webrtc::test::RunTest(webrtc::Loopback); | 252 webrtc::test::RunTest(webrtc::Loopback); |
| 252 return 0; | 253 return 0; |
| 253 } | 254 } |
| OLD | NEW |