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

Side by Side Diff: media/base/media_switches.cc

Issue 260873011: Mac: Add flag to force QTKit in otherwise AVFoundation-enabled builds/configs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/media_switches.h ('k') | media/video/capture/mac/avfoundation_glue.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 #endif 33 #endif
34 34
35 #if defined(OS_MACOSX) 35 #if defined(OS_MACOSX)
36 // AVFoundation is available in versions 10.7 and onwards, and is to be used 36 // AVFoundation is available in versions 10.7 and onwards, and is to be used
37 // http://crbug.com/288562 for both audio and video device monitoring and for 37 // http://crbug.com/288562 for both audio and video device monitoring and for
38 // video capture. Being a dynamically loaded NSBundle and library, it hits the 38 // video capture. Being a dynamically loaded NSBundle and library, it hits the
39 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); 39 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437);
40 // for experimentation purposes, in particular library load time issue, the 40 // for experimentation purposes, in particular library load time issue, the
41 // usage of this library can be enabled by using this flag. 41 // usage of this library can be enabled by using this flag.
42 const char kEnableAVFoundation[] = "enable-avfoundation"; 42 const char kEnableAVFoundation[] = "enable-avfoundation";
43 // QTKit is the media capture API predecessor to AVFoundation, available up and
44 // until Mac OS X 10.9 (despite being deprecated in this last one). This flag
45 // is used for troubleshooting and testing, and forces QTKit in builds and
46 // configurations where AVFoundation would be used otherwise.
47 const char kForceQTKit[] = "force-qtkit";
43 #endif 48 #endif
44 49
45 #if defined(OS_WIN) 50 #if defined(OS_WIN)
46 // Use exclusive mode audio streaming for Windows Vista and higher. 51 // Use exclusive mode audio streaming for Windows Vista and higher.
47 // Leads to lower latencies for audio streams which uses the 52 // Leads to lower latencies for audio streams which uses the
48 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. 53 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path.
49 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx 54 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx
50 // for details. 55 // for details.
51 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; 56 const char kEnableExclusiveAudio[] = "enable-exclusive-audio";
52 57
(...skipping 24 matching lines...) Expand all
77 82
78 #if defined(USE_CRAS) 83 #if defined(USE_CRAS)
79 // Use CRAS, the ChromeOS audio server. 84 // Use CRAS, the ChromeOS audio server.
80 const char kUseCras[] = "use-cras"; 85 const char kUseCras[] = "use-cras";
81 #endif 86 #endif
82 87
83 // Use a raw video file as fake video capture device. 88 // Use a raw video file as fake video capture device.
84 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; 89 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
85 90
86 } // namespace switches 91 } // namespace switches
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | media/video/capture/mac/avfoundation_glue.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698