[英]directshow render
hi every one this is my first post here . 大家好,这是我在这里的第一篇文章。 i got a misunderstanding of the DirectShow the First at all is the render : here is the question if i create a stream where it should appear .
我对DirectShow有一个误解,首先是渲染:这是我是否在应显示流的位置创建问题。 should i create
IVideoWindow * pointerV;
我应该创建
IVideoWindow * pointerV;
and create the window form by hand "from scratch" ? 并手动“从头开始”创建窗口表单? because i need to create a sophisticated GUI and coding it will be mission impossible V .
因为我需要创建一个复杂的GUI并进行编码,所以这将是不可能完成的任务V。
i am using VC++ ; 我正在使用VC ++; i wondering if is it possible to use the winFrame directly with all .net 's components and combine the all with directShow functionality ?
我想知道是否有可能直接将winFrame与.net的所有组件一起使用,并将所有与directShow功能结合在一起?
You just add and connect a Video Renderer filter, it will create the window. 您只需添加并连接Video Renderer过滤器,它将创建一个窗口。 Then request IVideoWindow interface from this filter or from the graph object itself (if there is just one video renderer in the graph).
然后从此过滤器或图形对象本身(如果图形中只有一个视频渲染器)请求IVideoWindow接口。
You can create the GUI and render to any component in that GUI .you just have to provide the handle to that GUI element ,So that you can have impossible GUI along with Direct show . 您可以创建GUI并渲染到该GUI中的任何组件。只需提供该GUI元素的句柄,这样就可以将Direct Show与GUI一起使用。
for .Net components i believe the best way is to use .net (say c# .net )you can use direct show wrapper called dshow.net ,it make things very easy since u are using C# and getting the power of Direct show but please note that this will cause come issues occasionally while trying to implement advanced features .But still i think it a great way to use dshow . 对于.Net组件,我认为最好的方法是使用.net(例如c#.net),您可以使用称为dshow.net的直接显示包装器,这使事情变得非常容易,因为您正在使用C#并获得Direct show的功能,但是请请注意,这在尝试实现高级功能时偶尔会引起问题。但是我仍然认为这是使用dshow的一种好方法。
but let me suggest another way to use direct show if you are planing to use directshow and have a very complex ui .Use a framework Qt using vc++ compiler . 但是,如果您打算使用DirectShow并且具有非常复杂的ui,那么让我建议另一种使用Direct Show的方法。请使用使用vc ++编译器的Qt框架。
Sorry i was not able to follow your question properly but hope this helps . 对不起,我无法正确回答您的问题,但希望能对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.