MediaCaptureMemoryPreference Enum

Definition

Specifies the preferred memory location for captured video frames.

public enum class MediaCaptureMemoryPreference
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class MediaCaptureMemoryPreference
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum MediaCaptureMemoryPreference
var value = Windows.Media.Capture.MediaCaptureMemoryPreference.auto
Public Enum MediaCaptureMemoryPreference
Inheritance
MediaCaptureMemoryPreference
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
backgroundMediaRecording

Fields

Name Value Description
Auto 0

The system dynamically chooses between CPU and GPU memory.

Cpu 1

CPU memory is used.

Remarks

Specify a memory preference by setting the MemoryPreference property of the MediaCaptureInitializationSettings object before calling MediaCapture.InitializeAsync.

Applies to