| 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 "media/base/media_switches.h" | 5 #include "media/base/media_switches.h" |
| 6 | 6 |
| 7 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // Allow users to specify a custom buffer size for debugging purpose. | 9 // Allow users to specify a custom buffer size for debugging purpose. |
| 10 const char kAudioBufferSize[] = "audio-buffer-size"; | 10 const char kAudioBufferSize[] = "audio-buffer-size"; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 "enable-media-thread-for-media-playback"; | 21 "enable-media-thread-for-media-playback"; |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 24 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
| 25 // The Alsa device to use when opening an audio input stream. | 25 // The Alsa device to use when opening an audio input stream. |
| 26 const char kAlsaInputDevice[] = "alsa-input-device"; | 26 const char kAlsaInputDevice[] = "alsa-input-device"; |
| 27 // The Alsa device to use when opening an audio stream. | 27 // The Alsa device to use when opening an audio stream. |
| 28 const char kAlsaOutputDevice[] = "alsa-output-device"; | 28 const char kAlsaOutputDevice[] = "alsa-output-device"; |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 #if defined(OS_LINUX) |
| 32 // Try to use Native GpuMemoryBuffers for Video Capture. The actual use depends |
| 33 // on the actual hardware capabilities of the capture device and encoder(s). |
| 34 const char kUseNativeGpuMemoryBuffersForCapture[] = |
| 35 "use-native-gpu-memory-buffers-for-capture"; |
| 36 #endif |
| 37 |
| 31 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
| 32 // AVFoundation is available in versions 10.7 and onwards, and is to be used | 39 // AVFoundation is available in versions 10.7 and onwards, and is to be used |
| 33 // http://crbug.com/288562 for both audio and video device monitoring and for | 40 // http://crbug.com/288562 for both audio and video device monitoring and for |
| 34 // video capture. Being a dynamically loaded NSBundle and library, it hits the | 41 // video capture. Being a dynamically loaded NSBundle and library, it hits the |
| 35 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); | 42 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); |
| 36 // for experimentation purposes, in particular library load time issue, the | 43 // for experimentation purposes, in particular library load time issue, the |
| 37 // usage of this library can be enabled by using this flag. | 44 // usage of this library can be enabled by using this flag. |
| 38 const char kEnableAVFoundation[] = "enable-avfoundation"; | 45 const char kEnableAVFoundation[] = "enable-avfoundation"; |
| 39 | 46 |
| 40 // QTKit is the media capture API predecessor to AVFoundation, available up and | 47 // QTKit is the media capture API predecessor to AVFoundation, available up and |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // this flag will cause the tests to fail. Otherwise, they silently succeed. | 115 // this flag will cause the tests to fail. Otherwise, they silently succeed. |
| 109 const char kRequireAudioHardwareForTesting[] = | 116 const char kRequireAudioHardwareForTesting[] = |
| 110 "require-audio-hardware-for-testing"; | 117 "require-audio-hardware-for-testing"; |
| 111 | 118 |
| 112 // Allows clients to override the threshold for when the media renderer will | 119 // Allows clients to override the threshold for when the media renderer will |
| 113 // declare the underflow state for the video stream when audio is present. | 120 // declare the underflow state for the video stream when audio is present. |
| 114 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. | 121 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. |
| 115 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; | 122 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; |
| 116 | 123 |
| 117 } // namespace switches | 124 } // namespace switches |
| OLD | NEW |