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文章来源:https://www.toymoban.com/news/detail-448620.html
<简称MF文章来源地址https://www.toymoban.com/news/detail-448620.html
到了这里,关于windows驱动开发5:WDK Demo:avstream avscamera的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!