summaryrefslogtreecommitdiffstats
path: root/media/base
diff options
context:
space:
mode:
authorfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 21:06:27 +0000
committerfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 21:06:27 +0000
commit5ca641d40b260bf10e18cbde7a16c0ec662de95a (patch)
tree986e6c5034f32cf71ddeb91affad1961f6748b7c /media/base
parent26571791f60a08657ba061d062ac60cf6fc7bc16 (diff)
downloadchromium_src-5ca641d40b260bf10e18cbde7a16c0ec662de95a.zip
chromium_src-5ca641d40b260bf10e18cbde7a16c0ec662de95a.tar.gz
chromium_src-5ca641d40b260bf10e18cbde7a16c0ec662de95a.tar.bz2
Change default to three threads for video decoding and add command line --video-threads.
BUG=44128 TEST=player_wtl.exe --video-threads=6 d:\mediatests\crowd\crowd2.mp4 Review URL: http://codereview.chromium.org/2080008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base')
-rw-r--r--media/base/media_switches.cc7
-rw-r--r--media/base/media_switches.h10
2 files changed, 12 insertions, 5 deletions
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index 7fa286e..3b684ce 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,6 +11,11 @@ namespace switches {
const char kAlsaDevice[] = "alsa-device";
#endif
+// Enable hardware decoding using OpenMax API.
+// In practice this is for ChromeOS ARM.
const char kEnableOpenMax[] = "enable-openmax";
+// Set number of threads to use for video decoding.
+const char kVideoThreads[] = "video-threads";
+
} // namespace switches
diff --git a/media/base/media_switches.h b/media/base/media_switches.h
index 28e3bb6..6e0e0d3 100644
--- a/media/base/media_switches.h
+++ b/media/base/media_switches.h
@@ -1,11 +1,11 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Defines all the "media" command-line switches.
-#ifndef MEDIA_BASE_SWITCHES_H_
-#define MEDIA_BASE_SWITCHES_H_
+#ifndef MEDIA_BASE_MEDIA_SWITCHES_H_
+#define MEDIA_BASE_MEDIA_SWITCHES_H_
#include "build/build_config.h"
@@ -16,7 +16,9 @@ extern const char kAlsaDevice[];
#endif
extern const char kEnableOpenMax[];
+extern const char kVideoThreads[];
+
} // namespace switches
-#endif // MEDIA_BASE_SWITCHES_H_
+#endif // MEDIA_BASE_MEDIA_SWITCHES_H_