OLD | NEW |
---|---|
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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "media/base/media_switches.h" | 6 #include "media/base/media_switches.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Allow users to specify a custom buffer size for debugging purpose. | 10 // Allow users to specify a custom buffer size for debugging purpose. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 "use-gpu-memory-buffers-for-capture"; | 48 "use-gpu-memory-buffers-for-capture"; |
49 | 49 |
50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
51 // Use exclusive mode audio streaming for Windows Vista and higher. | 51 // Use exclusive mode audio streaming for Windows Vista and higher. |
52 // Leads to lower latencies for audio streams which uses the | 52 // Leads to lower latencies for audio streams which uses the |
53 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. | 53 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. |
54 // 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 |
55 // for details. | 55 // for details. |
56 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; | 56 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; |
57 | 57 |
58 // Enables H264 HW encode acceleration for Win. | |
59 const char kEnableWinHWH264Encoding[] = "enable-win-hw-h264-encoding"; | |
sandersd (OOO until July 31)
2016/07/14 22:38:04
Probably better to remove 'win' from the name.
It
emircan
2016/07/15 04:58:30
Done.
| |
60 | |
58 // Force the use of MediaFoundation for video capture. This is only supported in | 61 // Force the use of MediaFoundation for video capture. This is only supported in |
59 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to | 62 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to |
60 // troubleshoot problems in Windows platforms. | 63 // troubleshoot problems in Windows platforms. |
61 const char kForceMediaFoundationVideoCapture[] = "force-mediafoundation"; | 64 const char kForceMediaFoundationVideoCapture[] = "force-mediafoundation"; |
62 | 65 |
63 // Use Windows WaveOut/In audio API even if Core Audio is supported. | 66 // Use Windows WaveOut/In audio API even if Core Audio is supported. |
64 const char kForceWaveAudio[] = "force-wave-audio"; | 67 const char kForceWaveAudio[] = "force-wave-audio"; |
65 | 68 |
66 // Instead of always using the hardware channel layout, check if a driver | 69 // Instead of always using the hardware channel layout, check if a driver |
67 // supports the source channel layout. Avoids outputting empty channels and | 70 // supports the source channel layout. Avoids outputting empty channels and |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 | 147 |
145 // Use new audio rendering mixer. | 148 // Use new audio rendering mixer. |
146 const base::Feature kNewAudioRenderingMixingStrategy{ | 149 const base::Feature kNewAudioRenderingMixingStrategy{ |
147 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; | 150 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; |
148 | 151 |
149 // Use shared block-based buffering for media. | 152 // Use shared block-based buffering for media. |
150 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 153 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
151 base::FEATURE_ENABLED_BY_DEFAULT}; | 154 base::FEATURE_ENABLED_BY_DEFAULT}; |
152 | 155 |
153 } // namespace media | 156 } // namespace media |
OLD | NEW |