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 kEnableEac3Playback[]; 18 19 MEDIA_EXPORT extern const char kEnableOpusPlayback[]; 20 21 MEDIA_EXPORT extern const char kEnableVp8AlphaPlayback[]; 22 23 MEDIA_EXPORT extern const char kVideoThreads[]; 24 25 MEDIA_EXPORT extern const char kOverrideEncryptedMediaCanPlayType[]; 26 27 #if defined(GOOGLE_TV) 28 MEDIA_EXPORT extern const char kUseExternalVideoSurfaceThresholdInPixels[]; 29 #endif 30 31 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) 32 MEDIA_EXPORT extern const char kAlsaInputDevice[]; 33 MEDIA_EXPORT extern const char kAlsaOutputDevice[]; 34 #endif 35 36 #if defined(OS_MACOSX) 37 MEDIA_EXPORT extern const char kDisableMainThreadAudio[]; 38 #endif 39 40 #if defined(OS_WIN) 41 MEDIA_EXPORT extern const char kEnableExclusiveAudio[]; 42 MEDIA_EXPORT extern const char kForceDirectShowVideoCapture[]; 43 MEDIA_EXPORT extern const char kForceWaveAudio[]; 44 MEDIA_EXPORT extern const char kTrySupportedChannelLayouts[]; 45 MEDIA_EXPORT extern const char kWaveOutBuffers[]; 46 #endif 47 48 #if defined(USE_CRAS) 49 MEDIA_EXPORT extern const char kUseCras[]; 50 #endif 51 52 } // namespace switches 53 54 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ 55