編輯

共用方式為


MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_HW_SOURCE attribute

Specifies whether a video capture source is a hardware device or a software device.

Data type

UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Remarks

If the value is TRUE, the capture source is a hardware device. If the value is FALSE, it is a software device. The default value is FALSE.

This attribute is set on the activation objects returned by the following functions:

The attribute applies only to video capture devices.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
Mfidl.h

See also

Alphabetical List of Media Foundation Attributes

Audio/Video Capture

Capture Device Attributes