Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / media / base / media_switches.h
blobfa2bb9c9a3486b3281fc78f39ef78fcbe27e4bcd
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 // Defines all the "media" command-line switches.
7 #ifndef MEDIA_BASE_MEDIA_SWITCHES_H_
8 #define MEDIA_BASE_MEDIA_SWITCHES_H_
10 #include "build/build_config.h"
11 #include "media/base/media_export.h"
13 namespace switches {
15 MEDIA_EXPORT extern const char kAudioBufferSize[];
17 MEDIA_EXPORT extern const char kVideoThreads[];
19 MEDIA_EXPORT extern const char
20 kIgnoreResolutionLimitsForAcceleratedVideoDecode[];
22 #if defined(OS_ANDROID)
23 MEDIA_EXPORT extern const char kDisableInfobarForProtectedMediaIdentifier[];
24 #endif
26 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS)
27 MEDIA_EXPORT extern const char kAlsaInputDevice[];
28 MEDIA_EXPORT extern const char kAlsaOutputDevice[];
29 #endif
31 #if defined(OS_MACOSX)
32 MEDIA_EXPORT extern const char kEnableAVFoundation[];
33 MEDIA_EXPORT extern const char kForceQTKit[];
34 #endif
36 #if defined(OS_WIN)
37 MEDIA_EXPORT extern const char kEnableExclusiveAudio[];
38 MEDIA_EXPORT extern const char kForceDirectShowVideoCapture[];
39 MEDIA_EXPORT extern const char kForceMediaFoundationVideoCapture[];
40 MEDIA_EXPORT extern const char kForceWaveAudio[];
41 MEDIA_EXPORT extern const char kTrySupportedChannelLayouts[];
42 MEDIA_EXPORT extern const char kWaveOutBuffers[];
43 #endif
45 #if defined(USE_CRAS)
46 MEDIA_EXPORT extern const char kUseCras[];
47 #endif
49 MEDIA_EXPORT extern const char kUseFakeDeviceForMediaStream[];
50 MEDIA_EXPORT extern const char kUseFileForFakeVideoCapture[];
51 MEDIA_EXPORT extern const char kUseFileForFakeAudioCapture[];
53 MEDIA_EXPORT extern const char kEnableInbandTextTracks[];
55 MEDIA_EXPORT extern const char kRequireAudioHardwareForTesting[];
57 MEDIA_EXPORT extern const char kVideoUnderflowThresholdMs[];
59 } // namespace switches
61 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_