ToolbarOriginChipView is dead; remove the suppression for it.
[chromium-blink-merge.git] / media / base / media_switches.cc
blob4dd21d6b665c9b64a053cbbef122fe78f7b371da
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
3 // found in the LICENSE file.
5 #include "media/base/media_switches.h"
7 namespace switches {
9 // Allow users to specify a custom buffer size for debugging purpose.
10 const char kAudioBufferSize[] = "audio-buffer-size";
12 // Set number of threads to use for video decoding.
13 const char kVideoThreads[] = "video-threads";
15 // Enables ADTS stream parser for Media Source Extensions.
16 const char kEnableADTSStreamParser[] = "enable-adts-stream-parser";
18 // Bypass autodetection of the upper limit on resolution of streams that can
19 // be hardware decoded.
20 const char kIgnoreResolutionLimitsForAcceleratedVideoDecode[] =
21 "ignore-resolution-limits-for-accelerated-video-decode";
23 #if defined(OS_ANDROID)
24 // Disables the infobar popup for accessing protected media identifier.
25 const char kDisableInfobarForProtectedMediaIdentifier[] =
26 "disable-infobar-for-protected-media-identifier";
28 // Enables use of non-compositing MediaDrm decoding by default for Encrypted
29 // Media Extensions implementation.
30 const char kMediaDrmEnableNonCompositing[] = "mediadrm-enable-non-compositing";
31 #endif
33 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS)
34 // The Alsa device to use when opening an audio input stream.
35 const char kAlsaInputDevice[] = "alsa-input-device";
36 // The Alsa device to use when opening an audio stream.
37 const char kAlsaOutputDevice[] = "alsa-output-device";
38 #endif
40 #if defined(OS_MACOSX)
41 // AVFoundation is available in versions 10.7 and onwards, and is to be used
42 // http://crbug.com/288562 for both audio and video device monitoring and for
43 // video capture. Being a dynamically loaded NSBundle and library, it hits the
44 // Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437);
45 // for experimentation purposes, in particular library load time issue, the
46 // usage of this library can be enabled by using this flag.
47 const char kEnableAVFoundation[] = "enable-avfoundation";
49 // QTKit is the media capture API predecessor to AVFoundation, available up and
50 // until Mac OS X 10.9 (despite being deprecated in this last one). This flag
51 // is used for troubleshooting and testing, and forces QTKit in builds and
52 // configurations where AVFoundation would be used otherwise.
53 const char kForceQTKit[] = "force-qtkit";
54 #endif
56 #if defined(OS_WIN)
57 // Use exclusive mode audio streaming for Windows Vista and higher.
58 // Leads to lower latencies for audio streams which uses the
59 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path.
60 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx
61 // for details.
62 const char kEnableExclusiveAudio[] = "enable-exclusive-audio";
64 // Used to troubleshoot problems with different video capture implementations
65 // on Windows. By default we use the Media Foundation API on Windows 7 and up,
66 // but specifying this switch will force use of DirectShow always.
67 // See bug: http://crbug.com/268412
68 const char kForceDirectShowVideoCapture[] = "force-directshow";
70 // Force the use of MediaFoundation for video capture. This is only supported in
71 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to
72 // troubleshoot problems in Windows platforms.
73 const char kForceMediaFoundationVideoCapture[] = "force-mediafoundation";
75 // Use Windows WaveOut/In audio API even if Core Audio is supported.
76 const char kForceWaveAudio[] = "force-wave-audio";
78 // Instead of always using the hardware channel layout, check if a driver
79 // supports the source channel layout. Avoids outputting empty channels and
80 // permits drivers to enable stereo to multichannel expansion. Kept behind a
81 // flag since some drivers lie about supported layouts and hang when used. See
82 // http://crbug.com/259165 for more details.
83 const char kTrySupportedChannelLayouts[] = "try-supported-channel-layouts";
85 // Number of buffers to use for WaveOut.
86 const char kWaveOutBuffers[] = "waveout-buffers";
87 #endif
89 #if defined(USE_CRAS)
90 // Use CRAS, the ChromeOS audio server.
91 const char kUseCras[] = "use-cras";
92 #endif
94 // Use fake device for Media Stream to replace actual camera and microphone.
95 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
97 // Use a raw video file as fake video capture device.
98 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
100 } // namespace switches