使自定义Directshow fiter接受参数 [英] Make Custom Directshow fiter to accept Parameters

查看:280
本文介绍了使自定义Directshow fiter接受参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个CTransformFilter,这是用来调整输出视频的大小。它正在使用我在代码中给出的默认值。

I Created a CTransformFilter, this is used to Resize the output video. It is working with default values which i gave in the code.

是否可以使此过滤器接收值,我的意思是当我在我的代码中创建此过滤器的实例是否可以传递像

Is it possible to make this filter receive values, i mean when i create Instance of this filter in my code is it possible to pass the values say like

Resizer-> width = 100

Resizer->width = 100

的值。Resizer-> height = 50

Resizer->height = 50

这里Resizer是过滤器。

here Resizer is the filter.

推荐答案

在您的过滤器上实现私有接口,然后控制应用程序将使用它来与过滤器通信。

You want to implement a "private interface" on your filter and then the controlling application will use it to communicate with the filter.

查看使用从dll文件中过滤的方法,在类似问题中讨论的细节。

See using methods of filter from dll file for details discussed in a similar question.

这篇关于使自定义Directshow fiter接受参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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