| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 return static_cast<std::string>(FLAGS_sl0); | 165 return static_cast<std::string>(FLAGS_sl0); |
| 166 } | 166 } |
| 167 | 167 |
| 168 DEFINE_string(sl1, | 168 DEFINE_string(sl1, |
| 169 "", | 169 "", |
| 170 "Comma separated values describing SpatialLayer for layer #1."); | 170 "Comma separated values describing SpatialLayer for layer #1."); |
| 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_string(encoded_frame_path, |
| 176 "", |
| 177 "The base path for encoded frame logs. Created files will have " |
| 178 "the form <encoded_frame_path>.<n>.(recv|send.<m>).ivf"); |
| 179 std::string EncodedFramePath() { |
| 180 return static_cast<std::string>(FLAGS_encoded_frame_path); |
| 181 } |
| 182 |
| 175 DEFINE_bool(logs, false, "print logs to stderr"); | 183 DEFINE_bool(logs, false, "print logs to stderr"); |
| 176 | 184 |
| 177 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); | 185 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); |
| 178 | 186 |
| 179 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); | 187 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); |
| 180 | 188 |
| 181 DEFINE_string( | 189 DEFINE_string( |
| 182 force_fieldtrials, | 190 force_fieldtrials, |
| 183 "", | 191 "", |
| 184 "Field trials control experimental feature code which can be forced. " | 192 "Field trials control experimental feature code which can be forced. " |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); | 225 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); |
| 218 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); | 226 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); |
| 219 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; | 227 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; |
| 220 | 228 |
| 221 Call::Config::BitrateConfig call_bitrate_config; | 229 Call::Config::BitrateConfig call_bitrate_config; |
| 222 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; | 230 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; |
| 223 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; | 231 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; |
| 224 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; | 232 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; |
| 225 | 233 |
| 226 VideoQualityTest::Params params; | 234 VideoQualityTest::Params params; |
| 227 params.common = {flags::Width(), flags::Height(), flags::Fps(), | 235 params.common = {flags::Width(), |
| 228 flags::MinBitrateKbps() * 1000, flags::TargetBitrateKbps() * 1000, | 236 flags::Height(), |
| 229 flags::MaxBitrateKbps() * 1000, false, flags::Codec(), | 237 flags::Fps(), |
| 230 flags::NumTemporalLayers(), flags::SelectedTL(), | 238 flags::MinBitrateKbps() * 1000, |
| 231 flags::MinTransmitBitrateKbps() * 1000, flags::FLAGS_send_side_bwe, | 239 flags::TargetBitrateKbps() * 1000, |
| 232 false, call_bitrate_config}; | 240 flags::MaxBitrateKbps() * 1000, |
| 241 false, |
| 242 flags::Codec(), |
| 243 flags::NumTemporalLayers(), |
| 244 flags::SelectedTL(), |
| 245 flags::MinTransmitBitrateKbps() * 1000, |
| 246 flags::FLAGS_send_side_bwe, |
| 247 false, |
| 248 flags::EncodedFramePath(), |
| 249 call_bitrate_config}; |
| 233 params.screenshare = {true, flags::SlideChangeInterval(), | 250 params.screenshare = {true, flags::SlideChangeInterval(), |
| 234 flags::ScrollDuration()}; | 251 flags::ScrollDuration()}; |
| 235 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(), | 252 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(), |
| 236 flags::OutputFilename(), flags::GraphTitle()}; | 253 flags::OutputFilename(), flags::GraphTitle()}; |
| 237 params.pipe = pipe_config; | 254 params.pipe = pipe_config; |
| 238 params.logs = flags::FLAGS_logs; | 255 params.logs = flags::FLAGS_logs; |
| 239 params.audio = false; | 256 params.audio = false; |
| 240 params.audio_video_sync = false; | 257 params.audio_video_sync = false; |
| 241 | 258 |
| 242 std::vector<std::string> stream_descriptors; | 259 std::vector<std::string> stream_descriptors; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 259 } // namespace webrtc | 276 } // namespace webrtc |
| 260 | 277 |
| 261 int main(int argc, char* argv[]) { | 278 int main(int argc, char* argv[]) { |
| 262 ::testing::InitGoogleTest(&argc, argv); | 279 ::testing::InitGoogleTest(&argc, argv); |
| 263 google::ParseCommandLineFlags(&argc, &argv, true); | 280 google::ParseCommandLineFlags(&argc, &argv, true); |
| 264 webrtc::test::InitFieldTrialsFromString( | 281 webrtc::test::InitFieldTrialsFromString( |
| 265 webrtc::flags::FLAGS_force_fieldtrials); | 282 webrtc::flags::FLAGS_force_fieldtrials); |
| 266 webrtc::test::RunTest(webrtc::Loopback); | 283 webrtc::test::RunTest(webrtc::Loopback); |
| 267 return 0; | 284 return 0; |
| 268 } | 285 } |
| OLD | NEW |