【问题标题】:using directshow to snapshot image使用 directshow 对图像进行快照
【发布时间】:2013-10-27 03:57:40
【问题描述】:

我使用的是 windows win7 64bit + windows 7.1 SDK + 网络摄像头

当我在 \Samples\multimedia\directshow\capture\playcap 使用示例代码时

它运行良好,但问题是我想获取位图的图像数据,

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

但任何文件夹中都没有“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”

win7 SDK可以使用directshow获取图片数据吗?

最好的问候!!

谢谢!

【问题讨论】:

    标签: c++ directshow


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2019-07-26
      • 2021-09-16
      • 2017-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-23
      相关资源
      最近更新 更多