Chromium Code Reviews

Side by Side Diff: webrtc/video/screenshare_loopback.cc

Issue 2314403007: Reland of "Separating video settings in VideoQualityTest". (Closed)
Patch Set: fixing Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « webrtc/video/full_stack.cc ('k') | webrtc/video/video_loopback.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 213 matching lines...)
224 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); 224 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs();
225 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); 225 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs();
226 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; 226 pipe_config.allow_reordering = flags::FLAGS_allow_reordering;
227 227
228 Call::Config::BitrateConfig call_bitrate_config; 228 Call::Config::BitrateConfig call_bitrate_config;
229 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; 229 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000;
230 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; 230 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000;
231 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; 231 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000;
232 232
233 VideoQualityTest::Params params; 233 VideoQualityTest::Params params;
234 params.common = {flags::Width(), 234 params.call = {flags::FLAGS_send_side_bwe, call_bitrate_config};
235 flags::Height(), 235 params.video = {true,
236 flags::Fps(), 236 flags::Width(),
237 flags::MinBitrateKbps() * 1000, 237 flags::Height(),
238 flags::TargetBitrateKbps() * 1000, 238 flags::Fps(),
239 flags::MaxBitrateKbps() * 1000, 239 flags::MinBitrateKbps() * 1000,
240 false, 240 flags::TargetBitrateKbps() * 1000,
241 flags::Codec(), 241 flags::MaxBitrateKbps() * 1000,
242 flags::NumTemporalLayers(), 242 false,
243 flags::SelectedTL(), 243 flags::Codec(),
244 flags::MinTransmitBitrateKbps() * 1000, 244 flags::NumTemporalLayers(),
245 flags::FLAGS_send_side_bwe, 245 flags::SelectedTL(),
246 false, 246 flags::MinTransmitBitrateKbps() * 1000,
247 flags::EncodedFramePath(), 247 false,
248 call_bitrate_config}; 248 flags::EncodedFramePath(),
249 ""};
250 params.audio = {false, false};
249 params.screenshare = {true, flags::SlideChangeInterval(), 251 params.screenshare = {true, flags::SlideChangeInterval(),
250 flags::ScrollDuration()}; 252 flags::ScrollDuration()};
251 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(), 253 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(),
252 flags::OutputFilename(), flags::GraphTitle()}; 254 flags::OutputFilename(), flags::GraphTitle()};
253 params.pipe = pipe_config; 255 params.pipe = pipe_config;
254 params.logs = flags::FLAGS_logs; 256 params.logs = flags::FLAGS_logs;
255 params.audio = false;
256 params.audio_video_sync = false;
257 257
258 std::vector<std::string> stream_descriptors; 258 std::vector<std::string> stream_descriptors;
259 stream_descriptors.push_back(flags::Stream0()); 259 stream_descriptors.push_back(flags::Stream0());
260 stream_descriptors.push_back(flags::Stream1()); 260 stream_descriptors.push_back(flags::Stream1());
261 std::vector<std::string> SL_descriptors; 261 std::vector<std::string> SL_descriptors;
262 SL_descriptors.push_back(flags::SL0()); 262 SL_descriptors.push_back(flags::SL0());
263 SL_descriptors.push_back(flags::SL1()); 263 SL_descriptors.push_back(flags::SL1());
264 VideoQualityTest::FillScalabilitySettings( 264 VideoQualityTest::FillScalabilitySettings(
265 &params, stream_descriptors, flags::SelectedStream(), 265 &params, stream_descriptors, flags::SelectedStream(),
266 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); 266 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors);
267 267
268 VideoQualityTest test; 268 VideoQualityTest test;
269 if (flags::DurationSecs()) { 269 if (flags::DurationSecs()) {
270 test.RunWithAnalyzer(params); 270 test.RunWithAnalyzer(params);
271 } else { 271 } else {
272 test.RunWithRenderers(params); 272 test.RunWithRenderers(params);
273 } 273 }
274 } 274 }
275 } // namespace webrtc 275 } // namespace webrtc
276 276
277 int main(int argc, char* argv[]) { 277 int main(int argc, char* argv[]) {
278 ::testing::InitGoogleTest(&argc, argv); 278 ::testing::InitGoogleTest(&argc, argv);
279 google::ParseCommandLineFlags(&argc, &argv, true); 279 google::ParseCommandLineFlags(&argc, &argv, true);
280 webrtc::test::InitFieldTrialsFromString( 280 webrtc::test::InitFieldTrialsFromString(
281 webrtc::flags::FLAGS_force_fieldtrials); 281 webrtc::flags::FLAGS_force_fieldtrials);
282 webrtc::test::RunTest(webrtc::Loopback); 282 webrtc::test::RunTest(webrtc::Loopback);
283 return 0; 283 return 0;
284 } 284 }
OLDNEW
« no previous file with comments | « webrtc/video/full_stack.cc ('k') | webrtc/video/video_loopback.cc » ('j') | no next file with comments »

Powered by Google App Engine