Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: media/base/media_switches.cc

Issue 2172703002: Revert of H264 HW encode using MediaFoundation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/media_switches.h ('k') | media/base/win/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 using Media Foundation for Windows.
59 const char kEnableMFH264Encoding[] = "enable-mf-h264-encoding";
60
61 // Force the use of MediaFoundation for video capture. This is only supported in 58 // Force the use of MediaFoundation for video capture. This is only supported in
62 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to 59 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to
63 // troubleshoot problems in Windows platforms. 60 // troubleshoot problems in Windows platforms.
64 const char kForceMediaFoundationVideoCapture[] = "force-mediafoundation"; 61 const char kForceMediaFoundationVideoCapture[] = "force-mediafoundation";
65 62
66 // Use Windows WaveOut/In audio API even if Core Audio is supported. 63 // Use Windows WaveOut/In audio API even if Core Audio is supported.
67 const char kForceWaveAudio[] = "force-wave-audio"; 64 const char kForceWaveAudio[] = "force-wave-audio";
68 65
69 // Instead of always using the hardware channel layout, check if a driver 66 // Instead of always using the hardware channel layout, check if a driver
70 // supports the source channel layout. Avoids outputting empty channels and 67 // supports the source channel layout. Avoids outputting empty channels and
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 144
148 // Use new audio rendering mixer. 145 // Use new audio rendering mixer.
149 const base::Feature kNewAudioRenderingMixingStrategy{ 146 const base::Feature kNewAudioRenderingMixingStrategy{
150 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT}; 147 "NewAudioRenderingMixingStrategy", base::FEATURE_DISABLED_BY_DEFAULT};
151 148
152 // Use shared block-based buffering for media. 149 // Use shared block-based buffering for media.
153 const base::Feature kUseNewMediaCache{"use-new-media-cache", 150 const base::Feature kUseNewMediaCache{"use-new-media-cache",
154 base::FEATURE_ENABLED_BY_DEFAULT}; 151 base::FEATURE_ENABLED_BY_DEFAULT};
155 152
156 } // namespace media 153 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | media/base/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698