在DirectShow.NET中设置过滤器的属性 [英] Set properties of filter in DirectShow.NET

查看:94
本文介绍了在DirectShow.NET中设置过滤器的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中设置DirectShow过滤器的属性?例如,我想设置摄像头的分辨率或裁剪过滤器的剪裁。

How can I set properties of a DirectShow filter in c#? For example I want to set resolution of a webcam or the clippings of a cropping filter.

推荐答案

过滤器通常具有专用接口 ,则可以使用自定义过滤器专用界面来以特定方式控制过滤器,例如设置过滤器和/或更改其运行时行为。没有通用接口,因为过滤器不同。通常,您通常预先知道要处理的过滤器,因此,您 QueryInterface 感兴趣的接口,然后以所需的方式进行设置即可。

Filters typically have their "private interfaces", custom filter specific interfaces to control the filter in specific way, such as to set it up and/or alter its runtime behavior. There is no universal interface because filters are different. You normally know in advance what filter you are dealing with, so you QueryInterface its interface of interest and then set it up in desired way.

对于某些特定任务,例如选择捕获格式(视频分辨率),有众所周知的通用方法,例如获取/设置捕获图像时的视频分辨率

For certain specific tasks such as choosing capture format (video resolution) there are well known universal approaches, e.g. Get/set video resolution when capturing image

这篇关于在DirectShow.NET中设置过滤器的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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