USB 视频类属性

USB 视频类的客户端可以使用以下视频捕获属性集:

PROPSETID_VIDCAP_CAMERACONTROLPROPSETID_VIDCAP_VIDEOPROCAMP Clients of the USB Video Class can make requests on filters or individual nodes. 基于节点的属性的功能与基于 USB 视频类筛选器的属性的功能相同。

To specify a node-based property, set the KSPROPERTY_TYPE_TOPOLOGY flag in the Flags member of the KSPROPERTY structure contained in the property descriptor structure—for example, KSPROPERTY_CAMERACONTROL_NODE_S.

由于客户端可以处理单个筛选器上的多个节点,USB 视频类使 IHV 能够支持具有多个独立控制镜头的相机。

此外,还定义了一个新的属性集:

PROPSETID_VIDCAP_SELECTOR The property items contained in PROPSETID_VIDCAP_SELECTOR are node-based.

Call KsSynchronousDeviceControl or DeviceIoControl to make property requests from a user-mode component. DeviceIoControl is documented in the Microsoft Windows SDK documentation.

上述四个属性集中包含的每个属性项在 DirectShow COM 接口中都有相应的方法。 有关方法的详细信息,请参阅 Windows SDK 中的 DirectShow 文档。

USB 视频类设备可以支持上面列出的部分或全部属性集。