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

Unified Diff: webrtc/video/screenshare_loopback.cc

Issue 2814023003: Add command-line param to screenshare_loopback to specify a list of slides (Closed)
Patch Set: Use tokenize() from base to split string by comma instead of doing it manually Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/video/video_quality_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/screenshare_loopback.cc
diff --git a/webrtc/video/screenshare_loopback.cc b/webrtc/video/screenshare_loopback.cc
index a51274bf933350422203c934e3d034d6479005b2..09a7d731102aa9fcb5dc01da17550caa3b2aaf24 100644
--- a/webrtc/video/screenshare_loopback.cc
+++ b/webrtc/video/screenshare_loopback.cc
@@ -11,6 +11,7 @@
#include <stdio.h>
#include "gflags/gflags.h"
+#include "webrtc/base/stringencode.h"
#include "webrtc/test/field_trial.h"
#include "webrtc/test/gtest.h"
#include "webrtc/test/run_test.h"
@@ -214,6 +215,16 @@ int ScrollDuration() {
return static_cast<int>(FLAGS_scroll_duration);
}
+DEFINE_string(slides,
+ "",
+ "Comma-separated list of *.yuv files to display as slides.");
+std::vector<std::string> Slides() {
+ std::vector<std::string> slides;
+ std::string slides_list = FLAGS_slides;
+ rtc::tokenize(slides_list, ',', &slides);
tommi 2017/04/12 11:30:39 nice!
+ return slides;
+}
+
} // namespace flags
void Loopback() {
@@ -249,7 +260,7 @@ void Loopback() {
flags::EncodedFramePath(),
""};
params.screenshare = {true, flags::SlideChangeInterval(),
- flags::ScrollDuration()};
+ flags::ScrollDuration(), flags::Slides()};
params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(),
flags::OutputFilename(), flags::GraphTitle()};
params.pipe = pipe_config;
« no previous file with comments | « no previous file | webrtc/video/video_quality_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698