summaryrefslogtreecommitdiffstats
path: root/media/base/media_switches.cc
diff options
context:
space:
mode:
authormcasas@chromium.org <mcasas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 15:45:49 +0000
committermcasas@chromium.org <mcasas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 15:45:49 +0000
commite4af9a823f34e9a5a69ee65836a45e5fc570590a (patch)
treee1966ef3df45c09c33d278aa82c3c602b2b865b7 /media/base/media_switches.cc
parentcb4b13e72ade791d7dc2bc88bf54007a53ce9bfc (diff)
downloadchromium_src-e4af9a823f34e9a5a69ee65836a45e5fc570590a.zip
chromium_src-e4af9a823f34e9a5a69ee65836a45e5fc570590a.tar.gz
chromium_src-e4af9a823f34e9a5a69ee65836a45e5fc570590a.tar.bz2
Debug video capture device to play back y4m movies.
For video quality and performance testing. Based on a new command line flag: --use-file-for-fake-video-capture=blabla.y4m (Where blabla.y4m is the full path to the file to play) This flag _must_ be used in combination with the existing: --use-fake-device-for-media-stream The file format can be found described in the code and also here: http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 And many examples here: http://media.xiph.org/video/derf/ (Only 420 would work -- 422 is _not_ supported). With these command line flag, navigating to a web site, f.e. http://goo.gl/qdwf6, and allowing using the camera, will playback the video in a loop, as opposed to a fake camera or a real camera stream. BUG=318797 Review URL: https://codereview.chromium.org/61833011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_switches.cc')
-rw-r--r--media/base/media_switches.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index 3718d96..3a8fb33 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -101,4 +101,7 @@ const char kUseCras[] = "use-cras";
// Disables system sounds manager.
const char kDisableSystemSoundsManager[] = "disable-system-sounds-manager";
+// Use a raw video file as fake video capture device.
+const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
+
} // namespace switches