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. 4 5 // Defines all the "media" command-line switches. 6 7 #ifndef MEDIA_BASE_MEDIA_SWITCHES_H_ 8 #define MEDIA_BASE_MEDIA_SWITCHES_H_ 9 10 #include "build/build_config.h" 11 #include "media/base/media_export.h" 12 13 namespace switches { 14 15 MEDIA_EXPORT extern const char kAudioBufferSize[]; 16 17 MEDIA_EXPORT extern const char kVideoThreads[]; 18 19 MEDIA_EXPORT extern const char 20 kIgnoreResolutionLimitsForAcceleratedVideoDecode[]; 21 22 #if defined(OS_ANDROID) 23 MEDIA_EXPORT extern const char kDisableInfobarForProtectedMediaIdentifier[]; 24 MEDIA_EXPORT extern const char kMediaDrmEnableNonCompositing[]; 25 #endif 26 27 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) 28 MEDIA_EXPORT extern const char kAlsaInputDevice[]; 29 MEDIA_EXPORT extern const char kAlsaOutputDevice[]; 30 #endif 31 32 #if defined(OS_MACOSX) 33 MEDIA_EXPORT extern const char kEnableAVFoundation[]; 34 MEDIA_EXPORT extern const char kForceQTKit[]; 35 #endif 36 37 #if defined(OS_WIN) 38 MEDIA_EXPORT extern const char kEnableExclusiveAudio[]; 39 MEDIA_EXPORT extern const char kForceDirectShowVideoCapture[]; 40 MEDIA_EXPORT extern const char kForceMediaFoundationVideoCapture[]; 41 MEDIA_EXPORT extern const char kForceWaveAudio[]; 42 MEDIA_EXPORT extern const char kTrySupportedChannelLayouts[]; 43 MEDIA_EXPORT extern const char kWaveOutBuffers[]; 44 #endif 45 46 #if defined(USE_CRAS) 47 MEDIA_EXPORT extern const char kUseCras[]; 48 #endif 49 50 MEDIA_EXPORT extern const char kUseFakeDeviceForMediaStream[]; 51 MEDIA_EXPORT extern const char kUseFileForFakeVideoCapture[]; 52 53 MEDIA_EXPORT extern const char kEnableInbandTextTracks[]; 54 55 } // namespace switches 56 57 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ 58