简体   繁体   English

如何在DirectShow源过滤器中渲染Direct3D

[英]How to render direct3d in a directshow source filter

Using c++ in visual studio 2008. How can I render d3d content as a directshow source filter. 在Visual Studio 2008中使用c ++。如何将d3d内容呈现为DirectShow源过滤器。

Matt 马特

Why is DirectShow involved? 为什么要参与DirectShow? A DirectShow source filter provides a stream of data for other filters to process. DirectShow源过滤器为其他过滤器提供数据流以供处理。 Direct3D is an API that allows for accessing the graphics card for rendering. Direct3D是一种API,它允许访问图形卡进行渲染。 DirectShow and Direct3D are two separate things. DirectShow和Direct3D是两个独立的事物。

If you want to render Direct3D content, then you use Direct3D. 如果要呈现Direct3D内容,则可以使用Direct3D。 There are some Direct3D 9.0 samples here for you to examine. 这里有一些Direct3D 9.0示例供您检查。 I suggest you start looking at the "Initialization" sample and work upwards from there. 我建议您开始研究“初始化”示例,然后从那里开始。

Edit: If we're not talking about a full-blown high-performance graphics solution, you can refer to this Stack Overflow question and this MSDN forum question . 编辑:如果我们不是在谈论成熟的高性能图形解决方案,则可以参考此Stack Overflow问题MSDN论坛问题 Hopefully it can get you started. 希望它可以帮助您入门。

http://tmhare.mvps.org/downloads.htm上有一个很好的视频源过滤器示例“捕获源过滤器”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM