Set properties of filter in DirectShow.NET

那年仲夏 提交于 2019-12-25 07:20:22

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/23265420/set-properties-of-filter-in-directshow-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!