如何以编程方式设置Directshow过滤器的选项? [英] How can i Programmatically set a Directshow Filters' options?

查看:91
本文介绍了如何以编程方式设置Directshow过滤器的选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Graphedit中有过滤器,可以更改其设置。

I have filters in Graphedit whose settings can be changed.

我有一个USB网络摄像头,可以转到其属性并以不同的大小进行流传输,但是我不确定我如何以编程方式更改这些类型的选项,而不会弹出实际的网络摄像头属性框。我想在某种意义上保持流线排列。

I have a usb webcam which i can go to its properties and make it stream at different sizes, but im not sure how i would change these types of options programmatically without popping up the actual webcam property box. I want to keep it stream lined in a sense.

.QueryFilterInfo()

不允许我访问这些类型的选项,

didn't give me any access to those types of options, and neither did

.QueryPinInfo()

有没有办法在C#中访问这些选项?

Is there a way to get access to these options in C#?

更新:
http:/ /sourceforge.net/projects/directshownet/forums/forum/460697/topic/1319584

向您展示如何正确使用GetStreamCaps

shows you how to correctly use GetStreamCaps

推荐答案

您正在寻找的界面是 IAMStreamConfig 这样,您就可以指定fps,高度和宽度等。即使该链接适用于c ++版本,IAMStreamConfig在C#中可用,因为它已列出此处

The interface you're looking for is IAMStreamConfig on the source filter's output pin This lets you specify fps and height and width, etc. Even though the link is for the c++ version, IAMStreamConfig is available in C# as it is listed here.

这篇关于如何以编程方式设置Directshow过滤器的选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆