将 DirectShow 过滤器迁移到 Media Foundation MFT 的快速方法
我有一些自定义 DirectShow 过滤器(用于编码/解码/复用/解复用)。
我想在 Media Foundation 上将它们用作 MFT。
我听到有人说:
“微软声称所有的DirectShow过滤器只需要添加一些代码就可以迁移到MFT”,
实际上,我怀疑是否有一种快速的方法。因为DShow和MediaFoundation之间的方法、API是不同的。
但既然有人告诉我这个信息,我想问:
“这是真的吗?我该如何快速迁移?”
提前致谢。
I have some custom DirectShow filters (for Encoding / Deconding / Mux / Demux).
and I want to use them on Media Foundation as MFTs.
I have heard some people say:
"Microsoft claims all DirectShow filters only have to add a few code to migrate to MFTs"
acturally, I doubt there is a quick way. because the methods, APIs between DShow and MediaFoundation are different.
But since somebody tell me this information, I would like to ask :
"Is this true? and how could I do the quick migration?"
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为他们指的是 DMO。对于本机 dshow 过滤器,您需要一个与用作 DMO 代理的过滤器没有什么不同的包装器。
I think they are referring to DMOs. For a native dshow filter, you would need a wrapper that is not dissimilar to the filter that is used as a proxy for DMOs.
没有快速迁移。您必须创建可以从 IBaseFilter* 返回 IMFTransform* 的东西。
我正在我当前正在开发的应用程序中执行此操作。
There's no quick migration. You have to create something that can return the IMFTransform* from an IBaseFilter*.
I 'm doing that in an application I 'm currently working on.