2013-10-27 27 views
0

我使用Windows 64位的win7 +窗口7.1 SDK +摄像头使用DirectShow来快照映像

当我\样品使用smaple代码\多媒体\ DirectShow的\捕获\ playcap

它运行良好,但问题是我想要得到的位图图像数据,

看来我需要包括“qedit.h”为ISampleGrabber,

但thereis任何文件夹中没有“qedit.h”,我尝试使“qedit.h”如下:

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/2ab5c212-5824-419d-b5d9-7f5db82f57cd/qedith-missing-in-current-windows-sdk-v70?forum=windowsdirectshowdevelopment

但它编译错误, “识别符“ISampleGrabber”

是有可能使用DirectShow通过win7的SDK来获得图像数据??

最好的问候!

谢谢!

回答

0

微软弃用了SDK的那部分,但Sample Grabber过滤器本身仍然存在于现代Windows中,包括Win 8. Qedit.h的Windows SDK的最后一个版本是6.0,但即使在那里它也需要一些旧版本的DirectX SDK。您可以使用这个SampleGrabber.h这是从原始标题的一小段摘录。更多详情请参阅this post