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

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

Issue 3003193002: Add a new frame generator that cycles through randomly generated slides. (Closed)
Patch Set: Created 3 years, 3 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
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 flags::TargetBitrateKbps() * 1000, 271 flags::TargetBitrateKbps() * 1000,
272 flags::MaxBitrateKbps() * 1000, 272 flags::MaxBitrateKbps() * 1000,
273 false, 273 false,
274 flags::Codec(), 274 flags::Codec(),
275 flags::NumTemporalLayers(), 275 flags::NumTemporalLayers(),
276 flags::SelectedTL(), 276 flags::SelectedTL(),
277 flags::MinTransmitBitrateKbps() * 1000, 277 flags::MinTransmitBitrateKbps() * 1000,
278 false, // ULPFEC disabled. 278 false, // ULPFEC disabled.
279 false, // FlexFEC disabled. 279 false, // FlexFEC disabled.
280 ""}; 280 ""};
281 params.screenshare = {true, flags::SlideChangeInterval(), 281 params.screenshare = {true, false, flags::SlideChangeInterval(),
sprang_webrtc 2017/08/23 12:59:24 Maybe add command line flag for this?
erikvarga1 2017/08/23 14:41:25 Done.
282 flags::ScrollDuration(), flags::Slides()}; 282 flags::ScrollDuration(), flags::Slides()};
283 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(), 283 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(),
284 flags::OutputFilename(), flags::GraphTitle()}; 284 flags::OutputFilename(), flags::GraphTitle()};
285 params.pipe = pipe_config; 285 params.pipe = pipe_config;
286 params.logging = {flags::FLAG_logs, flags::RtcEventLogName(), 286 params.logging = {flags::FLAG_logs, flags::RtcEventLogName(),
287 flags::RtpDumpName(), flags::EncodedFramePath()}; 287 flags::RtpDumpName(), flags::EncodedFramePath()};
288 288
289 if (flags::NumStreams() > 1 && flags::Stream0().empty() && 289 if (flags::NumStreams() > 1 && flags::Stream0().empty() &&
290 flags::Stream1().empty()) { 290 flags::Stream1().empty()) {
291 params.ss.infer_streams = true; 291 params.ss.infer_streams = true;
(...skipping 27 matching lines...) Expand all
319 } 319 }
320 320
321 // InitFieldTrialsFromString needs a reference to an std::string instance, 321 // InitFieldTrialsFromString needs a reference to an std::string instance,
322 // with a scope that outlives the test. 322 // with a scope that outlives the test.
323 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials; 323 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials;
324 webrtc::test::InitFieldTrialsFromString(field_trials); 324 webrtc::test::InitFieldTrialsFromString(field_trials);
325 325
326 webrtc::test::RunTest(webrtc::Loopback); 326 webrtc::test::RunTest(webrtc::Loopback);
327 return 0; 327 return 0;
328 } 328 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698