创建 IMFSensorStream 接口的实例。
Syntax
HRESULT MFCreateSensorStream(
DWORD StreamId,
[in, optional] IMFAttributes *pAttributes,
[in] IMFCollection *pMediaTypeCollection,
[out] IMFSensorStream **ppStream
);
参数
StreamId
创建的流的标识符。 这与设置 MF_DEVICESTREAM_STREAM_ID 属性相同。 如果 pAttributes 为 null,则使用此值。
[in, optional] pAttributes
所创建流的属性存储。
[in] pMediaTypeCollection
用于指定流支持的媒体类型的 IMFMediaType 对象的集合。
[out] ppStream
创建的流接口。
返回值
该函数返回 HRESULT。 可能的值包括但不限于下表中的值。
| 返回代码 | Description |
|---|---|
|
方法成功。 |
|
提供的 IMFSensorGroup 为 null。 |
|
提供的 LPCWSTR 为 null。 |
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 10 版本 1703 [桌面应用 |UWP 应用] |
| 支持的最低服务器 | 无受支持的版本 |
| 目标平台 | Windows操作系统 |
| Header | mfidl.h |
| Library | mfsensorgroup.lib |