| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "media/base/media_switches.h" | 6 #include "media/base/media_switches.h" |
| 7 | 7 |
| 8 namespace switches { | 8 namespace switches { |
| 9 | 9 |
| 10 // Allow users to specify a custom buffer size for debugging purpose. | 10 // Allow users to specify a custom buffer size for debugging purpose. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const char kAlsaInputDevice[] = "alsa-input-device"; | 36 const char kAlsaInputDevice[] = "alsa-input-device"; |
| 37 // The Alsa device to use when opening an audio stream. | 37 // The Alsa device to use when opening an audio stream. |
| 38 const char kAlsaOutputDevice[] = "alsa-output-device"; | 38 const char kAlsaOutputDevice[] = "alsa-output-device"; |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 // Use GpuMemoryBuffers for Video Capture when this is an option for the device. | 41 // Use GpuMemoryBuffers for Video Capture when this is an option for the device. |
| 42 // Experimental, see http://crbug.com/503835 and http://crbug.com/440843. | 42 // Experimental, see http://crbug.com/503835 and http://crbug.com/440843. |
| 43 const char kUseGpuMemoryBuffersForCapture[] = | 43 const char kUseGpuMemoryBuffersForCapture[] = |
| 44 "use-gpu-memory-buffers-for-capture"; | 44 "use-gpu-memory-buffers-for-capture"; |
| 45 | 45 |
| 46 #if defined(OS_MACOSX) | |
| 47 // AVFoundation is available in versions 10.7 and onwards, and is to be used | |
| 48 // http://crbug.com/288562 for both audio and video device monitoring and for | |
| 49 // video capture. Being a dynamically loaded NSBundle and library, it hits the | |
| 50 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); | |
| 51 // for experimentation purposes, in particular library load time issue, the | |
| 52 // usage of this library can be enabled by using this flag. | |
| 53 const char kEnableAVFoundation[] = "enable-avfoundation"; | |
| 54 | |
| 55 // QTKit is the media capture API predecessor to AVFoundation, available up and | |
| 56 // until Mac OS X 10.9 (despite being deprecated in this last one). This flag | |
| 57 // is used for troubleshooting and testing, and forces QTKit in builds and | |
| 58 // configurations where AVFoundation would be used otherwise. | |
| 59 const char kForceQTKit[] = "force-qtkit"; | |
| 60 #endif | |
| 61 | |
| 62 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
| 63 // Use exclusive mode audio streaming for Windows Vista and higher. | 47 // Use exclusive mode audio streaming for Windows Vista and higher. |
| 64 // Leads to lower latencies for audio streams which uses the | 48 // Leads to lower latencies for audio streams which uses the |
| 65 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. | 49 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. |
| 66 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx | 50 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx |
| 67 // for details. | 51 // for details. |
| 68 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; | 52 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; |
| 69 | 53 |
| 70 // Force the use of MediaFoundation for video capture. This is only supported in | 54 // Force the use of MediaFoundation for video capture. This is only supported in |
| 71 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to | 55 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 116 |
| 133 } // namespace switches | 117 } // namespace switches |
| 134 | 118 |
| 135 namespace media { | 119 namespace media { |
| 136 | 120 |
| 137 // Use shared block-based buffering for media. | 121 // Use shared block-based buffering for media. |
| 138 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 122 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 139 base::FEATURE_DISABLED_BY_DEFAULT}; | 123 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 140 | 124 |
| 141 } // namespace media | 125 } // namespace media |
| OLD | NEW |