Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: webrtc/video/video_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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/screenshare_loopback.cc ('k') | webrtc/video/video_quality_test.h » ('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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs(); 230 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs();
231 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs(); 231 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs();
232 pipe_config.allow_reordering = flags::FLAGS_allow_reordering; 232 pipe_config.allow_reordering = flags::FLAGS_allow_reordering;
233 233
234 Call::Config::BitrateConfig call_bitrate_config; 234 Call::Config::BitrateConfig call_bitrate_config;
235 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000; 235 call_bitrate_config.min_bitrate_bps = flags::MinBitrateKbps() * 1000;
236 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000; 236 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000;
237 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000; 237 call_bitrate_config.max_bitrate_bps = flags::MaxBitrateKbps() * 1000;
238 238
239 VideoQualityTest::Params params; 239 VideoQualityTest::Params params;
240 params.common = {flags::Width(), 240 params.call = {flags::FLAGS_send_side_bwe, call_bitrate_config};
241 flags::Height(), 241 params.video = {true,
242 flags::Fps(), 242 flags::Width(),
243 flags::MinBitrateKbps() * 1000, 243 flags::Height(),
244 flags::TargetBitrateKbps() * 1000, 244 flags::Fps(),
245 flags::MaxBitrateKbps() * 1000, 245 flags::MinBitrateKbps() * 1000,
246 flags::FLAGS_suspend_below_min_bitrate, 246 flags::TargetBitrateKbps() * 1000,
247 flags::Codec(), 247 flags::MaxBitrateKbps() * 1000,
248 flags::NumTemporalLayers(), 248 flags::FLAGS_suspend_below_min_bitrate,
249 flags::SelectedTL(), 249 flags::Codec(),
250 0, // No min transmit bitrate. 250 flags::NumTemporalLayers(),
251 flags::FLAGS_send_side_bwe, 251 flags::SelectedTL(),
252 flags::FLAGS_use_fec, 252 0, // No min transmit bitrate.
253 flags::EncodedFramePath(), 253 flags::FLAGS_use_fec,
254 call_bitrate_config}; 254 flags::EncodedFramePath(),
255 params.video = {flags::Clip()}; 255 flags::Clip()};
256 params.audio = {flags::FLAGS_audio, flags::FLAGS_audio_video_sync};
256 params.screenshare.enabled = false; 257 params.screenshare.enabled = false;
257 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), 258 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(),
258 flags::OutputFilename(), flags::GraphTitle()}; 259 flags::OutputFilename(), flags::GraphTitle()};
259 params.pipe = pipe_config; 260 params.pipe = pipe_config;
260 params.logs = flags::FLAGS_logs; 261 params.logs = flags::FLAGS_logs;
261 params.audio = flags::FLAGS_audio,
262 params.audio_video_sync = flags::FLAGS_audio_video_sync;
263 262
264 std::vector<std::string> stream_descriptors; 263 std::vector<std::string> stream_descriptors;
265 stream_descriptors.push_back(flags::Stream0()); 264 stream_descriptors.push_back(flags::Stream0());
266 stream_descriptors.push_back(flags::Stream1()); 265 stream_descriptors.push_back(flags::Stream1());
267 std::vector<std::string> SL_descriptors; 266 std::vector<std::string> SL_descriptors;
268 SL_descriptors.push_back(flags::SL0()); 267 SL_descriptors.push_back(flags::SL0());
269 SL_descriptors.push_back(flags::SL1()); 268 SL_descriptors.push_back(flags::SL1());
270 VideoQualityTest::FillScalabilitySettings( 269 VideoQualityTest::FillScalabilitySettings(
271 &params, stream_descriptors, flags::SelectedStream(), 270 &params, stream_descriptors, flags::SelectedStream(),
272 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); 271 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors);
273 272
274 VideoQualityTest test; 273 VideoQualityTest test;
275 if (flags::DurationSecs()) { 274 if (flags::DurationSecs()) {
276 test.RunWithAnalyzer(params); 275 test.RunWithAnalyzer(params);
277 } else { 276 } else {
278 test.RunWithRenderers(params); 277 test.RunWithRenderers(params);
279 } 278 }
280 } 279 }
281 } // namespace webrtc 280 } // namespace webrtc
282 281
283 int main(int argc, char* argv[]) { 282 int main(int argc, char* argv[]) {
284 ::testing::InitGoogleTest(&argc, argv); 283 ::testing::InitGoogleTest(&argc, argv);
285 google::ParseCommandLineFlags(&argc, &argv, true); 284 google::ParseCommandLineFlags(&argc, &argv, true);
286 webrtc::test::InitFieldTrialsFromString( 285 webrtc::test::InitFieldTrialsFromString(
287 webrtc::flags::FLAGS_force_fieldtrials); 286 webrtc::flags::FLAGS_force_fieldtrials);
288 webrtc::test::RunTest(webrtc::Loopback); 287 webrtc::test::RunTest(webrtc::Loopback);
289 return 0; 288 return 0;
290 } 289 }
OLDNEW
« no previous file with comments | « webrtc/video/screenshare_loopback.cc ('k') | webrtc/video/video_quality_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698