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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 std::string SL1() { | 171 std::string SL1() { |
172 return static_cast<std::string>(FLAGS_sl1); | 172 return static_cast<std::string>(FLAGS_sl1); |
173 } | 173 } |
174 | 174 |
175 DEFINE_bool(logs, false, "print logs to stderr"); | 175 DEFINE_bool(logs, false, "print logs to stderr"); |
176 | 176 |
177 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); | 177 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); |
178 | 178 |
179 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); | 179 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); |
180 | 180 |
| 181 DEFINE_bool(use_fec, false, "Use forward error correction."); |
| 182 |
181 DEFINE_string( | 183 DEFINE_string( |
182 force_fieldtrials, | 184 force_fieldtrials, |
183 "", | 185 "", |
184 "Field trials control experimental feature code which can be forced. " | 186 "Field trials control experimental feature code which can be forced. " |
185 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" | 187 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" |
186 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " | 188 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " |
187 "trials are separated by \"/\""); | 189 "trials are separated by \"/\""); |
188 | 190 |
189 // Video-specific flags. | 191 // Video-specific flags. |
190 DEFINE_string(clip, | 192 DEFINE_string(clip, |
(...skipping 18 matching lines...) Expand all Loading... |
209 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 211 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
210 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 212 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
211 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 213 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; |
212 | 214 |
213 VideoQualityTest::Params params{ | 215 VideoQualityTest::Params params{ |
214 {flags::Width(), flags::Height(), flags::Fps(), | 216 {flags::Width(), flags::Height(), flags::Fps(), |
215 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, | 217 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, |
216 flags::MaxBitrateKbps() * 1000, flags::Codec(), | 218 flags::MaxBitrateKbps() * 1000, flags::Codec(), |
217 flags::NumTemporalLayers(), flags::SelectedTL(), | 219 flags::NumTemporalLayers(), flags::SelectedTL(), |
218 0, // No min transmit bitrate. | 220 0, // No min transmit bitrate. |
219 call_bitrate_config, flags::FLAGS_send_side_bwe}, | 221 call_bitrate_config, |
| 222 flags::FLAGS_send_side_bwe, |
| 223 flags::FLAGS_use_fec}, |
220 {flags::Clip()}, | 224 {flags::Clip()}, |
221 {}, // Screenshare specific. | 225 {}, // Screenshare specific. |
222 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), | 226 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), |
223 flags::GraphTitle()}, | 227 flags::GraphTitle()}, |
224 pipe_config, | 228 pipe_config, |
225 flags::FLAGS_logs}; | 229 flags::FLAGS_logs}; |
226 | 230 |
227 std::vector<std::string> stream_descriptors; | 231 std::vector<std::string> stream_descriptors; |
228 stream_descriptors.push_back(flags::Stream0()); | 232 stream_descriptors.push_back(flags::Stream0()); |
229 stream_descriptors.push_back(flags::Stream1()); | 233 stream_descriptors.push_back(flags::Stream1()); |
(...skipping 14 matching lines...) Expand all Loading... |
244 } // namespace webrtc | 248 } // namespace webrtc |
245 | 249 |
246 int main(int argc, char* argv[]) { | 250 int main(int argc, char* argv[]) { |
247 ::testing::InitGoogleTest(&argc, argv); | 251 ::testing::InitGoogleTest(&argc, argv); |
248 google::ParseCommandLineFlags(&argc, &argv, true); | 252 google::ParseCommandLineFlags(&argc, &argv, true); |
249 webrtc::test::InitFieldTrialsFromString( | 253 webrtc::test::InitFieldTrialsFromString( |
250 webrtc::flags::FLAGS_force_fieldtrials); | 254 webrtc::flags::FLAGS_force_fieldtrials); |
251 webrtc::test::RunTest(webrtc::Loopback); | 255 webrtc::test::RunTest(webrtc::Loopback); |
252 return 0; | 256 return 0; |
253 } | 257 } |
OLD | NEW |