1、相关信息
为了验证虚拟摄像头驱动,通过熟悉wdk本身的虚拟摄像头avscamera demo进行学习。
-
wdk demo下载地址:https://github.com/microsoft/Windows-driver-samples.git
-
选取其中avstream\avscamera,进行验证和测试
2、avscamera说明
参见Readme
The AvsCamera sample provides a pin-centric AVStream capture driver for a simulated front and back camera. The driver performs simulated captures at 320x240 or 640x480 in RGB24, RGB32, YUY2 and NV12 formats at various frame rates. The purpose of the sample is to demonstrate how to write a fully functional AVStream camera driver.This sample features strong parameter validation and overflow detection. It provides validation and simulation logic for all advanced camera controls in the CCaptureFilter class. A real camera driver would replace the filter automation table and CSensor and CSynthesizer class hierarchies to produce a new camera driver.The sample comes with its own MFT0 called AvsCameraMft0.dll. This MFT0 is used to parse metadata supplied in the AvsCamera driver samples. The metadata communications from the driver is primarily a private channel to its MFT0. The MFT0 is responsible for reformatting that information for the capture pipeline.
3、MFT0
上文Readme有提到MFT0,这里解释一下
Media Foundation
简称MF
Media Foundation是微软在Windows